public class JsonToMapInPlaceResourceBuilder extends AbstractJsonResourceBuilder
IResourceBuilder.CompactionType
Constructor and Description |
---|
JsonToMapInPlaceResourceBuilder(Supplier<IResourceTuple> supplier,
String hashKey,
boolean lowerCaseKeys)
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.
|
applyAsInt, onEnd, onStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
public JsonToMapInPlaceResourceBuilder(Supplier<IResourceTuple> supplier, String hashKey, boolean lowerCaseKeys)
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‚Copyright © 2022. All rights reserved.