hollow/src/main/java/com/netflix/hollow/tools/history/HollowHistoricalStateCreator.java
public HollowHistoricalStateDataAccess createBasedOnNewDelta(long version, HollowReadStateEngine stateEngine) {
        IntMapOrdinalRemapper typeRemovedOrdinalMapping = new IntMapOrdinalRemapper();

        List<HollowTypeReadState> historicalTypeStates = new ArrayList<HollowTypeReadState>(stateEngine.getTypeStates().size());

        for(HollowTypeReadState typeState : stateEngine.getTypeStates()) {
            createDeltaHistoricalTypeState(typeRemovedOrdinalMapping, historicalTypeStates, typeState);
        }

        HollowHistoricalStateDataAccess dataAccess = new HollowHistoricalStateDataAccess(totalHistory, version, stateEngine, historicalTypeStates, typeRemovedOrdinalMapping, Collections.<String, HollowHistoricalSchemaChange>emptyMap());
        dataAccess.setNextState(stateEngine);

        return dataAccess;
    }
public HollowHistoricalStateDataAccess createBasedOnNewDelta(long version, HollowReadStateEngine stateEngine) {
        IntMapOrdinalRemapper typeRemovedOrdinalMapping = new IntMapOrdinalRemapper();

        List<HollowTypeReadState> historicalTypeStates = new ArrayList<HollowTypeReadState>(stateEngine.getTypeStates().size());

        for(HollowTypeReadState typeState : stateEngine.getTypeStates()) {
            createDeltaHistoricalTypeState(typeRemovedOrdinalMapping, historicalTypeStates, typeState);
        }

        HollowHistoricalStateDataAccess dataAccess = new HollowHistoricalStateDataAccess(totalHistory, version, stateEngine, historicalTypeStates, typeRemovedOrdinalMapping, Collections.<String, HollowHistoricalSchemaChange>emptyMap());
        dataAccess.setNextState(stateEngine);

        return dataAccess;
    }
public HollowHistoricalStateDataAccess createBasedOnNewDelta ( long version , HollowReadStateEngine stateEngine ) { IntMapOrdinalRemapper typeRemovedOrdinalMapping = new IntMapOrdinalRemapper ( ) ; List < HollowTypeReadState > historicalTypeStates = new ArrayList < HollowTypeReadState > ( stateEngine . getTypeStates ( ) . size ( ) ) ; for ( HollowTypeReadState typeState : stateEngine . getTypeStates ( ) ) { createDeltaHistoricalTypeState ( typeRemovedOrdinalMapping , historicalTypeStates , typeState ) ; } HollowHistoricalStateDataAccess dataAccess = new HollowHistoricalStateDataAccess ( totalHistory , version , stateEngine , historicalTypeStates , typeRemovedOrdinalMapping , Collections . < String , HollowHistoricalSchemaChange > emptyMap ( ) ) ; dataAccess . setNextState ( stateEngine ) ; return dataAccess ; }
Create a {@link HollowDataAccess} for the prior state of the supplied {@link HollowReadStateEngine} after a delta
has been applied.

@param version The state's version
@param stateEngine The current {@link HollowReadStateEngine} to which a delta has been applied.
@return a data access for history
Create a { @link HollowDataAccess } for the prior state of the supplied { @link HollowReadStateEngine } after a delta has been applied .