Пример #1
0
func NewSubsetIndexer(f *os.File) subset {
	return subset{
		f:     f,
		r:     line.NewReader(f),
		Index: New(),
	}
}
Пример #2
0
func NewColumnIndexer(f *os.File) column {
	return column{
		f:     f,
		r:     line.NewReader(f),
		Index: New(),
	}
}
Пример #3
0
func NewLineIndexer(f *os.File, nType string, snFormat string, snIndexPath string) Indexer {
	return &lineRecord{
		f:     f,
		r:     line.NewReader(f),
		t:     nType,
		snf:   snFormat,
		snp:   snIndexPath,
		Index: New(),
	}
}