Example #1
0
 @Override
 public Long indexGetOwningUniquenessConstraintId(IndexDescriptor index)
     throws SchemaRuleNotFoundException {
   return schemaStorage
       .indexRule(index.getLabelId(), index.getPropertyKeyId())
       .getOwningConstraint();
 }
Example #2
0
 private long indexId(IndexDescriptor descriptor) throws IndexNotFoundKernelException {
   try {
     return schemaStorage
         .indexRule(descriptor.getLabelId(), descriptor.getPropertyKeyId())
         .getId();
   } catch (SchemaRuleNotFoundException e) {
     throw new IndexNotFoundKernelException(e.getMessage(), e);
   }
 }
Example #3
0
 @Override
 public long indexGetCommittedId(IndexDescriptor index, SchemaStorage.IndexRuleKind kind)
     throws SchemaRuleNotFoundException {
   return schemaStorage.indexRule(index.getLabelId(), index.getPropertyKeyId()).getId();
 }
Example #4
0
 @Override
 public IndexDescriptor indexesGetForLabelAndPropertyKey(int labelId, int propertyKey)
     throws SchemaRuleNotFoundException {
   return descriptor(schemaStorage.indexRule(labelId, propertyKey));
 }