use of org.neo4j.kernel.api.schema.NodeMultiPropertyDescriptor in project neo4j by neo4j.
the class IndexingAcceptanceTest method indexDescriptor.
private NewIndexDescriptor indexDescriptor(ReadOperations readOperations, IndexDefinition index) throws SchemaRuleNotFoundException {
int labelId = readOperations.labelGetForName(index.getLabel().name());
int[] propertyKeyIds = getPropertyKeyIds(readOperations, index.getPropertyKeys());
NodePropertyDescriptor descriptor = new NodeMultiPropertyDescriptor(labelId, propertyKeyIds);
return readOperations.indexGetForLabelAndPropertyKey(descriptor);
}
use of org.neo4j.kernel.api.schema.NodeMultiPropertyDescriptor in project neo4j by neo4j.
the class SchemaImpl method getIndexDescriptor.
private static NewIndexDescriptor getIndexDescriptor(ReadOperations readOperations, IndexDefinition index) throws SchemaRuleNotFoundException {
int labelId = readOperations.labelGetForName(index.getLabel().name());
int[] propertyKeyIds = PropertyNameUtils.getPropertyKeyIds(readOperations, index.getPropertyKeys());
assertValidLabel(index.getLabel(), labelId);
assertValidProperties(index.getPropertyKeys(), propertyKeyIds);
return readOperations.indexGetForLabelAndPropertyKey(new NodeMultiPropertyDescriptor(labelId, propertyKeyIds));
}
Aggregations