Package org.aksw.commons.index.core
Class StorageNodeAlt3<D,C,V1,V2,V3>
java.lang.Object
org.aksw.commons.index.core.StorageNodeBase<D,C,V>
org.aksw.commons.index.core.StorageNodeAltBase<D,C,Alt3<V1,V2,V3>>
org.aksw.commons.index.core.StorageNodeAlt3<D,C,V1,V2,V3>
- Type Parameters:
D-C-V1-V2-
- All Implemented Interfaces:
StorageNode<D,,C, Alt3<V1, V2, V3>> StorageNodeMutable<D,C, Alt3<V1, V2, V3>>
public class StorageNodeAlt3<D,C,V1,V2,V3>
extends StorageNodeAltBase<D,C,Alt3<V1,V2,V3>>
implements StorageNodeMutable<D,C,Alt3<V1,V2,V3>>
- Author:
- Claus Stadler 11/09/2020
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Alt3<? extends StorageNodeMutable<D,C, V1>, ? extends StorageNodeMutable<D, C, V2>, ? extends StorageNodeMutable<D, C, V3>> Fields inherited from class org.aksw.commons.index.core.StorageNodeBase
tupleAccessor, tupleIdxs -
Constructor Summary
ConstructorsConstructorDescriptionStorageNodeAlt3(TupleBridge<D, C> tupleAccessor, StorageNodeMutable<D, C, V1> child1, StorageNodeMutable<D, C, V2> child2, StorageNodeMutable<D, C, V3> child3) -
Method Summary
Modifier and TypeMethodDescriptionbooleanchooseSubStore(Alt3<V1, V2, V3> 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(Alt3<V1, V2, V3> 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
protected Alt3<? extends StorageNodeMutable<D,C, childrenV1>, ? extends StorageNodeMutable<D, C, V2>, ? extends StorageNodeMutable<D, C, V3>>
-
-
Constructor Details
-
StorageNodeAlt3
public StorageNodeAlt3(TupleBridge<D, C> tupleAccessor, StorageNodeMutable<D, C, V1> child1, StorageNodeMutable<D, C, V2> child2, StorageNodeMutable<D, C, V3> child3)
-
-
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(Alt3<V1, V2, V3> 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> - Returns:
-
newStore
Return of a list with fresh stores of all children- Specified by:
newStorein interfaceStorageNodeMutable<D,C, V1>
-
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, V1>
-
add
- Specified by:
addin interfaceStorageNodeMutable<D,C, V1>
-
remove
- Specified by:
removein interfaceStorageNodeMutable<D,C, V1>
-
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
-