Package one.microstream.storage.types
Class StorageDataConverterTypeCsvToBinary.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageDataConverterTypeCsvToBinary.Default
-
- All Implemented Interfaces:
_charRangeProcedure
,StorageDataConverterTypeCsvToBinary<StorageFile>
,CsvRecordParserCharArray
,CsvRecordParserCharArray.Provider
,CsvRowCollector
,CsvSegmentsParser<_charArrayRange>
,CsvSegmentsParser.Provider<_charArrayRange>
- Enclosing interface:
- StorageDataConverterTypeCsvToBinary<S>
public static final class StorageDataConverterTypeCsvToBinary.Default extends Object implements StorageDataConverterTypeCsvToBinary<StorageFile>, CsvSegmentsParser.Provider<_charArrayRange>, CsvSegmentsParser<_charArrayRange>, CsvRecordParserCharArray.Provider, CsvRowCollector, CsvRecordParserCharArray
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.util.csv.CsvRecordParserCharArray
CsvRecordParserCharArray.Provider, CsvRecordParserCharArray.Static
-
Nested classes/interfaces inherited from interface one.microstream.util.csv.CsvSegmentsParser
CsvSegmentsParser.Provider<I>
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageDataConverterTypeCsvToBinary
StorageDataConverterTypeCsvToBinary.Default, StorageDataConverterTypeCsvToBinary.ValueHandler
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description void
accept(char[] data, int offset, int length)
void
beginTable(String tableName, XGettingSequence<String> columnNames, XGettingList<String> columnTypes)
void
completeRow()
Calls without collected values (e.g.void
completeTable()
Calls without collected rows (e.g.void
convertCsv(StorageFile file)
int
parseRecord(char[] input, int iStart, int iBound, char valueSeparator, char delimiter, char escaper, char recordSeparator, char terminator, CsvConfiguration config, VarString literalBuilder, EscapeHandler escapeHandler, _charRangeProcedure valueCollector)
void
parseSegments(_charArrayRange input)
CsvRecordParserCharArray
provideRecordParser()
CsvSegmentsParser<_charArrayRange>
provideSegmentsParser(CsvConfiguration config, CsvRowCollector rowAggregator)
-
-
-
Method Detail
-
convertCsv
public void convertCsv(StorageFile file)
- Specified by:
convertCsv
in interfaceStorageDataConverterTypeCsvToBinary<StorageFile>
-
beginTable
public void beginTable(String tableName, XGettingSequence<String> columnNames, XGettingList<String> columnTypes)
- Specified by:
beginTable
in interfaceCsvRowCollector
-
accept
public void accept(char[] data, int offset, int length)
- Specified by:
accept
in interface_charRangeProcedure
- Specified by:
accept
in interfaceCsvRowCollector
-
completeRow
public final void completeRow()
Description copied from interface:CsvRowCollector
Calls without collected values (e.g. repeated calls) may not have undesired effects.- Specified by:
completeRow
in interfaceCsvRowCollector
-
completeTable
public final void completeTable()
Description copied from interface:CsvRowCollector
Calls without collected rows (e.g. repeated calls) may not have undesired effects.- Specified by:
completeTable
in interfaceCsvRowCollector
-
provideSegmentsParser
public CsvSegmentsParser<_charArrayRange> provideSegmentsParser(CsvConfiguration config, CsvRowCollector rowAggregator)
- Specified by:
provideSegmentsParser
in interfaceCsvSegmentsParser.Provider<_charArrayRange>
-
parseSegments
public void parseSegments(_charArrayRange input)
- Specified by:
parseSegments
in interfaceCsvSegmentsParser<_charArrayRange>
-
provideRecordParser
public CsvRecordParserCharArray provideRecordParser()
- Specified by:
provideRecordParser
in interfaceCsvRecordParserCharArray.Provider
-
parseRecord
public int parseRecord(char[] input, int iStart, int iBound, char valueSeparator, char delimiter, char escaper, char recordSeparator, char terminator, CsvConfiguration config, VarString literalBuilder, EscapeHandler escapeHandler, _charRangeProcedure valueCollector)
- Specified by:
parseRecord
in interfaceCsvRecordParserCharArray
-
-