org.neo4j.kernel.impl.nioneo.store
Class PropertyRecord
java.lang.Object
org.neo4j.kernel.impl.nioneo.store.AbstractBaseRecord
org.neo4j.kernel.impl.nioneo.store.Abstract64BitRecord
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.
PropertyRecord
public PropertyRecord(long id)
PropertyRecord
public PropertyRecord(long id,
PrimitiveRecord primitive)
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.