public class HollowBlobReader
extends java.lang.Object
HollowReadStateEngine
, via the consumption
of snapshot and delta blobs.Constructor and Description |
---|
HollowBlobReader(HollowReadStateEngine stateEngine) |
HollowBlobReader(HollowReadStateEngine stateEngine,
HollowBlobHeaderReader headerReader) |
Modifier and Type | Method and Description |
---|---|
void |
applyDelta(java.io.InputStream is)
Update the state engine using a delta (or reverse delta) blob from the provided InputStream.
|
void |
readSnapshot(java.io.InputStream is)
Initialize the state engine using a snapshot blob from the provided InputStream.
|
void |
readSnapshot(java.io.InputStream is,
HollowFilterConfig filter)
Initialize the state engine using a snapshot blob from the provided InputStream.
|
void |
readSnapshot(java.io.InputStream is,
TypeFilter filter)
Initialize the state engine using a snapshot blob from the provided InputStream.
|
public HollowBlobReader(HollowReadStateEngine stateEngine)
public HollowBlobReader(HollowReadStateEngine stateEngine, HollowBlobHeaderReader headerReader)
public void readSnapshot(java.io.InputStream is) throws java.io.IOException
is
- the input stream to read the snapshot fromjava.io.IOException
- if the snapshot could not be readpublic void readSnapshot(java.io.InputStream is, HollowFilterConfig filter) throws java.io.IOException
Apply the provided HollowFilterConfig
to the state.
is
- the input stream to read the snaptshotfilter
- the filtering configuration to filter the snapshotjava.io.IOException
- if the snapshot could not be readpublic void readSnapshot(java.io.InputStream is, TypeFilter filter) throws java.io.IOException
Apply the provided TypeFilter
to the state.
is
- the input stream to read the snaptshotfilter
- the type filter to filter the snapshotjava.io.IOException
- if the snapshot could not be readpublic void applyDelta(java.io.InputStream is) throws java.io.IOException
If a HollowFilterConfig
was applied at the time the HollowReadStateEngine
was initialized
with a snapshot, it will continue to be in effect after the state is updated.
is
- the input stream to read the delta fromjava.io.IOException
- if the delta could not be applied