use of jetbrains.exodus.entitystore.EntityId in project xodus by JetBrains.
the class EntityTypeFilteredIterator method checkHasNext.
private void checkHasNext() {
if (!hasNextValid) {
hasNextValid = true;
nextId = null;
while (source.hasNext()) {
final EntityId nextId = source.nextId();
if (nextId == null || entityTypeId == nextId.getTypeId()) {
this.nextId = nextId;
hasNext = true;
return;
}
}
hasNext = false;
}
}
use of jetbrains.exodus.entitystore.EntityId in project xodus by JetBrains.
the class OrderedEntityIdCollectionIterator method nextId.
@Override
@Nullable
public EntityId nextId() {
EntityId result = sourceIterator.next();
index++;
return result;
}
use of jetbrains.exodus.entitystore.EntityId in project xodus by JetBrains.
the class ReverseOrderedEntityIdCollectionIterator method nextIdImpl.
@Override
@Nullable
public EntityId nextIdImpl() {
EntityId result = sourceIterator.next();
index++;
return result;
}
use of jetbrains.exodus.entitystore.EntityId in project xodus by JetBrains.
the class ReverseOrderedEntityIdCollectionIterator method nextId.
@Override
@Nullable
public EntityId nextId() {
EntityId result = sourceIterator.next();
index++;
return result;
}
use of jetbrains.exodus.entitystore.EntityId in project meghanada-server by mopemope.
the class CachedASMReflector method addClassIndex.
private void addClassIndex(ClassIndex newIndex, File file) {
final String fqcn = newIndex.getRawDeclaration();
ClassIndex old = this.globalClassIndex.get(fqcn);
if (nonNull(old)) {
EntityId entityId = old.getEntityId();
if (nonNull(entityId)) {
// inheriting entityID
newIndex.setEntityID(entityId);
}
}
try {
if (ModuleHelper.isJrtFsFile(file)) {
newIndex.setFilePath(file.getPath());
} else {
newIndex.setFilePath(file.getCanonicalPath());
}
} catch (IOException e) {
throw new UncheckedIOException(e);
}
this.globalClassIndex.put(fqcn, newIndex);
}
Aggregations