Documentation
¶
Index ¶
- func AddFileWriter(format string, ds *data.DataStream, writer io.Writer) (data.DataWriter, error)
- func BuildFullPath(parsed *url.URL, filename string) (*url.URL, error)
- func CreateCompressedWriter(bufWriter *bufio.Writer, compressionType string, format string) (io.WriteCloser, error)
- func GetIo(counting io.Writer, filePath *url.URL) (*bufio.Writer, error)
- func GetPathAndIO(parsed *url.URL, counter io.Writer, filename, compression, format string) (*url.URL, io.WriteCloser, error)
- func NewProgressBar() *progressbar.ProgressBar
- type CSVBatchWriter
- type CSVDataWriter
- type DecimalType
- type JSONLBatchWriter
- type JSONLWriter
- type MappedType
- type ParquetBatchWriter
- type ParquetDataWriter
- type ParquetDecimal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFileWriter ¶ added in v0.11.0
func AddFileWriter(format string, ds *data.DataStream, writer io.Writer) (data.DataWriter, error)
func BuildFullPath ¶ added in v0.10.1
func CreateCompressedWriter ¶ added in v0.11.0
func GetPathAndIO ¶ added in v0.11.0
func NewProgressBar ¶ added in v0.11.1
func NewProgressBar() *progressbar.ProgressBar
Types ¶
type CSVBatchWriter ¶ added in v0.13.0
type CSVBatchWriter struct {
// contains filtered or unexported fields
}
func (*CSVBatchWriter) WriteBatch ¶ added in v0.13.0
func (cb *CSVBatchWriter) WriteBatch(batch data.Batch) error
type CSVDataWriter ¶
type CSVDataWriter struct {
// contains filtered or unexported fields
}
func AddCSV ¶
func AddCSV(ds *data.DataStream, writer io.Writer) *CSVDataWriter
func NewCSVDataWriter ¶
func NewCSVDataWriter(datastream *data.DataStream, writer io.Writer) *CSVDataWriter
func (*CSVDataWriter) Close ¶
func (cw *CSVDataWriter) Close() error
func (*CSVDataWriter) CreateBatchWriter ¶ added in v0.13.0
func (cw *CSVDataWriter) CreateBatchWriter() data.BatchWriter
func (*CSVDataWriter) Flush ¶
func (cw *CSVDataWriter) Flush() error
func (*CSVDataWriter) ProcessRow ¶ added in v0.13.0
func (cw *CSVDataWriter) ProcessRow(row []any) ([]string, error)
type DecimalType ¶ added in v0.6.0
type DecimalType int
const ( UnknownDecimal DecimalType = iota Int32Decimal Int64Decimal ByteArrayDecimal )
type JSONLBatchWriter ¶ added in v0.13.0
type JSONLBatchWriter struct {
// contains filtered or unexported fields
}
func (*JSONLBatchWriter) WriteBatch ¶ added in v0.13.0
func (bw *JSONLBatchWriter) WriteBatch(batch data.Batch) error
type JSONLWriter ¶
type JSONLWriter struct {
// contains filtered or unexported fields
}
func AddJSONL ¶
func AddJSONL(ds *data.DataStream, writer io.Writer) *JSONLWriter
func NewJSONLWriter ¶ added in v0.13.0
func NewJSONLWriter(ds *data.DataStream, writer io.Writer) *JSONLWriter
func (*JSONLWriter) Close ¶
func (w *JSONLWriter) Close() error
func (*JSONLWriter) CreateBatchWriter ¶ added in v0.13.0
func (w *JSONLWriter) CreateBatchWriter() data.BatchWriter
func (*JSONLWriter) Flush ¶
func (w *JSONLWriter) Flush() error
func (*JSONLWriter) ProcessRow ¶ added in v0.13.0
func (w *JSONLWriter) ProcessRow(row []any) ([]byte, error)
type MappedType ¶ added in v0.6.0
type ParquetBatchWriter ¶ added in v0.13.0
type ParquetBatchWriter struct {
// contains filtered or unexported fields
}
func (*ParquetBatchWriter) WriteBatch ¶ added in v0.13.0
func (pb *ParquetBatchWriter) WriteBatch(batch data.Batch) error
type ParquetDataWriter ¶
type ParquetDataWriter struct {
// contains filtered or unexported fields
}
func AddParquet ¶
func AddParquet(ds *data.DataStream, writer io.Writer) *ParquetDataWriter
func NewParquetDataWriter ¶
func NewParquetDataWriter(datastream *data.DataStream, ioWriter io.Writer) *ParquetDataWriter
func (*ParquetDataWriter) Close ¶
func (pw *ParquetDataWriter) Close() error
func (*ParquetDataWriter) CreateBatchWriter ¶ added in v0.13.0
func (pw *ParquetDataWriter) CreateBatchWriter() data.BatchWriter
func (*ParquetDataWriter) Flush ¶
func (pw *ParquetDataWriter) Flush() error
type ParquetDecimal ¶ added in v0.6.0
type ParquetDecimal struct { Type DecimalType // Discriminator to indicate the active type Int32Val int32 Int64Val int64 ByteArrayVal []byte }
Click to show internal directories.
Click to hide internal directories.