Interface AccStateGon<I,E,K,V>
- Type Parameters:
I- Input type (e.g. Binding)E- Environment type (such as FunctionEnv, ExecutionContext)K- Type of fields in object outputV- Type of primitives in object output
- All Superinterfaces:
AccState<I,E>
- All Known Subinterfaces:
AccStateTypeNonObject<I,,E, K, V> AccStateTypeProduceEntry<I,,E, K, V> AccStateTypeProduceNode<I,,E, K, V> AccStateTypeProduceObject<I,,E, K, V> AccStateTypeTransition<I,E, K, V>
- All Known Implementing Classes:
AccStateArrayInit,AccStateBase,AccStateCondition,AccStateFragmentBody,AccStateFragmentHead,AccStateInit,AccStateLiteral,AccStateLiteralProperty,AccStateMap,AccStateMemberSet,AccStateObject,AccStateProperty,AccStatePropertyBase,AccStateTransitionBase,AccStateTypeProduceEntryBase
AccState for producing generalized object notation (gon) structures.
-
Method Summary
Modifier and TypeMethodDescriptionchildren()Sub-accumulators must be enumerated in the correct order.The GON type which this accumulator produces.AccStateGon<I,E, K, V> The immediate parent of this AccState.default AccStateGon<I,E, K, V> getRoot()The ancestor to which to attach produced values.voidsetContext(AccContext<K, V> context) The state to which to backtrack if an input cannot be processed by the current statevoidAccStateGon<I,E, K, V> transition(Object inputStateId, I input, E env) FIXME What exactly is id? Is it the value by which this acc connects to the parent? The context and skipOutput flag are stored on the accumulator until end is called.Methods inherited from interface org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccState
begin, end, getStateId, hasBegun
-
Method Details
-
getParent
AccStateGon<I,E, getParent()K, V> The immediate parent of this AccState. -
getGonType
GonType getGonType()The GON type which this accumulator produces. -
getRoot
The ancestor to which to attach produced values. -
setParent
-
setContext
The state to which to backtrack if an input cannot be processed by the current state -
transition
FIXME What exactly is id? Is it the value by which this acc connects to the parent? The context and skipOutput flag are stored on the accumulator until end is called.- Specified by:
transitionin interfaceAccState<I,E> - Parameters:
inputStateId- The stateId, typically extracted from the input by the driver. (Rationale: Only the driver needs to know how to extract the state from an input).- Returns:
- Throws:
IOException
-
children
Description copied from interface:AccStateSub-accumulators must be enumerated in the correct order.
-