} ); when( storageReader.indexesGetRelatedToProperty( anyInt() ) ) .thenAnswer( x ->
void onPropertyRemove( NodeCursor node, PropertyCursor propertyCursor, int propertyKeyId, Value value ) { assert noSchemaChangedInTx(); Iterator<? extends IndexDescriptor> indexes = storageReader.indexesGetRelatedToProperty( propertyKeyId ); NodeSchemaMatcher.onMatchingSchema( indexes, node, propertyCursor, propertyKeyId, ( index, propertyKeyIds ) -> { Value[] values = getValueTuple( node, propertyCursor, propertyKeyId, value, index.schema().getPropertyIds() ); read.txState().indexDoUpdateEntry( index.schema(), node.nodeReference(), ValueTuple.of( values ), null ); } ); }
void onPropertyAdd( NodeCursor node, PropertyCursor propertyCursor, int propertyKeyId, Value value ) { assert noSchemaChangedInTx(); Iterator<? extends IndexDescriptor> indexes = storageReader.indexesGetRelatedToProperty( propertyKeyId ); NodeSchemaMatcher.onMatchingSchema( indexes, node, propertyCursor, propertyKeyId, ( index, propertyKeyIds ) -> { Value[] values = getValueTuple( node, propertyCursor, propertyKeyId, value, index.schema().getPropertyIds() ); indexProviders.validateBeforeCommit( index.schema(), values ); read.txState().indexDoUpdateEntry( index.schema(), node.nodeReference(), null, ValueTuple.of( values ) ); } ); }
Iterator<? extends IndexDescriptor> indexes = storageReader.indexesGetRelatedToProperty( propertyKeyId ); NodeSchemaMatcher.onMatchingSchema( indexes, node, propertyCursor, propertyKeyId, ( index, propertyKeyIds ) ->
void onPropertyRemove( NodeCursor node, PropertyCursor propertyCursor, int propertyKeyId, Value value ) { assert noSchemaChangedInTx(); Iterator<? extends IndexDescriptor> indexes = storageReader.indexesGetRelatedToProperty( propertyKeyId ); NodeSchemaMatcher.onMatchingSchema( indexes, node, propertyCursor, propertyKeyId, ( index, propertyKeyIds ) -> { Value[] values = getValueTuple( node, propertyCursor, propertyKeyId, value, index.schema().getPropertyIds() ); read.txState().indexDoUpdateEntry( index.schema(), node.nodeReference(), ValueTuple.of( values ), null ); } ); }
void onPropertyAdd( NodeCursor node, PropertyCursor propertyCursor, int propertyKeyId, Value value ) { assert noSchemaChangedInTx(); Iterator<? extends IndexDescriptor> indexes = storageReader.indexesGetRelatedToProperty( propertyKeyId ); NodeSchemaMatcher.onMatchingSchema( indexes, node, propertyCursor, propertyKeyId, ( index, propertyKeyIds ) -> { Value[] values = getValueTuple( node, propertyCursor, propertyKeyId, value, index.schema().getPropertyIds() ); indexProviders.validateBeforeCommit( index.schema(), values ); read.txState().indexDoUpdateEntry( index.schema(), node.nodeReference(), null, ValueTuple.of( values ) ); } ); }
Iterator<? extends IndexDescriptor> indexes = storageReader.indexesGetRelatedToProperty( propertyKeyId ); NodeSchemaMatcher.onMatchingSchema( indexes, node, propertyCursor, propertyKeyId, ( index, propertyKeyIds ) ->