Documentation ¶
Index ¶
- type Batch
- type BatchMgr
- func (bm *BatchMgr) Add(data base.Data, runnerLogger *logger.RunnerLogger) error
- func (bm *BatchMgr) Done()
- func (bm *BatchMgr) GeneratePropsString(props []*config.Prop) string
- func (bm *BatchMgr) InitSchema(header base.Record, runnerLogger *logger.RunnerLogger) (err error)
- func (m *BatchMgr) MakeEdgeStmt(batch []base.Data) (string, error)
- func (m *BatchMgr) MakeVertexStmt(batch []base.Data) (string, error)
- type DataFileReader
- type FileReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchMgr ¶
type BatchMgr struct { Schema *config.Schema Batches []*Batch InsertStmtPrefix string // contains filtered or unexported fields }
func NewBatchMgr ¶
func (*BatchMgr) GeneratePropsString ¶
func (*BatchMgr) InitSchema ¶
type DataFileReader ¶
type FileReader ¶
type FileReader struct { FileIdx int File *config.File WithHeader bool DataReader DataFileReader Concurrency int BatchMgr *BatchMgr StopFlag bool // contains filtered or unexported fields }
FIXME: private fields
func New ¶
func New(fileIdx int, file *config.File, cleanup bool, clientRequestChs []chan base.ClientRequest, errCh chan<- base.ErrData, runnerLogger *logger.RunnerLogger) (*FileReader, error)
func (*FileReader) Read ¶
func (r *FileReader) Read() (numErrorLines int64, err error)
func (*FileReader) Stop ¶
func (r *FileReader) Stop()
Click to show internal directories.
Click to hide internal directories.