Package one.microstream.storage.types
Class StorageDataConverterTypeCsvToBinary.Default
java.lang.Object
one.microstream.storage.types.StorageDataConverterTypeCsvToBinary.Default
- All Implemented Interfaces:
_charRangeProcedure
,StorageDataConverterTypeCsvToBinary<StorageFile>
,XCsvRecordParserCharArray
,XCsvRecordParserCharArray.Provider
,XCsvRowCollector
,XCsvSegmentsParser<_charArrayRange>
,XCsvSegmentsParser.Provider<_charArrayRange>
- Enclosing interface:
- StorageDataConverterTypeCsvToBinary<S>
public static final class StorageDataConverterTypeCsvToBinary.Default extends Object implements StorageDataConverterTypeCsvToBinary<StorageFile>, XCsvSegmentsParser.Provider<_charArrayRange>, XCsvSegmentsParser<_charArrayRange>, XCsvRecordParserCharArray.Provider, XCsvRowCollector, XCsvRecordParserCharArray
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageDataConverterTypeCsvToBinary
StorageDataConverterTypeCsvToBinary.Default, StorageDataConverterTypeCsvToBinary.ValueHandler
Nested classes/interfaces inherited from interface one.microstream.util.xcsv.XCsvRecordParserCharArray
XCsvRecordParserCharArray.Provider, XCsvRecordParserCharArray.Static
Nested classes/interfaces inherited from interface one.microstream.util.xcsv.XCsvSegmentsParser
XCsvSegmentsParser.Provider<I>
-
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 lineSeparator, char terminator, XCsvConfiguration config, VarString literalBuilder, EscapeHandler escapeHandler, _charRangeProcedure valueCollector)
void
parseSegments(_charArrayRange input)
XCsvRecordParserCharArray
provideRecordParser()
XCsvSegmentsParser<_charArrayRange>
provideSegmentsParser(XCsvConfiguration config, XCsvRowCollector rowAggregator)
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
convertCsv
- Specified by:
convertCsv
in interfaceStorageDataConverterTypeCsvToBinary<StorageFile>
-
beginTable
public void beginTable(String tableName, XGettingSequence<String> columnNames, XGettingList<String> columnTypes)- Specified by:
beginTable
in interfaceXCsvRowCollector
-
accept
public void accept(char[] data, int offset, int length)- Specified by:
accept
in interface_charRangeProcedure
- Specified by:
accept
in interfaceXCsvRowCollector
-
completeRow
public final void completeRow()Description copied from interface:XCsvRowCollector
Calls without collected values (e.g. repeated calls) may not have undesired effects.- Specified by:
completeRow
in interfaceXCsvRowCollector
-
completeTable
public final void completeTable()Description copied from interface:XCsvRowCollector
Calls without collected rows (e.g. repeated calls) may not have undesired effects.- Specified by:
completeTable
in interfaceXCsvRowCollector
-
provideSegmentsParser
public XCsvSegmentsParser<_charArrayRange> provideSegmentsParser(XCsvConfiguration config, XCsvRowCollector rowAggregator)- Specified by:
provideSegmentsParser
in interfaceXCsvSegmentsParser.Provider<_charArrayRange>
-
parseSegments
- Specified by:
parseSegments
in interfaceXCsvSegmentsParser<_charArrayRange>
-
provideRecordParser
- Specified by:
provideRecordParser
in interfaceXCsvRecordParserCharArray.Provider
-
parseRecord
public int parseRecord(char[] input, int iStart, int iBound, char valueSeparator, char delimiter, char escaper, char lineSeparator, char terminator, XCsvConfiguration config, VarString literalBuilder, EscapeHandler escapeHandler, _charRangeProcedure valueCollector)- Specified by:
parseRecord
in interfaceXCsvRecordParserCharArray
-