Skip to content

Commit

Permalink
Fix to support refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmre authored and JMHReif committed Jun 18, 2021
1 parent 4be608b commit 2f82367
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/main/java/apoc/index/SchemaIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
import org.neo4j.internal.helpers.collection.Iterators;
import org.neo4j.internal.kernel.api.*;
import org.neo4j.internal.schema.IndexDescriptor;
import org.neo4j.internal.schema.IndexOrder;
import org.neo4j.internal.schema.LabelSchemaDescriptor;
import org.neo4j.internal.schema.SchemaDescriptor;
import org.neo4j.internal.schema.SchemaDescriptors;
import org.neo4j.io.pagecache.context.CursorContext;
import org.neo4j.io.pagecache.tracing.cursor.PageCursorTracer;
import org.neo4j.kernel.api.KernelTransaction;
import org.neo4j.kernel.impl.api.KernelStatement;
import org.neo4j.kernel.impl.coreapi.InternalTransaction;
Expand Down Expand Up @@ -93,7 +90,7 @@ private Object scanIndexDefinitionForKeys(IndexDefinition indexDefinition, @Name
.mapToInt(name -> tokenRead.propertyKey(name))
.toArray();
String label = Iterables.single(indexDefinition.getLabels()).name();
LabelSchemaDescriptor schema = SchemaDescriptor.forLabel(tokenRead.nodeLabel(label), propertyKeyIds);
var schema = SchemaDescriptors.forLabel(tokenRead.nodeLabel(label), propertyKeyIds);
IndexDescriptor indexDescriptor = Iterators.single(schemaRead.index(schema));
scanIndex(queue, indexDefinition, key, read, cursors, indexDescriptor, ktx);
}
Expand Down

0 comments on commit 2f82367

Please sign in to comment.