public class HollowBlobReader
extends java.lang.Object
HollowReadStateEngine
, via the consumption
of snapshot and delta blobs. Caller can choose between on-heap or shared-memory mode; defaults to (and for
backwards compatibility) on-heap mode.Constructor and Description |
---|
HollowBlobReader(HollowReadStateEngine stateEngine) |
HollowBlobReader(HollowReadStateEngine stateEngine,
HollowBlobHeaderReader headerReader) |
HollowBlobReader(HollowReadStateEngine stateEngine,
HollowBlobHeaderReader headerReader,
MemoryMode memoryMode) |
HollowBlobReader(HollowReadStateEngine stateEngine,
MemoryMode memoryMode) |
Modifier and Type | Method and Description |
---|---|
void |
applyDelta(HollowBlobInput in)
Update the state engine using a delta (or reverse delta) blob from the provided HollowBlobInput.
|
void |
applyDelta(HollowBlobInput in,
OptionalBlobPartInput optionalParts) |
void |
applyDelta(java.io.InputStream in)
Update the state engine using a delta (or reverse delta) blob from the provided input stream.
|
void |
readSnapshot(HollowBlobInput in)
Initialize the state engine using a snapshot blob from the provided HollowBlobInput.
|
void |
readSnapshot(HollowBlobInput in,
OptionalBlobPartInput optionalParts) |
void |
readSnapshot(HollowBlobInput in,
OptionalBlobPartInput optionalParts,
TypeFilter filter) |
void |
readSnapshot(HollowBlobInput in,
TypeFilter filter)
Initialize the file engine using a snapshot from the provided Hollow Blob Input.
|
void |
readSnapshot(java.io.InputStream is)
Initialize the state engine using a snapshot blob from the provided input stream.
|
void |
readSnapshot(java.io.InputStream is,
HollowFilterConfig filter)
Deprecated.
|
void |
readSnapshot(java.io.InputStream is,
TypeFilter filter)
Initialize the file engine using a snapshot from the provided input stream.
|
public HollowBlobReader(HollowReadStateEngine stateEngine)
public HollowBlobReader(HollowReadStateEngine stateEngine, HollowBlobHeaderReader headerReader)
public HollowBlobReader(HollowReadStateEngine stateEngine, MemoryMode memoryMode)
public HollowBlobReader(HollowReadStateEngine stateEngine, HollowBlobHeaderReader headerReader, MemoryMode memoryMode)
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(HollowBlobInput in) throws java.io.IOException
in
- the Hollow blob input to read the snapshot fromjava.io.IOException
- if the snapshot could not be read@Deprecated public void readSnapshot(java.io.InputStream is, HollowFilterConfig filter) throws java.io.IOException
readSnapshot(InputStream, TypeFilter)
Apply the provided HollowFilterConfig
to the state.
is
- the input stream to read the snapshot fromfilter
- 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 snapshot fromfilter
- the filtering configuration to filter the snapshotjava.io.IOException
- if the snapshot could not be readpublic void readSnapshot(HollowBlobInput in, TypeFilter filter) throws java.io.IOException
Apply the provided TypeFilter
to the state.
in
- the Hollow blob input to read the snapshot fromfilter
- the filtering configuration to filter the snapshotjava.io.IOException
- if the snapshot could not be readpublic void readSnapshot(HollowBlobInput in, OptionalBlobPartInput optionalParts) throws java.io.IOException
java.io.IOException
public void readSnapshot(HollowBlobInput in, OptionalBlobPartInput optionalParts, TypeFilter filter) throws java.io.IOException
java.io.IOException
public void applyDelta(java.io.InputStream in) 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.
in
- the input stream to read the delta fromjava.io.IOException
- if the delta could not be appliedpublic void applyDelta(HollowBlobInput in) 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.
in
- the Hollow blob input to read the delta fromjava.io.IOException
- if the delta could not be appliedpublic void applyDelta(HollowBlobInput in, OptionalBlobPartInput optionalParts) throws java.io.IOException
java.io.IOException