Package org.neo4j.kernel.impl.nioneo.store

Examples of org.neo4j.kernel.impl.nioneo.store.PropertyRecord


                Record.REL_PROPERTY.byteValue() )
            {
                nodeProperty = false;
            }
            long primitiveId = buffer.getLong();
            PropertyRecord record = new PropertyRecord( id );
            if ( primitiveId != -1 && nodeProperty )
            {
                record.setNodeId( primitiveId );
            }
            else if ( primitiveId != -1 )
            {
                record.setRelId( primitiveId );
            }
            if ( inUse )
            {
                buffer.clear();
                buffer.limit( 32 );
                if ( byteChannel.read( buffer ) != buffer.limit() )
                {
                    return null;
                }
                buffer.flip();
                PropertyType type = getType( buffer.getInt() );
                if ( type == null )
                {
                    return null;
                }
                record.setType( type );
                record.setInUse( inUse );
                record.setKeyIndexId( buffer.getInt() );
                record.setPropBlock( buffer.getLong() );
                record.setPrevProp( buffer.getLong() );
                record.setNextProp( buffer.getLong() );
            }
            buffer.clear();
            buffer.limit( 4 );
            if ( byteChannel.read( buffer ) != buffer.limit() )
            {
                return null;
            }
            buffer.flip();
            int nrValueRecords = buffer.getInt();
            for ( int i = 0; i < nrValueRecords; i++ )
            {
                DynamicRecord dr = readDynamicRecord( byteChannel, buffer );
                if ( dr == null )
                {
                    return null;
                }
                record.addValueRecord( dr );
            }
            return new PropertyCommand( neoStore.getPropertyStore(), record );
        }
View Full Code Here

TOP

Related Classes of org.neo4j.kernel.impl.nioneo.store.PropertyRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.