コード例 #1
0
 @Override
 public long indexGetCommittedId(
     KernelStatement state, IndexDescriptor index, SchemaStorage.IndexRuleKind kind)
     throws SchemaRuleNotFoundException {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.indexGetCommittedId(state, index, kind);
 }
コード例 #2
0
 // === TODO Below is unnecessary delegate methods
 @Override
 public String indexGetFailure(Statement state, IndexDescriptor descriptor)
     throws IndexNotFoundKernelException {
   return schemaReadDelegate.indexGetFailure(state, descriptor);
 }
コード例 #3
0
 @Override
 public Iterator<UniquenessConstraint> constraintsGetAll(KernelStatement state) {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.constraintsGetAll(state);
 }
コード例 #4
0
 @Override
 public Iterator<UniquenessConstraint> constraintsGetForLabelAndPropertyKey(
     KernelStatement state, int labelId, int propertyKeyId) {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.constraintsGetForLabelAndPropertyKey(state, labelId, propertyKeyId);
 }
コード例 #5
0
 @Override
 public Iterator<IndexDescriptor> uniqueIndexesGetAll(KernelStatement state) {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.uniqueIndexesGetAll(state);
 }
コード例 #6
0
 @Override
 public InternalIndexState indexGetState(KernelStatement state, IndexDescriptor descriptor)
     throws IndexNotFoundKernelException {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.indexGetState(state, descriptor);
 }
コード例 #7
0
 @Override
 public Long indexGetOwningUniquenessConstraintId(KernelStatement state, IndexDescriptor index)
     throws SchemaRuleNotFoundException {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.indexGetOwningUniquenessConstraintId(state, index);
 }
コード例 #8
0
 @Override
 public Iterator<IndexDescriptor> indexesGetForLabel(KernelStatement state, int labelId) {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.indexesGetForLabel(state, labelId);
 }
コード例 #9
0
 @Override
 public IndexDescriptor indexesGetForLabelAndPropertyKey(
     KernelStatement state, int labelId, int propertyKey) throws SchemaRuleNotFoundException {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.indexesGetForLabelAndPropertyKey(state, labelId, propertyKey);
 }
コード例 #10
0
 @Override
 public Iterator<UniquenessConstraint> constraintsGetAll(KernelStatement state) {
   state.locks().acquireSchemaReadLock();
   return schemaReadDelegate.constraintsGetAll(state);
 }
コード例 #11
0
 @Override
 public Iterator<UniquenessConstraint> constraintsGetForLabelAndPropertyKey(
     KernelStatement state, int labelId, int propertyKeyId) {
   state.locks().acquireSchemaReadLock();
   return schemaReadDelegate.constraintsGetForLabelAndPropertyKey(state, labelId, propertyKeyId);
 }
コード例 #12
0
 @Override
 public Iterator<IndexDescriptor> uniqueIndexesGetAll(KernelStatement state) {
   state.locks().acquireSchemaReadLock();
   return schemaReadDelegate.uniqueIndexesGetAll(state);
 }
コード例 #13
0
 @Override
 public InternalIndexState indexGetState(KernelStatement state, IndexDescriptor descriptor)
     throws IndexNotFoundKernelException {
   state.locks().acquireSchemaReadLock();
   return schemaReadDelegate.indexGetState(state, descriptor);
 }
コード例 #14
0
 @Override
 public Iterator<IndexDescriptor> indexesGetForLabel(KernelStatement state, int labelId) {
   state.locks().acquireSchemaReadLock();
   return schemaReadDelegate.indexesGetForLabel(state, labelId);
 }