Class StorageNodeAltN<D,C>
java.lang.Object
org.aksw.commons.index.core.StorageNodeBase<D,C,Object[]>
org.aksw.commons.index.core.StorageNodeAltBase<D,C,Object[]>
org.aksw.commons.index.core.StorageNodeAltN<D,C>
- Type Parameters:
D-C-
- All Implemented Interfaces:
StorageNode<D,C, Object[]>, StorageNodeMutable<D, C, Object[]>
public class StorageNodeAltN<D,C>
extends StorageNodeAltBase<D,C,Object[]>
implements StorageNodeMutable<D,C,Object[]>
- Author:
- Claus Stadler 11/09/2020
-
Field Summary
FieldsFields inherited from class StorageNodeBase
tupleAccessor, tupleIdxs -
Constructor Summary
ConstructorsConstructorDescriptionStorageNodeAltN(TupleBridge<D, C> tupleAccessor, List<? extends StorageNodeMutable<D, C, ?>> children) -
Method Summary
Modifier and TypeMethodDescriptionbooleanchooseSubStore(Object[] store, int subStoreIdx) voidClear a store's content.List<? extends StorageNode<D, C, ?>> Each node in the storage expression may have 0 or more childrenbooleanChecks whether all child store entries in the list of alternatives are empty (Not to be confused with checking the list of alternatives itself for emptiness)Object[]newStore()Return of a list with fresh stores of all childrenboolean<T> Stream<?> streamEntries(Object[] childStores, T tupleLike, TupleAccessor<? super T, ? extends C> tupleAccessor) Stream all entries under equality constraints obtained from a tuple-like patterntoString()Methods inherited from class StorageNodeAltBase
getKeyComponentRaw, isAltNode, streamerForKeyAndSubStoreAlts, streamerForKeys, streamerForKeysAsComponent, streamerForKeysAsTuples, streamerForValuesMethods inherited from class StorageNodeBase
getKeyTupleIdxs, getTupleAccessorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface StorageNode
chooseSubStoreRaw, getKeyComponentRaw, getKeyTupleIdxs, getPublicDelegate, getStoreAsList, getStoreAsMap, getStoreAsSet, getTupleAccessor, holdsDomainTuples, isAltNode, isDelegate, isListNode, isMapNode, isSetNode, streamEntries, streamEntriesRaw, streamEntriesRaw, streamerForKeyAndSubStoreAlts, streamerForKeys, streamerForKeysAsComponent, streamerForKeysAsTuples, streamerForValuesMethods inherited from interface StorageNodeMutable
addRaw, clearRaw, isEmptyRaw, removeRaw
-
Field Details
-
children
-
-
Constructor Details
-
StorageNodeAltN
public StorageNodeAltN(TupleBridge<D, C> tupleAccessor, List<? extends StorageNodeMutable<D, C, ?>> children)
-
-
Method Details
-
getChildren
Description copied from interface:StorageNodeEach node in the storage expression may have 0 or more children- Specified by:
getChildrenin interfaceStorageNode<D,C, Object[]> - Returns:
-
streamEntries
public <T> Stream<?> streamEntries(Object[] childStores, T tupleLike, TupleAccessor<? super T, ? extends C> tupleAccessor) Description copied from interface:StorageNodeStream all entries under equality constraints obtained from a tuple-like pattern- Specified by:
streamEntriesin interfaceStorageNode<D,C, Object[]> - Type Parameters:
T-- Parameters:
childStores-tupleLike-tupleAccessor-- Returns:
-
newStore
-
isEmpty
-
add
-
remove
-
clear
Description copied from interface:StorageNodeMutableClear a store's content. Cascades to any sub-stores.- Specified by:
clearin interfaceStorageNodeMutable<D,C, Object[]>
-
toString
-
chooseSubStore
- Specified by:
chooseSubStorein interfaceStorageNode<D,C, Object[]>
-