public abstract class EntityIterableBase
extends java.lang.Object
implements jetbrains.exodus.entitystore.EntityIterable
| Modifier and Type | Field and Description |
|---|---|
static EntityIterableBase |
EMPTY |
static int |
NULL_TYPE_ID |
protected @NotNull TxnGetterStrategy |
txnGetter |
| Modifier | Constructor and Description |
|---|---|
protected |
EntityIterableBase(@Nullable PersistentStoreTransaction txn) |
| Modifier and Type | Method and Description |
|---|---|
EntityIterableBase |
asProbablyCached() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
asSortResult() |
boolean |
canBeCached()
Should this type of iterables be cached.
|
boolean |
canBeReordered() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
concat(@NotNull jetbrains.exodus.entitystore.EntityIterable right) |
boolean |
contains(@NotNull jetbrains.exodus.entitystore.Entity entity) |
protected boolean |
containsImpl(@NotNull jetbrains.exodus.entitystore.EntityId entityId) |
long |
count() |
protected long |
countImpl(@NotNull PersistentStoreTransaction txn) |
protected CachedInstanceIterable |
createCachedInstance(@NotNull PersistentStoreTransaction txn) |
int |
depth() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
distinct() |
void |
explain(EntityIterableType type) |
jetbrains.exodus.entitystore.EntityIterable |
findLinks(@NotNull jetbrains.exodus.entitystore.EntityIterable entities,
@NotNull java.lang.String linkName) |
jetbrains.exodus.entitystore.EntityIterable |
findLinks(@NotNull java.lang.Iterable<jetbrains.exodus.entitystore.Entity> entities,
@NotNull java.lang.String linkName) |
@NotNull jetbrains.exodus.entitystore.Entity |
getEntity(@NotNull jetbrains.exodus.entitystore.EntityId id) |
int |
getEntityTypeId() |
@Nullable jetbrains.exodus.entitystore.Entity |
getFirst() |
@NotNull EntityIterableHandle |
getHandle() |
protected abstract @NotNull EntityIterableHandle |
getHandleImpl() |
static java.lang.String |
getHumanReadablePresentation(@NotNull EntityIterableHandle handle) |
static java.lang.String |
getHumanReadablePresentation(@NotNull java.lang.String handle) |
jetbrains.exodus.entitystore.EntityIterator |
getIteratorImpl() |
abstract @NotNull jetbrains.exodus.entitystore.EntityIterator |
getIteratorImpl(@NotNull PersistentStoreTransaction txn) |
@Nullable jetbrains.exodus.entitystore.Entity |
getLast() |
@NotNull CachedInstanceIterable |
getOrCreateCachedInstance(@NotNull PersistentStoreTransaction txn) |
@NotNull CachedInstanceIterable |
getOrCreateCachedInstance(@NotNull PersistentStoreTransaction txn,
boolean forceCount) |
java.lang.Object |
getOrigin() |
@NotNull jetbrains.exodus.entitystore.EntityIterator |
getReverseIteratorImpl(@NotNull PersistentStoreTransaction txn) |
long |
getRoughCount() |
long |
getRoughSize() |
@NotNull EntityIterableBase |
getSource() |
@NotNull PersistentEntityStoreImpl |
getStore() |
@NotNull PersistentStoreTransaction |
getTransaction() |
int |
indexOf(@NotNull jetbrains.exodus.entitystore.Entity entity) |
protected int |
indexOfImpl(@NotNull jetbrains.exodus.entitystore.EntityId entityId) |
static EntityIterableBase |
instantiate(PersistentStoreTransaction txn,
PersistentEntityStoreImpl store,
java.lang.String presentation) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
intersect(@NotNull jetbrains.exodus.entitystore.EntityIterable right) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
intersectSavingOrder(@NotNull jetbrains.exodus.entitystore.EntityIterable right) |
boolean |
isCached() |
boolean |
isCachedInstance() |
boolean |
isEmpty() |
protected boolean |
isEmptyFast(@NotNull PersistentStoreTransaction txn) |
boolean |
isEmptyImpl(@NotNull PersistentStoreTransaction txn) |
boolean |
isSortedById() |
boolean |
isSortResult() |
boolean |
isThreadSafe() |
@NotNull jetbrains.exodus.entitystore.EntityIterator |
iterator() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
minus(@NotNull jetbrains.exodus.entitystore.EntityIterable right) |
boolean |
nonCachedHasFastCountAndIsEmpty() |
protected static void |
registerType(EntityIterableType type,
EntityIterableInstantiator instantiator) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
reverse() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
selectDistinct(@NotNull java.lang.String linkName) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
selectMany(@NotNull java.lang.String linkName) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
selectManyDistinct(@NotNull java.lang.String linkName) |
boolean |
setOrigin(java.lang.Object origin) |
long |
size() |
@NotNull EntityIterableBase |
skip(int number) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
take(int number) |
@NotNull jetbrains.exodus.entitystore.iterate.EntityIdSet |
toSet(@NotNull PersistentStoreTransaction txn) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
union(@NotNull jetbrains.exodus.entitystore.EntityIterable right) |
public static final EntityIterableBase EMPTY
public static final int NULL_TYPE_ID
@NotNull protected @NotNull TxnGetterStrategy txnGetter
protected EntityIterableBase(@Nullable
@Nullable PersistentStoreTransaction txn)
@NotNull public @NotNull PersistentEntityStoreImpl getStore()
public int getEntityTypeId()
@NotNull public @NotNull jetbrains.exodus.entitystore.EntityIterator iterator()
iterator in interface java.lang.Iterable<jetbrains.exodus.entitystore.Entity>iterator in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public abstract @NotNull jetbrains.exodus.entitystore.EntityIterator getIteratorImpl(@NotNull
@NotNull PersistentStoreTransaction txn)
public jetbrains.exodus.entitystore.EntityIterator getIteratorImpl()
@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterator getReverseIteratorImpl(@NotNull
@NotNull PersistentStoreTransaction txn)
@NotNull public @NotNull PersistentStoreTransaction getTransaction()
getTransaction in interface jetbrains.exodus.entitystore.EntityIterablepublic boolean isEmpty()
isEmpty in interface jetbrains.exodus.entitystore.EntityIterablepublic boolean nonCachedHasFastCountAndIsEmpty()
public long size()
size in interface jetbrains.exodus.entitystore.EntityIterablepublic long count()
count in interface jetbrains.exodus.entitystore.EntityIterablepublic long getRoughCount()
getRoughCount in interface jetbrains.exodus.entitystore.EntityIterablepublic long getRoughSize()
getRoughSize in interface jetbrains.exodus.entitystore.EntityIterablepublic int indexOf(@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
indexOf in interface jetbrains.exodus.entitystore.EntityIterablepublic boolean contains(@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
contains in interface jetbrains.exodus.entitystore.EntityIterable@NotNull public final @NotNull EntityIterableHandle getHandle()
@NotNull protected abstract @NotNull EntityIterableHandle getHandleImpl()
public java.lang.Object getOrigin()
public boolean setOrigin(java.lang.Object origin)
@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable intersect(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable right)
intersect in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable intersectSavingOrder(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable right)
intersectSavingOrder in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable union(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable right)
union in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable minus(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable right)
minus in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable concat(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable right)
concat in interface jetbrains.exodus.entitystore.EntityIterable@NotNull public final @NotNull EntityIterableBase skip(int number)
skip in interface jetbrains.exodus.entitystore.EntityIterable@NotNull public @NotNull jetbrains.exodus.entitystore.EntityIterable take(int number)
take in interface jetbrains.exodus.entitystore.EntityIterable@NotNull public @NotNull jetbrains.exodus.entitystore.EntityIterable distinct()
distinct in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable selectDistinct(@NotNull
@NotNull java.lang.String linkName)
selectDistinct in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable selectManyDistinct(@NotNull
@NotNull java.lang.String linkName)
selectManyDistinct in interface jetbrains.exodus.entitystore.EntityIterable@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable selectMany(@NotNull
@NotNull java.lang.String linkName)
@Nullable public @Nullable jetbrains.exodus.entitystore.Entity getFirst()
getFirst in interface jetbrains.exodus.entitystore.EntityIterable@Nullable public @Nullable jetbrains.exodus.entitystore.Entity getLast()
getLast in interface jetbrains.exodus.entitystore.EntityIterable@NotNull public @NotNull jetbrains.exodus.entitystore.EntityIterable reverse()
reverse in interface jetbrains.exodus.entitystore.EntityIterablepublic boolean isSortResult()
isSortResult in interface jetbrains.exodus.entitystore.EntityIterable@NotNull public @NotNull jetbrains.exodus.entitystore.EntityIterable asSortResult()
asSortResult in interface jetbrains.exodus.entitystore.EntityIterable@NotNull public @NotNull EntityIterableBase getSource()
public boolean isSortedById()
public boolean canBeReordered()
public int depth()
public boolean canBeCached()
public boolean isThreadSafe()
public boolean isCachedInstance()
public boolean isCached()
@NotNull
public final @NotNull jetbrains.exodus.entitystore.Entity getEntity(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId id)
public jetbrains.exodus.entitystore.EntityIterable findLinks(@NotNull
@NotNull java.lang.Iterable<jetbrains.exodus.entitystore.Entity> entities,
@NotNull
@NotNull java.lang.String linkName)
public jetbrains.exodus.entitystore.EntityIterable findLinks(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable entities,
@NotNull
@NotNull java.lang.String linkName)
@NotNull public final @NotNull CachedInstanceIterable getOrCreateCachedInstance(@NotNull @NotNull PersistentStoreTransaction txn)
@NotNull public final @NotNull CachedInstanceIterable getOrCreateCachedInstance(@NotNull @NotNull PersistentStoreTransaction txn, boolean forceCount)
@NotNull
public @NotNull jetbrains.exodus.entitystore.iterate.EntityIdSet toSet(@NotNull
@NotNull PersistentStoreTransaction txn)
protected long countImpl(@NotNull
@NotNull PersistentStoreTransaction txn)
public boolean isEmptyImpl(@NotNull
@NotNull PersistentStoreTransaction txn)
public EntityIterableBase asProbablyCached()
protected boolean isEmptyFast(@NotNull
@NotNull PersistentStoreTransaction txn)
protected int indexOfImpl(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId entityId)
protected boolean containsImpl(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId entityId)
protected CachedInstanceIterable createCachedInstance(@NotNull @NotNull PersistentStoreTransaction txn)
public static java.lang.String getHumanReadablePresentation(@NotNull
@NotNull EntityIterableHandle handle)
public static java.lang.String getHumanReadablePresentation(@NotNull
@NotNull java.lang.String handle)
protected static void registerType(EntityIterableType type, EntityIterableInstantiator instantiator)
public static EntityIterableBase instantiate(PersistentStoreTransaction txn, PersistentEntityStoreImpl store, java.lang.String presentation)
public void explain(EntityIterableType type)