Package org.aksw.commons.index.core
Class StorageNodeAltN<D,C>
java.lang.Object
org.aksw.commons.index.core.StorageNodeBase<D,C,V>
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 org.aksw.commons.index.core.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 org.aksw.commons.index.core.StorageNodeAltBase
getKeyComponentRaw, isAltNode, streamerForKeyAndSubStoreAlts, streamerForKeys, streamerForKeysAsComponent, streamerForKeysAsTuples, streamerForValuesMethods inherited from class org.aksw.commons.index.core.StorageNodeBase
getKeyTupleIdxs, getTupleAccessorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aksw.commons.index.core.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 org.aksw.commons.index.core.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[]> - Returns:
-
newStore
Return of a list with fresh stores of all children- Specified by:
newStorein interfaceStorageNodeMutable<D,C, Object[]>
-
isEmpty
Checks 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)- Specified by:
isEmptyin interfaceStorageNodeMutable<D,C, Object[]>
-
add
- Specified by:
addin interfaceStorageNodeMutable<D,C, Object[]>
-
remove
- Specified by:
removein interfaceStorageNodeMutable<D,C, Object[]>
-
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[]>
-