Exemplo n.º 1
0
 @Override
 public Long indexGetOwningUniquenessConstraintId(StatementState state, IndexDescriptor index)
     throws SchemaRuleNotFoundException {
   return schemaStorage
       .indexRule(index.getLabelId(), index.getPropertyKeyId())
       .getOwningConstraint();
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 3
0
 @Override
 public long indexGetCommittedId(StatementState state, IndexDescriptor index)
     throws SchemaRuleNotFoundException {
   return schemaStorage.indexRule(index.getLabelId(), index.getPropertyKeyId()).getId();
 }
Exemplo n.º 4
0
 @Override
 public IndexDescriptor indexesGetForLabelAndPropertyKey(
     StatementState state, final long labelId, final long propertyKey)
     throws SchemaRuleNotFoundException {
   return descriptor(schemaStorage.indexRule(labelId, propertyKey));
 }