if ( propertyRecord.getPropertyBlock( propertyKey ) != null )
@Override public Value getNodePropertyValue( long nodeId, int propertyKeyId ) throws EntityNotFoundException { NodeRecord node = nodeStore.getRecord( nodeId, nodeStore.newRecord(), FORCE ); if ( !node.inUse() ) { throw new EntityNotFoundException( EntityType.NODE, nodeId ); } long firstPropertyId = node.getNextProp(); if ( firstPropertyId == Record.NO_NEXT_PROPERTY.intValue() ) { return Values.NO_VALUE; } for ( PropertyRecord propertyRecord : propertyStore.getPropertyRecordChain( firstPropertyId ) ) { PropertyBlock propertyBlock = propertyRecord.getPropertyBlock( propertyKeyId ); if ( propertyBlock != null ) { return propertyBlock.newPropertyValue( propertyStore ); } } return Values.NO_VALUE; }
private void assertRecord( PropertyRecord record, ExpectedRecord expectedRecord ) { assertEquals( expectedRecord.properties.length, record.numberOfProperties() ); for ( ExpectedProperty expectedProperty : expectedRecord.properties ) { PropertyBlock block = record.getPropertyBlock( expectedProperty.key ); assertNotNull( block ); assertEquals( expectedProperty.value, block.getType().value( block, propertyStore ) ); if ( expectedProperty.assertHasDynamicRecords != null ) { if ( expectedProperty.assertHasDynamicRecords ) { assertThat( block.getValueRecords().size(), Matchers.greaterThan( 0 ) ); } else { assertEquals( 0, block.getValueRecords().size() ); } } } }
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock block = record.getPropertyBlock( props.get( keyId ).first().propertyKeyId() ); StorageProperty data = block.newPropertyKeyValue( pStore ); if ( data.propertyKeyId() == prop1.propertyKeyId() )
PropertyBlock existingBlock = propRecord.getPropertyBlock( propertyKey ); if ( existingBlock != null )
if ( propertyRecord.getPropertyBlock( propertyKey ) != null )
@Override public Value getNodePropertyValue( long nodeId, int propertyKeyId ) throws EntityNotFoundException { NodeRecord node = nodeStore.getRecord( nodeId, nodeStore.newRecord(), FORCE ); if ( !node.inUse() ) { throw new EntityNotFoundException( EntityType.NODE, nodeId ); } long firstPropertyId = node.getNextProp(); if ( firstPropertyId == Record.NO_NEXT_PROPERTY.intValue() ) { return Values.NO_VALUE; } for ( PropertyRecord propertyRecord : propertyStore.getPropertyRecordChain( firstPropertyId ) ) { PropertyBlock propertyBlock = propertyRecord.getPropertyBlock( propertyKeyId ); if ( propertyBlock != null ) { return propertyBlock.newPropertyValue( propertyStore ); } } return Values.NO_VALUE; }
PropertyBlock existingBlock = propRecord.getPropertyBlock( propertyKey ); if ( existingBlock != null )