public class HollowHistoricalStateCreator
extends java.lang.Object
HollowDataAccess
, even in the absence of a HollowHistory
.Constructor and Description |
---|
HollowHistoricalStateCreator() |
HollowHistoricalStateCreator(HollowHistory totalHistory) |
Modifier and Type | Method and Description |
---|---|
HollowHistoricalStateDataAccess |
copyButRemapOrdinals(HollowHistoricalStateDataAccess previous,
OrdinalRemapper ordinalRemapper) |
HollowHistoricalStateDataAccess |
createBasedOnNewDelta(long version,
HollowReadStateEngine stateEngine)
Create a
HollowDataAccess for the prior state of the supplied HollowReadStateEngine after a delta
has been applied. |
HollowHistoricalStateDataAccess |
createConsistentOrdinalHistoricalStateFromDoubleSnapshot(long version,
HollowReadStateEngine previous)
Create a
HollowDataAccess for a HollowHistory . |
HollowHistoricalStateDataAccess |
createHistoricalStateFromDoubleSnapshot(long version,
HollowReadStateEngine previous,
HollowReadStateEngine current,
DiffEqualityMappingOrdinalRemapper ordinalRemapper)
Create a
HollowDataAccess for a historical state after a double snapshot occurs, without a HollowHistory . |
public HollowHistoricalStateCreator()
public HollowHistoricalStateCreator(HollowHistory totalHistory)
public HollowHistoricalStateDataAccess createBasedOnNewDelta(long version, HollowReadStateEngine stateEngine)
HollowDataAccess
for the prior state of the supplied HollowReadStateEngine
after a delta
has been applied.version
- The state's versionstateEngine
- The current HollowReadStateEngine
to which a delta has been applied.public HollowHistoricalStateDataAccess createConsistentOrdinalHistoricalStateFromDoubleSnapshot(long version, HollowReadStateEngine previous)
HollowDataAccess
for a HollowHistory
. Remap ordinal spaces for all prior historical
versions in the HollowHistory
for consistency.version
- the versionprevious
- the prior read statepublic HollowHistoricalStateDataAccess createHistoricalStateFromDoubleSnapshot(long version, HollowReadStateEngine previous, HollowReadStateEngine current, DiffEqualityMappingOrdinalRemapper ordinalRemapper)
HollowDataAccess
for a historical state after a double snapshot occurs, without a HollowHistory
.version
- the versionprevious
- the previous statecurrent
- the current stateordinalRemapper
- the ordinal remapperpublic HollowHistoricalStateDataAccess copyButRemapOrdinals(HollowHistoricalStateDataAccess previous, OrdinalRemapper ordinalRemapper)