Documentation ¶
Index ¶
- func NewCSVEvent(row []byte, cols *abstract.TableSchema, names []string, table abstract.TableID, ...) events.InsertEvent
- func NewEvent(format model.ClickhouseIOFormat, row []byte, cols *abstract.TableSchema, ...) (base.Event, error)
- func NewJSONCompactEvent(row []byte, cols *abstract.TableSchema, names []string, table abstract.TableID, ...) events.InsertEvent
- type CSVEvent
- type CsvValidator
- type FatalValidatorWithInputLogger
- type JSONCompactEvent
- type JSONCompactValidator
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSVEvent ¶
func NewCSVEvent(row []byte, cols *abstract.TableSchema, names []string, table abstract.TableID, readerTime time.Time) events.InsertEvent
func NewJSONCompactEvent ¶
func NewJSONCompactEvent(row []byte, cols *abstract.TableSchema, names []string, table abstract.TableID, readerTime time.Time) events.InsertEvent
Types ¶
type CSVEvent ¶
type CSVEvent struct {
// contains filtered or unexported fields
}
func (*CSVEvent) NewValuesCount ¶
func (*CSVEvent) ToOldChangeItem ¶
func (e *CSVEvent) ToOldChangeItem() (*abstract.ChangeItem, error)
type CsvValidator ¶
type CsvValidator struct {
// contains filtered or unexported fields
}
func NewCsvValidator ¶
func NewCsvValidator(reader io.Reader, columnsCount int) *CsvValidator
func (*CsvValidator) ReadAndValidate ¶
func (e *CsvValidator) ReadAndValidate() (int64, error)
type FatalValidatorWithInputLogger ¶
type FatalValidatorWithInputLogger struct {
// contains filtered or unexported fields
}
func NewFatalValidator ¶
func NewFatalValidator(in Validator) *FatalValidatorWithInputLogger
func NewValidator ¶
func NewValidator(reader io.Reader, format model.ClickhouseIOFormat, expectedColumnsNum int) (*FatalValidatorWithInputLogger, error)
func (*FatalValidatorWithInputLogger) ReadAndValidate ¶
func (v *FatalValidatorWithInputLogger) ReadAndValidate() (int64, error)
type JSONCompactEvent ¶
type JSONCompactEvent struct {
// contains filtered or unexported fields
}
func (*JSONCompactEvent) NewValuesCount ¶
func (e *JSONCompactEvent) NewValuesCount() int
func (*JSONCompactEvent) Table ¶
func (e *JSONCompactEvent) Table() base.Table
func (*JSONCompactEvent) ToOldChangeItem ¶
func (e *JSONCompactEvent) ToOldChangeItem() (*abstract.ChangeItem, error)
type JSONCompactValidator ¶
type JSONCompactValidator struct {
// contains filtered or unexported fields
}
func NewJSONCompactValidator ¶
func NewJSONCompactValidator(reader io.Reader, columnsCount int) *JSONCompactValidator
func (*JSONCompactValidator) ReadAndValidate ¶
func (e *JSONCompactValidator) ReadAndValidate() (int64, error)
Click to show internal directories.
Click to hide internal directories.