public class JsonToMapResourceBuilder extends AbstractJsonResourceBuilder
A new resource tuple is created at each loading. It can be used to atomically switch from one loaded resource to the other. This is however the caller responsibility.
IResourceBuilder.CompactionType| Constructor and Description |
|---|
JsonToMapResourceBuilder(Supplier<IResourceTuple> supplier,
String hashKey,
boolean lowerCaseKeys)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onStart()
Callback to tell you you are about to receive new lines.
|
applyAsInt, onEnd, onStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreparepublic JsonToMapResourceBuilder(Supplier<IResourceTuple> supplier, String hashKey, boolean lowerCaseKeys)
supplier - the tuple supplier. It is invoked at every resource loading.hashKey - the key to be used as a hash key for the resource tuple.lowerCaseKeys - true to convert all keys to lower casepublic void onStart()
IResourceBuilderCopyright © 2022. All rights reserved.