org.neo4j.kernel.impl.nioneo.store
Class PropertyRecord

java.lang.Object
  extended by org.neo4j.kernel.impl.nioneo.store.AbstractBaseRecord
      extended by org.neo4j.kernel.impl.nioneo.store.Abstract64BitRecord
          extended by org.neo4j.kernel.impl.nioneo.store.PropertyRecord

public class PropertyRecord
extends Abstract64BitRecord

PropertyRecord is a container for PropertyBlocks. PropertyRecords form a double linked list and each one holds one or more PropertyBlocks that are the actual property key/value pairs. Because PropertyBlocks are of variable length, a full PropertyRecord can be holding just one PropertyBlock.


Constructor Summary
PropertyRecord(long id)
           
PropertyRecord(long id, PrimitiveRecord primitive)
           
 
Method Summary
 void addDeletedRecord(DynamicRecord record)
           
 void addPropertyBlock(PropertyBlock block)
           
 List<DynamicRecord> getDeletedRecords()
           
 long getNextProp()
           
 long getNodeId()
           
 long getPrevProp()
           
 PropertyBlock getPropertyBlock(int keyIndex)
           
 List<PropertyBlock> getPropertyBlocks()
           
 long getRelId()
           
 boolean isChanged()
           
 PropertyBlock removePropertyBlock(int keyIndex)
           
 void setChanged(PrimitiveRecord primitive)
           
 void setNextProp(long nextProp)
           
 void setNodeId(long nodeId)
           
 void setPrevProp(long prev)
           
 void setRelId(long relId)
           
 int size()
          Gets the sum of the sizes of the blocks in this record, in bytes.
 String toString()
           
 
Methods inherited from class org.neo4j.kernel.impl.nioneo.store.Abstract64BitRecord
getId, getLongId
 
Methods inherited from class org.neo4j.kernel.impl.nioneo.store.AbstractBaseRecord
inUse, isCreated, setCreated, setInUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyRecord

public PropertyRecord(long id)

PropertyRecord

public PropertyRecord(long id,
                      PrimitiveRecord primitive)
Method Detail

setNodeId

public void setNodeId(long nodeId)

setRelId

public void setRelId(long relId)

getNodeId

public long getNodeId()

getRelId

public long getRelId()

size

public int size()
Gets the sum of the sizes of the blocks in this record, in bytes.

Returns:

getPropertyBlocks

public List<PropertyBlock> getPropertyBlocks()

getDeletedRecords

public List<DynamicRecord> getDeletedRecords()

addDeletedRecord

public void addDeletedRecord(DynamicRecord record)

addPropertyBlock

public void addPropertyBlock(PropertyBlock block)

getPropertyBlock

public PropertyBlock getPropertyBlock(int keyIndex)

removePropertyBlock

public PropertyBlock removePropertyBlock(int keyIndex)

getNextProp

public long getNextProp()

setNextProp

public void setNextProp(long nextProp)

toString

public String toString()
Overrides:
toString in class Object

isChanged

public boolean isChanged()

setChanged

public void setChanged(PrimitiveRecord primitive)

getPrevProp

public long getPrevProp()

setPrevProp

public void setPrevProp(long prev)


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.