public class CsvToMapResourceBuilder extends AbstractCsvResourceBuilder
IResourceBuilder.CompactionTypecolumns, csvOperator| Constructor and Description |
|---|
CsvToMapResourceBuilder(Supplier<IResourceTuple> supplier,
List<String> columns,
String delimiter,
boolean inferTypes,
String hashKey,
boolean lowerCase,
boolean hasHeader)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onStart()
The same resource tuple is kept in memory, we simply signal a new loading is about to
happen.
|
onEndonStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreparepublic CsvToMapResourceBuilder(Supplier<IResourceTuple> supplier, List<String> columns, String delimiter, boolean inferTypes, String hashKey, boolean lowerCase, boolean hasHeader)
supplier - the tuple supplier. It is invoked at every re‚Singsource loading.isLazy - true to make the tuple contain only strings, to avoid costly inner tuples. This is backed by special
tuple implementations.hashKey - the key to be used as a hash key for the resource tuple.lowerCaseKeys - true to convert all keys to lower case‚public void onStart()
onStart in interface IResourceBuilderonStart in class AbstractCsvLineResourceBuilderCopyright © 2023. All rights reserved.