Class OIndexRIDContainerSBTree
java.lang.Object
com.orientechnologies.orient.core.storage.ridbag.sbtree.OIndexRIDContainerSBTree
- All Implemented Interfaces:
Iterable<OIdentifiable>,Collection<OIdentifiable>,Set<OIdentifiable>
Persistent Set implementation that uses the SBTree to handle entries in persistent
way.
- Author:
- Artem Orobets (enisher-at-gmail.com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOIndexRIDContainerSBTree(long fileId, OBonsaiBucketPointer rootPointer, OAbstractPaginatedStorage storage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(OIdentifiable oIdentifiable) booleanaddAll(Collection<? extends OIdentifiable> c) voidclear()booleanbooleanbooleancontainsAll(Collection<?> c) voiddelete()static StringgenerateLockName(String indexName) Generates a lock name for the given index name.getName()booleanisEmpty()iterator()booleanbooleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Field Details
-
INDEX_FILE_EXTENSION
- See Also:
-
-
Constructor Details
-
OIndexRIDContainerSBTree
public OIndexRIDContainerSBTree(long fileId, OBonsaiBucketPointer rootPointer, OAbstractPaginatedStorage storage)
-
-
Method Details
-
generateLockName
Generates a lock name for the given index name.- Parameters:
indexName- the index name to generate the lock name for.- Returns:
- the generated lock name.
-
getRootPointer
-
size
public int size()- Specified by:
sizein interfaceCollection<OIdentifiable>- Specified by:
sizein interfaceSet<OIdentifiable>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<OIdentifiable>- Specified by:
isEmptyin interfaceSet<OIdentifiable>
-
contains
- Specified by:
containsin interfaceCollection<OIdentifiable>- Specified by:
containsin interfaceSet<OIdentifiable>
-
contains
-
iterator
- Specified by:
iteratorin interfaceCollection<OIdentifiable>- Specified by:
iteratorin interfaceIterable<OIdentifiable>- Specified by:
iteratorin interfaceSet<OIdentifiable>
-
toArray
- Specified by:
toArrayin interfaceCollection<OIdentifiable>- Specified by:
toArrayin interfaceSet<OIdentifiable>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<OIdentifiable>- Specified by:
toArrayin interfaceSet<OIdentifiable>
-
add
- Specified by:
addin interfaceCollection<OIdentifiable>- Specified by:
addin interfaceSet<OIdentifiable>
-
remove
- Specified by:
removein interfaceCollection<OIdentifiable>- Specified by:
removein interfaceSet<OIdentifiable>
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<OIdentifiable>- Specified by:
containsAllin interfaceSet<OIdentifiable>
-
addAll
- Specified by:
addAllin interfaceCollection<OIdentifiable>- Specified by:
addAllin interfaceSet<OIdentifiable>
-
retainAll
- Specified by:
retainAllin interfaceCollection<OIdentifiable>- Specified by:
retainAllin interfaceSet<OIdentifiable>
-
removeAll
- Specified by:
removeAllin interfaceCollection<OIdentifiable>- Specified by:
removeAllin interfaceSet<OIdentifiable>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<OIdentifiable>- Specified by:
clearin interfaceSet<OIdentifiable>
-
delete
public void delete() -
getName
-