Class AccStateArrayInit<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.AccStateArrayInit<I,E,K,V>
- All Implemented Interfaces:
AccState<I,,E> AccStateGon<I,,E, K, V> AccStateTypeNonObject<I,E, K, V>
public class AccStateArrayInit<I,E,K,V>
extends AccStateBase<I,E,K,V>
implements AccStateTypeNonObject<I,E,K,V>
AccState for yielding a sequence of items without enclosing them in an array;
because the array would be a single object-notation entity on its own.
This is needed for streaming the individual items of a multi-valued top-level field.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectprotected longprotected AccStateTypeProduceNode<I,E, K, V> 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
ConstructorsConstructorDescriptionAccStateArrayInit(Object matchStateId, AccStateTypeProduceNode<I, E, K, V> targetAcc) -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the source node which subsequent triples must match in addition to the fieldId.children()Sub-accumulators must be enumerated in the correct order.voidThe GON type which this accumulator produces.toString()AccStateGon<I,E, K, V> transitionActual(Object inputStateId, I input, E env) Accepts a triple if source and field id match that of the current stateMethods inherited from class org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccStateBase
begin, 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, transition
-
Field Details
-
matchStateId
-
targetAcc
-
seenTargetCount
protected long seenTargetCount
-
-
Constructor Details
-
AccStateArrayInit
-
-
Method Details
-
getGonType
Description copied from interface:AccStateGonThe GON type which this accumulator produces.- Specified by:
getGonTypein interfaceAccStateGon<I,E, K, V>
-
getMatchStateId
-
beginActual
Sets the source node which subsequent triples must match in addition to the fieldId. This method should be called by the owner of the edge such as AccJsonObject.- Overrides:
beginActualin classAccStateBase<I,E, K, V> - Throws:
IOException
-
transitionActual
public AccStateGon<I,E, transitionActualK, V> (Object inputStateId, I input, E env) throws IOException Accepts a triple if source and field id match that of the current state- Specified by:
transitionActualin classAccStateBase<I,E, K, V> - 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.
-