Package one.microstream.util.xcsv
Class XCSV
java.lang.Object
one.microstream.util.xcsv.XCSV
public final class XCSV extends Object
An extended CSV format ("XCSV") with the following traits:
- Allows an arbitrary separator value (interpreting "CSV" as "character separated values" instead of "comma separated values"), with a TAB ascii character as the default separator since that character has been designed exactely for that purpose and is superior to any other character for that task.
- Optionally contains a header line defining all control characters
- Contains an optional second header line defining/hinting the data type of the column
- Allows single line and multi line comments
- Allows multiple tables of different structure ("segments") in one file
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
XCSV.ValueSeparatorWeight
-
Constructor Summary
Constructors Constructor Description XCSV()
-
Method Summary
-
Constructor Details
-
XCSV
public XCSV()
-
-
Method Details
-
ValueSeparatorWeight
-
getValidValueSeparators
public static final char[] getValidValueSeparators() -
configurationDefault
-
ConfigurationBuilder
-
AssemblerBuilder
-
isValidValueSeparator
public static boolean isValidValueSeparator(char c) -
validateValueSeparator
public static char validateValueSeparator(char c) -
assembleRow
public static final <T> void assembleRow(XCsvAssembler assembler, XCsvRowAssembler<T> rowAssembler, XIterable<? extends T> row) -
assembleRows
public static final <T> void assembleRows(XCsvAssembler assembler, XCsvRowAssembler<T> rowAssembler, XIterable<? extends T> rows) -
parse
-
parse
-
parse
-
parse
-
parse
public static StringTable parse(String rawData, XCsvConfiguration configuration, XCsvDataType dataType) -
assembleString
-
assembleString
-
parse
-
parse
-
parse
-
parse
-
parse
public static StringTable parse(_charArrayRange rawData, XCsvConfiguration csvConfiguration, XCsvDataType dataType) -
estimatedCharCountPerRow
public static final int estimatedCharCountPerRow() -
calculateEstimatedCharCount
public static final int calculateEstimatedCharCount(long rowCount) -
assembleString
-
assembleString
public static final VarString assembleString(VarString vs, StringTable st, XCsvConfiguration csvConfiguration) -
readFromFile
-
readFromFile
-
readFromFile
-
readFromFile
-
readFromFile
-
readFromFile
-
readFromFile
-
readFromFile
-