public class CsvToMapResourceBuilder extends AbstractCsvResourceBuilder
IResourceBuilder.CompactionType
columns, 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.
|
onEnd
onStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
public 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 IResourceBuilder
onStart
in class AbstractCsvLineResourceBuilder
Copyright © 2022. All rights reserved.