Class StorageNodeAlt2<D,C,V1,V2>
java.lang.Object
org.aksw.commons.index.core.StorageNodeBase<D, C, Alt2<V1,V2>>
org.aksw.commons.index.core.StorageNodeAltBase<D, C, Alt2<V1,V2>>
org.aksw.commons.index.core.StorageNodeAlt2<D,C,V1,V2>
- Type Parameters:
D-C-V1-V2-
- All Implemented Interfaces:
StorageNode<D, C, Alt2<V1,V2>>, StorageNodeMutable<D, C, Alt2<V1, V2>>
public class StorageNodeAlt2<D,C,V1,V2>
extends StorageNodeAltBase<D, C, Alt2<V1,V2>>
implements StorageNodeMutable<D, C, Alt2<V1,V2>>
- Author:
- Claus Stadler 11/09/2020
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Alt2<? extends StorageNodeMutable<D, C, V1>, ? extends StorageNodeMutable<D, C, V2>> Fields inherited from class StorageNodeBase
tupleAccessor, tupleIdxs -
Constructor Summary
ConstructorsConstructorDescriptionStorageNodeAlt2(TupleBridge<D, C> tupleAccessor, StorageNodeMutable<D, C, V1> child1, StorageNodeMutable<D, C, V2> child2) -
Method Summary
Modifier and TypeMethodDescriptionbooleanchooseSubStore(Alt2<V1, V2> 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)newStore()Return of a list with fresh stores of all childrenboolean<T> Stream<?> streamEntries(Alt2<V1, V2> 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
-
StorageNodeAlt2
public StorageNodeAlt2(TupleBridge<D, C> tupleAccessor, StorageNodeMutable<D, C, V1> child1, StorageNodeMutable<D, C, V2> child2)
-
-
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, V1> - Returns:
-
streamEntries
public <T> Stream<?> streamEntries(Alt2<V1, V2> 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, V1> - Type Parameters:
T-- Parameters:
childStores-tupleLike-tupleAccessor-- Returns:
-
newStore
-
isEmpty
-
add
-
remove
-
chooseSubStore
- Specified by:
chooseSubStorein interfaceStorageNode<D,C, V1>
-
clear
Description copied from interface:StorageNodeMutableClear a store's content. Cascades to any sub-stores.- Specified by:
clearin interfaceStorageNodeMutable<D,C, V1>
-
toString
-