Class AccStateMap<I,E,K,V>
java.lang.Object
org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccStateBase<I,E,K,V>
org.aksw.jenax.graphql.sparql.v2.acc.state.api.impl.AccStateMap<I,E,K,V>
- All Implemented Interfaces:
AccState<I,,E> AccStateGon<I,,E, K, V> AccStateTypeProduceEntry<I,,E, K, V> AccStateTypeTransition<I,E, K, V>
public class AccStateMap<I,E,K,V>
extends AccStateBase<I,E,K,V>
implements AccStateTypeProduceEntry<I,E,K,V>
This mapper only generates the keys - it does not generate the enclosing start/end object tags.
{
k1: [k1v1, k1v2]
k2: k2v
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectprotected BiFunction<I,E, ? extends K> protected booleanprotected Objectprotected intprotected booleanprotected AccStateGon<I,E, K, V> protected BiPredicate<I,E> Fields inherited from class org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccStateBase
context, currentInput, currentSourceNode, hasBegun, oldSourceNode, parent, parentInput, skipOutput, stateId -
Constructor Summary
ConstructorsConstructorDescriptionAccStateMap(Object matchStateId, BiFunction<I, E, ? extends K> inputToKeyMapper, BiPredicate<I, E> testIfSingle, AccStateGon<I, E, K, V> subAcc) -
Method Summary
Methods inherited from class org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccStateBase
begin, beginActual, end, ensureBegun, getParent, getStateId, hasBegun, setContext, setContextOnChildren, setParent, transitionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccState
begin, end, getStateId, hasBegunMethods inherited from interface org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccStateGon
getParent, getRoot, setContext, setParent, transitionMethods inherited from interface org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccStateTypeProduceEntry
getGonType
-
Field Details
-
inputToKeyMapper
-
testIfSingle
-
subAcc
-
currentKey
-
isCurrentKeySingle
protected boolean isCurrentKeySingle -
seenTargetCount
protected int seenTargetCount -
skipOutputStartedHere
protected boolean skipOutputStartedHere -
matchStateId
-
-
Constructor Details
-
AccStateMap
public AccStateMap(Object matchStateId, BiFunction<I, E, ? extends K> inputToKeyMapper, BiPredicate<I, E> testIfSingle, AccStateGon<I, E, K, V> subAcc)
-
-
Method Details
-
transitionActual
public AccStateGon<I,E, transitionActualK, V> (Object inputStateId, I input, E env) throws IOException - Specified by:
transitionActualin classAccStateBase<I,E, K, V> - Throws:
IOException
-
endOpenArray
- Throws:
IOException
-
endActual
- Overrides:
endActualin classAccStateBase<I,E, K, V> - Throws:
IOException
-
toString
-
children
Description copied from interface:AccStateSub-accumulators must be enumerated in the correct order. -
getMatchStateId
- Specified by:
getMatchStateIdin interfaceAccStateTypeProduceEntry<I,E, K, V> - Specified by:
getMatchStateIdin interfaceAccStateTypeTransition<I,E, K, V>
-