inmemory

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemoryFileReader

func NewInMemoryFileReader(name string) (source.ParquetFile, error)

func NewInMemoryFileWriter

func NewInMemoryFileWriter(name string) (source.ParquetFile, error)

func Remove

func Remove(path string) error

func RemoveAll

func RemoveAll(path string) error

Types

type InMemoryFile

type InMemoryFile struct {
	FilePath string
	File     afero.File
}

func (*InMemoryFile) Close

func (self *InMemoryFile) Close() error

func (*InMemoryFile) Create

func (self *InMemoryFile) Create(name string) (source.ParquetFile, error)

func (*InMemoryFile) Open

func (self *InMemoryFile) Open(name string) (source.ParquetFile, error)

func (*InMemoryFile) Read

func (self *InMemoryFile) Read(b []byte) (cnt int, err error)

func (*InMemoryFile) Seek

func (self *InMemoryFile) Seek(offset int64, pos int) (int64, error)

func (*InMemoryFile) Write

func (self *InMemoryFile) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL