swiftsource

package
v0.0.0-...-c44dcc6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSwiftFileReader

func NewSwiftFileReader(container string, filePath string, conn *swift.Connection) (source.ParquetFile, error)

func NewSwiftFileWriter

func NewSwiftFileWriter(container string, filePath string, conn *swift.Connection) (source.ParquetFile, error)

Types

type SwiftFile

type SwiftFile struct {
	Connection *swift.Connection

	Container string
	FilePath  string

	FileReader *swift.ObjectOpenFile
	FileWriter *swift.ObjectCreateFile
}

func (*SwiftFile) Close

func (file *SwiftFile) Close() error

func (*SwiftFile) Create

func (file *SwiftFile) Create(name string) (source.ParquetFile, error)

func (*SwiftFile) Open

func (file *SwiftFile) Open(name string) (source.ParquetFile, error)

func (*SwiftFile) Read

func (file *SwiftFile) Read(b []byte) (n int, err error)

func (*SwiftFile) Seek

func (file *SwiftFile) Seek(offset int64, whence int) (int64, error)

func (*SwiftFile) Write

func (file *SwiftFile) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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