Package one.microstream.util.csv
Class CsvContentBuilderCharArray.TableCollector
- java.lang.Object
-
- one.microstream.util.csv.CsvContentBuilderCharArray.TableCollector
-
- All Implemented Interfaces:
_charRangeProcedure
,CsvRowCollector
- Enclosing class:
- CsvContentBuilderCharArray
public final class CsvContentBuilderCharArray.TableCollector extends Object implements CsvRowCollector
-
-
Constructor Summary
Constructors Constructor Description TableCollector(Consumer<StringTable> tableCollector, StringTable.Creator tableCreator, Substituter<String> stringCache)
-
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.
-
-
-
Constructor Detail
-
TableCollector
public TableCollector(Consumer<StringTable> tableCollector, StringTable.Creator tableCreator, Substituter<String> stringCache)
-
-
Method Detail
-
beginTable
public void beginTable(String tableName, XGettingSequence<String> columnNames, XGettingList<String> columnTypes)
- Specified by:
beginTable
in interfaceCsvRowCollector
-
accept
public final 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
-
-