@Override public void serialize(NFAState record, DataOutputView target) throws IOException { serializeComputationStates(record.getPartialMatches(), target); serializeComputationStates(record.getCompletedMatches(), target); }
List<Map<String, List<T>>> result) throws Exception { nfaState.getCompletedMatches().addAll(potentialMatches); ComputationState earliestMatch = nfaState.getCompletedMatches().peek(); nfaState.getCompletedMatches().poll(); List<Map<String, List<EventId>>> matchedResult = sharedBufferAccessor.extractPatterns(earliestMatch.getPreviousBufferEntry(), earliestMatch.getVersion()); nfaState.getCompletedMatches(), matchedResult, sharedBufferAccessor); earliestMatch = nfaState.getCompletedMatches().peek();
@Override public void serialize(NFAState record, DataOutputView target) throws IOException { serializeComputationStates(record.getPartialMatches(), target); serializeComputationStates(record.getCompletedMatches(), target); }
@Override public void serialize(NFAState record, DataOutputView target) throws IOException { serializeComputationStates(record.getPartialMatches(), target); serializeComputationStates(record.getCompletedMatches(), target); }
List<Map<String, List<T>>> result) throws Exception { nfaState.getCompletedMatches().addAll(potentialMatches); ComputationState earliestMatch = nfaState.getCompletedMatches().peek(); nfaState.getCompletedMatches().poll(); List<Map<String, List<EventId>>> matchedResult = sharedBufferAccessor.extractPatterns(earliestMatch.getPreviousBufferEntry(), earliestMatch.getVersion()); nfaState.getCompletedMatches(), matchedResult, sharedBufferAccessor); earliestMatch = nfaState.getCompletedMatches().peek();
List<Map<String, List<T>>> result) throws Exception { nfaState.getCompletedMatches().addAll(potentialMatches); ComputationState earliestMatch = nfaState.getCompletedMatches().peek(); nfaState.getCompletedMatches().poll(); List<Map<String, List<EventId>>> matchedResult = sharedBufferAccessor.extractPatterns(earliestMatch.getPreviousBufferEntry(), earliestMatch.getVersion()); nfaState.getCompletedMatches(), matchedResult, sharedBufferAccessor); earliestMatch = nfaState.getCompletedMatches().peek();