Documentation
¶
Overview ¶
Package fileio provides the FileIO abstraction for reading Paimon table files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileIO ¶
type FileIO interface {
// Open returns a ReadCloser for the given path.
Open(ctx context.Context, path string) (io.ReadCloser, error)
// ReadAll reads the full contents of path into memory.
ReadAll(ctx context.Context, path string) ([]byte, error)
// List returns the immediate children of dir.
List(ctx context.Context, dir string) ([]FileStatus, error)
// Exists returns true if path exists.
Exists(ctx context.Context, path string) (bool, error)
// Close releases any resources held by the FileIO.
Close() error
}
FileIO is the storage abstraction used by all Paimon readers.
type FileStatus ¶
FileStatus describes a file or directory entry.
type Option ¶
type Option func(*config)
Option configures a FileIO instance.
func WithCredentialsFile ¶
WithCredentialsFile sets a service-account key file for GCS auth.
func WithCredentialsJSON ¶
WithCredentialsJSON sets raw service-account JSON for GCS auth.
Click to show internal directories.
Click to hide internal directories.