Class AccStateLiteral<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.AccStateLiteral<I,E,K,V>
- All Implemented Interfaces:
AccState<I,,E> AccStateGon<I,,E, K, V> AccStateTypeProduceNode<I,E, K, V>
public class AccStateLiteral<I,E,K,V>
extends AccStateBase<I,E,K,V>
implements AccStateTypeProduceNode<I,E,K,V>
AccStateLiteral:
Extracts a value from the input and forwards it to the writer.
ValueParent must be 'entry' or 'array.
Always accepts the current state. (Matches the same stateId as the parent)
Never transitions into a new state.
-
Field Summary
FieldsFields inherited from class org.aksw.jenax.graphql.sparql.v2.acc.state.api.AccStateBase
context, currentInput, currentSourceNode, hasBegun, oldSourceNode, parent, parentInput, skipOutput, stateId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAccStateLiteral(BiFunction<I, E, ? extends V> inputToValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchildren()Sub-accumulators must be enumerated in the correct order.voidThe GON type which this accumulator produces.static <I,E, K, V> AccStateLiteral<I, E, K, V> of(BiFunction<I, E, ? extends V> inputToValue) toString()AccStateGon<I,E, K, V> transitionActual(Object inputStateId, I input, E env) Methods 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
-
inputToValue
-
currentValue
-
-
Constructor Details
-
AccStateLiteral
-
-
Method Details
-
getGonType
Description copied from interface:AccStateGonThe GON type which this accumulator produces.- Specified by:
getGonTypein interfaceAccStateGon<I,E, K, V>
-
of
-
beginActual
- Overrides:
beginActualin classAccStateBase<I,E, K, V> - Throws:
IOException
-
transitionActual
- Specified by:
transitionActualin classAccStateBase<I,E, K, V>
-
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.
-