Documentation ¶
Index ¶
- type Batch
- type BatchMgr
- func (bm *BatchMgr) Add(data base.Data) error
- func (bm *BatchMgr) Done()
- func (bm *BatchMgr) GeneratePropsString(props []*config.Prop) string
- func (bm *BatchMgr) InitSchema(header base.Record) (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 ¶
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) (*FileReader, error)
func (*FileReader) Read ¶
func (r *FileReader) Read() error
func (*FileReader) Stop ¶
func (r *FileReader) Stop()
Click to show internal directories.
Click to hide internal directories.