public final class TextNode extends Object implements IStructNode, IValNode, INode
Node representing a text node.
Constructor and Description |
---|
TextNode(NodeDelegate pDel,
StructNodeDelegate pStrucDel,
ValNodeDelegate pValDel)
Constructor for TextNode.
|
Modifier and Type | Method and Description |
---|---|
void |
decrementChildCount()
Decrementing the child count.
|
boolean |
equals(Object obj) |
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.
|
byte[] |
getRawValue()
Return a byte array representation of the item's value.
|
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 pFirstChildKey)
Setting the first child sibling key to this node.
|
void |
setHash(long pHash)
Setting the hash of this node including substructure.
|
void |
setLeftSiblingKey(long pLeftSiblingKey)
Setting the left sibling key to this node.
|
void |
setParentKey(long pParentKey)
Setting the parent key.
|
void |
setRightSiblingKey(long pRightSiblingKey)
Setting the right sibling key to this node.
|
void |
setTypeKey(int pTypeKey)
/** Setting the type key.
|
void |
setValue(byte[] pVal)
Setting the value key.
|
String |
toString() |
public TextNode(NodeDelegate pDel, StructNodeDelegate pStrucDel, ValNodeDelegate pValDel)
pDel
- Delegate for IData
implementation.pValDel
- Delegate for IValNode
implementation.pStrucDel
- Delegate for IStructNode
implementation.public int getKind()
public byte[] getRawValue()
getRawValue
in interface IValNode
public void setValue(byte[] pVal)
public long getFirstChildKey()
getFirstChildKey
in interface IStructNode
public void setHash(long pHash)
public long getHash()
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 boolean hasParent()
public int getTypeKey()
getTypeKey
in interface INode
public void setParentKey(long pParentKey)
setParentKey
in interface INode
pParentKey
- the parent to be set.public void setTypeKey(int pTypeKey)
setTypeKey
in interface INode
pTypeKey
- the type to be set.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 getLeftSiblingKey()
getLeftSiblingKey
in interface IStructNode
public long getRightSiblingKey()
getRightSiblingKey
in interface IStructNode
public void setRightSiblingKey(long pRightSiblingKey)
setRightSiblingKey
in interface IStructNode
pRightSiblingKey
- the new key to be set.public void setLeftSiblingKey(long pLeftSiblingKey)
setLeftSiblingKey
in interface IStructNode
pLeftSiblingKey
- the new key to be set.public void setFirstChildKey(long pFirstChildKey)
setFirstChildKey
in interface IStructNode
pFirstChildKey
- the new key to be set.public void decrementChildCount()
decrementChildCount
in interface IStructNode
public void incrementChildCount()
incrementChildCount
in interface IStructNode
public void serialize(DataOutput pOutput) throws TTIOException
serialize
in interface IData
pOutput
- to serialize toTTIOException
public com.google.common.hash.Funnel<IData> getFunnel()
IData
Copyright © 2013. All Rights Reserved.