Class NullIndexer
java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
tools.refinery.interpreter.rete.index.StandardIndexer
tools.refinery.interpreter.rete.index.SpecializedProjectionIndexer
tools.refinery.interpreter.rete.index.NullIndexer
- All Implemented Interfaces:
- Iterable<Tuple>,- Indexer,- IterableIndexer,- ProjectionIndexer,- NetworkStructureChangeSensitiveNode,- Node
- Direct Known Subclasses:
- MemoryNullIndexer,- TimelyMemoryNullIndexer
Defines an abstract trivial indexer that projects the contents of some stateful node to the empty tuple, and can
 therefore save space. Can only exist in connection with a stateful store, and must be operated by another node (the
 active node). Do not attach parents directly!
- 
Nested Class SummaryNested classes/interfaces inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexerSpecializedProjectionIndexer.ListenerSubscription
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final Collection<Tuple> protected static final Tupleprotected static final Collection<Tuple> Fields inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexeractiveNode, subscriptionsFields inherited from class tools.refinery.interpreter.rete.index.StandardIndexermask, parentFields inherited from class tools.refinery.interpreter.rete.network.BaseNodenodeId, reteContainer, tag, traceInfos
- 
Constructor SummaryConstructorsConstructorDescriptionNullIndexer(ReteContainer reteContainer, int tupleWidth, Supplier parent, Node activeNode, List<SpecializedProjectionIndexer.ListenerSubscription> sharedSubscriptionList) 
- 
Method SummaryModifier and TypeMethodDescriptionintA view consisting of exactly those signatures whose tuple group is not emptyprotected abstract Collection<Tuple> protected booleanisEmpty()protected booleaniterator()voidpropagateToListener(IndexerListener listener, Direction direction, Tuple updateElement, Timestamp timestamp) Methods inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexerattachListener, detachListener, getActiveNode, getSubscriptions, networkStructureChanged, propagateMethods inherited from class tools.refinery.interpreter.rete.index.StandardIndexerassignTraceInfo, getContainer, getListeners, getMask, getParent, toStringCoreMethods inherited from class tools.refinery.interpreter.rete.network.BaseNodeacceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.rete.index.IndexergetListeners, getMask, getParent, getTimelineMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface tools.refinery.interpreter.rete.network.NodeacceptPropagatedTraceInfo, assignTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTag
- 
Field Details- 
nullSignature
- 
nullSingleton
- 
emptySet
 
- 
- 
Constructor Details- 
NullIndexerpublic NullIndexer(ReteContainer reteContainer, int tupleWidth, Supplier parent, Node activeNode, List<SpecializedProjectionIndexer.ListenerSubscription> sharedSubscriptionList) 
 
- 
- 
Method Details- 
getTuples
- 
get- Returns:
- all stored tuples that conform to the specified signature, null if there are none such. CONTRACT: do not modify!
 
- 
getSignaturesDescription copied from interface:IterableIndexerA view consisting of exactly those signatures whose tuple group is not empty
- 
isEmptyprotected boolean isEmpty()
- 
isSingleElementprotected boolean isSingleElement()
- 
iterator
- 
getBucketCountpublic int getBucketCount()- Returns:
- the number of signatures whose tuple group is not empty
 
- 
propagateToListenerpublic void propagateToListener(IndexerListener listener, Direction direction, Tuple updateElement, Timestamp timestamp) - Specified by:
- propagateToListenerin class- SpecializedProjectionIndexer
 
 
-