Documentation ¶
Index ¶
Constants ¶
View Source
const BatchSize = 8192
View Source
const MAX_INSERT_TIME = 3 * time.Second
Variables ¶
This section is empty.
Functions ¶
func GetVectorArrayLen ¶
Types ¶
type BufWriter ¶ added in v0.8.0
type BufWriter struct {
// contains filtered or unexported fields
}
func NewBufWriter ¶ added in v0.8.0
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
func NewCSVWriter ¶
func NewCSVWriter(ctx context.Context, writer io.StringWriter) *CSVWriter
func (*CSVWriter) FlushAndClose ¶
func (*CSVWriter) GetContent ¶
func (*CSVWriter) WriteStrings ¶
type DefaultSqlWriter ¶ added in v0.8.0
type DefaultSqlWriter struct {
// contains filtered or unexported fields
}
DefaultSqlWriter SqlWriter is a writer that writes data to a SQL database.
func NewSqlWriter ¶ added in v0.8.0
func (*DefaultSqlWriter) FlushAndClose ¶ added in v0.8.0
func (sw *DefaultSqlWriter) FlushAndClose() (int, error)
func (*DefaultSqlWriter) GetContent ¶ added in v0.8.0
func (sw *DefaultSqlWriter) GetContent() string
func (*DefaultSqlWriter) WriteRow ¶ added in v0.8.0
func (sw *DefaultSqlWriter) WriteRow(row *table.Row) error
func (*DefaultSqlWriter) WriteStrings ¶ added in v0.8.0
func (sw *DefaultSqlWriter) WriteStrings(record []string) error
type FSWriter ¶
type FSWriter struct {
// contains filtered or unexported fields
}
func NewFSWriter ¶
func NewFSWriter(ctx context.Context, fs fileservice.FileService, opts ...FSWriterOption) *FSWriter
type FSWriterOption ¶
type FSWriterOption func(*FSWriter)
func WithFilePath ¶
func WithFilePath(filepath string) FSWriterOption
func (FSWriterOption) Apply ¶
func (f FSWriterOption) Apply(w *FSWriter)
type TAEReader ¶
type TAEReader struct {
// contains filtered or unexported fields
}
TAEReader implements the io.Reader interface for reading a tae file. Deprecated
func NewTaeReader ¶
func NewTaeReader(ctx context.Context, tbl *table.Table, filePath string, filesize int64, fs fileservice.FileService, mp *mpool.MPool) (*TAEReader, error)
NewTaeReader returns a TAEReader. Deprecated
type TAEWriter ¶
type TAEWriter struct {
// contains filtered or unexported fields
}
TAEWriter implements table.RowWriter and writes data to a tae file. Deprecated
func NewTAEWriter ¶
func NewTAEWriter(ctx context.Context, tbl *table.Table, mp *mpool.MPool, filePath string, fs fileservice.FileService) *TAEWriter
NewTAEWriter returns a new instance of TAEWriter Deprecated
func (*TAEWriter) FlushAndClose ¶
FlushAndClose implement ETLWriter
func (*TAEWriter) GetContent ¶
func (*TAEWriter) WriteStrings ¶
WriteStrings implement ETLWriter
Click to show internal directories.
Click to hide internal directories.