use of jetbrains.exodus.entitystore.PersistentEntityId in project xodus by JetBrains.
the class EntityIdArrayIteratorMultiTypeIdUnpacked method nextId.
@Override
@Nullable
public EntityId nextId() {
// for better performance of cached iterables, this method copies the nextIdImpl()
// without try-catch block since it actually throws nothing
final int index = this.index++;
final int typeId = typeIds[index];
return typeId == NULL_TYPE_ID ? null : new PersistentEntityId(typeId, localIds[index]);
}
use of jetbrains.exodus.entitystore.PersistentEntityId in project xodus by JetBrains.
the class EntityIdArrayIteratorMultiTypeIdUnpacked method nextIdImpl.
@Override
@Nullable
public EntityId nextIdImpl() {
final int index = this.index++;
final int typeId = typeIds[index];
return typeId == NULL_TYPE_ID ? null : new PersistentEntityId(typeId, localIds[index]);
}
use of jetbrains.exodus.entitystore.PersistentEntityId in project xodus by JetBrains.
the class EntityIdArrayIteratorMultiTypeIdPacked method nextId.
@Override
@Nullable
public EntityId nextId() {
// for better performance of cached iterables, this method copies the nextIdImpl()
// without try-catch block since it actually throws nothing
final int index = this.index++;
if (index >= currentBound) {
typeId = typeIds[typeIndex];
++typeIndex;
currentBound = typeIds[typeIndex];
++typeIndex;
}
return typeId == NULL_TYPE_ID ? null : new PersistentEntityId(typeId, localIds[index]);
}
use of jetbrains.exodus.entitystore.PersistentEntityId in project xodus by JetBrains.
the class ReverseEntityIdArrayIteratorMultiTypeIdPacked method nextIdImpl.
@Override
@Nullable
public EntityId nextIdImpl() {
final int index = --this.index;
if (index < currentBound) {
--typeIndex;
typeId = typeIds[typeIndex];
if (typeIndex > 0) {
--typeIndex;
currentBound = typeIds[typeIndex];
} else {
currentBound = 0;
}
}
return typeId == NULL_TYPE_ID ? null : new PersistentEntityId(typeId, localIds[index]);
}
use of jetbrains.exodus.entitystore.PersistentEntityId in project xodus by JetBrains.
the class ReverseEntityIdArrayIteratorMultiTypeIdPacked method nextId.
@Override
@Nullable
public EntityId nextId() {
// for better performance of cached iterables, this method copies the nextIdImpl()
// without try-catch block since it actually throws nothing
final int index = --this.index;
if (index < currentBound) {
--typeIndex;
typeId = typeIds[typeIndex];
if (typeIndex > 0) {
--typeIndex;
currentBound = typeIds[typeIndex];
} else {
currentBound = 0;
}
}
return typeId == NULL_TYPE_ID ? null : new PersistentEntityId(typeId, localIds[index]);
}
Aggregations