Documentation ¶
Index ¶
- func NewS3FileReaderWithClient(ctx context.Context, s3Client *minio.Client, bucket string, key string) (source.ParquetFile, error)
- func NewS3FileWriterWithClient(ctx context.Context, s3Client *minio.Client, bucket string, key string) (source.ParquetFile, error)
- type MinioFile
- func (s *MinioFile) Close() error
- func (s *MinioFile) Create(key string) (source.ParquetFile, error)
- func (s *MinioFile) Open(name string) (source.ParquetFile, error)
- func (s *MinioFile) Read(p []byte) (n int, err error)
- func (s *MinioFile) Seek(offset int64, whence int) (int64, error)
- func (s *MinioFile) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewS3FileReaderWithClient ¶
func NewS3FileReaderWithClient(ctx context.Context, s3Client *minio.Client, bucket string, key string) (source.ParquetFile, error)
NewS3FileReaderWithClient is the same as NewMinioFileReader but allows passing your own S3 client
func NewS3FileWriterWithClient ¶
func NewS3FileWriterWithClient( ctx context.Context, s3Client *minio.Client, bucket string, key string, ) (source.ParquetFile, error)
NewS3FileWriterWithClient is the same as NewMinioFileWriter but allows passing your own S3 client.
Types ¶
type MinioFile ¶
MinioFile is ParquetFile for MinIO S3 API
func (*MinioFile) Close ¶
Close signals write completion and cleans up any open streams. Will block until pending uploads are complete.
func (*MinioFile) Create ¶
func (s *MinioFile) Create(key string) (source.ParquetFile, error)
Create creates a new Minio File instance to perform writes
func (*MinioFile) Open ¶
func (s *MinioFile) Open(name string) (source.ParquetFile, error)
Open creates a new Minio File instance to perform concurrent reads
Click to show internal directories.
Click to hide internal directories.