public class StateEngineRoundTripper
extends java.lang.Object
HollowReadStateEngine
from a HollowWriteStateEngine
Constructor and Description |
---|
StateEngineRoundTripper() |
Modifier and Type | Method and Description |
---|---|
static void |
roundTripDelta(HollowWriteStateEngine writeEngine,
HollowReadStateEngine readEngine)
Update the provided
HollowReadStateEngine with the new state currently available in the HollowWriteStateEngine . |
static HollowReadStateEngine |
roundTripSnapshot(HollowWriteStateEngine writeEngine) |
static void |
roundTripSnapshot(HollowWriteStateEngine writeEngine,
HollowReadStateEngine readEngine)
Populate the provided
HollowReadStateEngine with the dataset currently in the provided HollowWriteStateEngine |
static void |
roundTripSnapshot(HollowWriteStateEngine writeEngine,
HollowReadStateEngine readEngine,
HollowFilterConfig filter)
Populate the provided
HollowReadStateEngine with the dataset currently in the provided HollowWriteStateEngine . |
public static HollowReadStateEngine roundTripSnapshot(HollowWriteStateEngine writeEngine) throws java.io.IOException
writeEngine
- the write state engineHollowReadStateEngine
with the dataset populated in the provided HollowWriteStateEngine
java.io.IOException
- if the round trip from write to read state failedpublic static void roundTripSnapshot(HollowWriteStateEngine writeEngine, HollowReadStateEngine readEngine) throws java.io.IOException
HollowReadStateEngine
with the dataset currently in the provided HollowWriteStateEngine
writeEngine
- the write state enginereadEngine
- the read state enginejava.io.IOException
- if the round trip from write to read state failedpublic static void roundTripSnapshot(HollowWriteStateEngine writeEngine, HollowReadStateEngine readEngine, HollowFilterConfig filter) throws java.io.IOException
HollowReadStateEngine
with the dataset currently in the provided HollowWriteStateEngine
.
Apply the provided HollowFilterConfig
.
writeEngine
- the write state enginereadEngine
- the read state enginefilter
- the filter configurationjava.io.IOException
- if the round trip from write to read state failedpublic static void roundTripDelta(HollowWriteStateEngine writeEngine, HollowReadStateEngine readEngine) throws java.io.IOException
HollowReadStateEngine
with the new state currently available in the HollowWriteStateEngine
.
It is assumed that the readEngine is currently populated with the prior state from the writeEngine.
writeEngine
- the write state enginereadEngine
- the read state enginejava.io.IOException
- if the round trip from write to read state failed