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, onStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
public 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()
IResourceBuilder
Copyright © 2022. All rights reserved.