public final class DocumentRootNode extends Object implements INode, IStructNode
Node representing the root of a document. This node is guaranteed to exist in revision 0 and can not be removed.
Constructor and Description |
---|
DocumentRootNode(NodeDelegate pNodeDel,
StructNodeDelegate pStrucDel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
decrementChildCount()
Decrementing the child count.
|
boolean |
equals(Object pObj) |
long |
getChildCount()
Gets the number of children of the item.
|
long |
getDataKey()
Gets unique
IData key. |
long |
getFirstChildKey()
Gets key of the context item's first child.
|
com.google.common.hash.Funnel<IData> |
getFunnel()
Getting a Funnel for computing guava-based hashes.
|
long |
getHash()
Getting the persisted hash value for this node.
|
int |
getKind()
Gets the kind of the item (atomic value, element node, attribute
node....).
|
long |
getLeftSiblingKey()
Gets key of the context item's left sibling.
|
long |
getParentKey()
Gets key of the context item's parent.
|
long |
getRightSiblingKey()
Gets key of the context item's right sibling.
|
int |
getTypeKey()
Gets value type of the item.
|
boolean |
hasFirstChild()
Declares, whether the item has a first child.
|
int |
hashCode() |
boolean |
hasLeftSibling()
Declares, whether the item has a left sibling.
|
boolean |
hasParent()
Declares, whether the item has a parent.
|
boolean |
hasRightSibling()
Declares, whether the item has a right sibling.
|
void |
incrementChildCount()
Incrementing the child count.
|
void |
serialize(DataOutput pOutput)
Serializing to given dataput
|
void |
setFirstChildKey(long pKey)
Setting the first child sibling key to this node.
|
void |
setHash(long pHash)
Setting the hash of this node including substructure.
|
void |
setLeftSiblingKey(long pKey)
Setting the left sibling key to this node.
|
void |
setParentKey(long pKey)
Setting the parent key.
|
void |
setRightSiblingKey(long pKey)
Setting the right sibling key to this node.
|
void |
setTypeKey(int pTypeKey)
Setting the type key.
|
String |
toString() |
public DocumentRootNode(NodeDelegate pNodeDel, StructNodeDelegate pStrucDel)
pNodeDel
- delegate for node propertiespStrucDel
- delegate for struct propertiespublic int getKind()
public long getDataKey()
IData
key.
This key should be set over the IBucketWriteTrx.incrementDataKey
for getting the correct
offset
within retrievals.getDataKey
in interface IData
public long getParentKey()
getParentKey
in interface INode
public long getHash()
public void setHash(long pHash)
public int getTypeKey()
getTypeKey
in interface INode
public boolean hasParent()
public boolean hasFirstChild()
hasFirstChild
in interface IStructNode
public boolean hasLeftSibling()
hasLeftSibling
in interface IStructNode
public boolean hasRightSibling()
hasRightSibling
in interface IStructNode
public long getChildCount()
getChildCount
in interface IStructNode
public long getFirstChildKey()
getFirstChildKey
in interface IStructNode
public long getLeftSiblingKey()
getLeftSiblingKey
in interface IStructNode
public long getRightSiblingKey()
getRightSiblingKey
in interface IStructNode
public void setRightSiblingKey(long pKey)
setRightSiblingKey
in interface IStructNode
pKey
- the new key to be set.public void setLeftSiblingKey(long pKey)
setLeftSiblingKey
in interface IStructNode
pKey
- the new key to be set.public void setFirstChildKey(long pKey)
setFirstChildKey
in interface IStructNode
pKey
- the new key to be set.public void decrementChildCount()
decrementChildCount
in interface IStructNode
public void incrementChildCount()
incrementChildCount
in interface IStructNode
public void setParentKey(long pKey)
setParentKey
in interface INode
pKey
- the parent to be set.public void setTypeKey(int pTypeKey)
setTypeKey
in interface INode
pTypeKey
- the type to be set.public void serialize(DataOutput pOutput) throws TTIOException
serialize
in interface IData
pOutput
- to serialize toTTIOException
Copyright © 2013. All Rights Reserved.