public class AtomicValue extends Object implements INode, IValNode
An item represents either an atomic value or a node. An atomic value is a value in the value space of an atomic type, as defined in XMLSchema 1.1. (Definition: Atomic types are anyAtomicType and all types derived from it.)
Constructor and Description |
---|
AtomicValue(boolean pValue)
Constructor.
|
AtomicValue(byte[] pValue,
int pType)
Constructor.
|
AtomicValue(Number pValue,
Type pType)
Constructor.
|
AtomicValue(String pValue,
Type pType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBool()
Returns the atomic value as a boolean.
|
long |
getDataKey()
Gets unique
IData key. |
double |
getDBL()
Returns the atomic value as a double.
|
float |
getFLT()
Returns the atomic value as a float.
|
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 |
getInt()
Returns the atomic value as an integer.
|
int |
getKind()
Gets the kind of the item (atomic value, element node, attribute
node....).
|
long |
getParentKey()
Gets key of the context item's parent.
|
byte[] |
getRawValue()
Return a byte array representation of the item's value.
|
String |
getType()
Getting the type of the value.
|
int |
getTypeKey()
Gets value type of the item.
|
boolean |
hasParent()
Declares, whether the item has a parent.
|
boolean |
isFullText()
Check if is fulltext.
|
boolean |
isFullTextLeaf()
Test if the lead is tes.
|
boolean |
isFullTextRoot()
Test if the root is full text.
|
void |
serialize(DataOutput pOutput)
Serializing to given dataput
|
void |
setHash(long hash)
Setting the hash of this node including substructure.
|
void |
setNodeKey(long pNodeKey)
Setting the node key for an item
|
void |
setParentKey(long paramKey)
Setting the parent key.
|
void |
setTypeKey(int paramType)
Setting the type key.
|
void |
setValue(byte[] paramVal)
Setting the value key.
|
String |
toString() |
public AtomicValue(byte[] pValue, int pType)
pValue
- the value of the ItempType
- the item's typepublic AtomicValue(boolean pValue)
pValue
- the value of the Itempublic AtomicValue(Number pValue, Type pType)
pValue
- the value of the ItempType
- the item's typepublic long getParentKey()
getParentKey
in interface INode
public boolean hasParent()
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 void setNodeKey(long pNodeKey)
pNodeKey
- to be setpublic int getKind()
public boolean isFullText()
public boolean isFullTextLeaf()
public boolean isFullTextRoot()
public final int getTypeKey()
getTypeKey
in interface INode
public final String getType()
public int getInt()
public boolean getBool()
public float getFLT()
public double getDBL()
public void setHash(long hash)
INode
public long getHash()
INode
public void setParentKey(long paramKey)
INode
setParentKey
in interface INode
paramKey
- the parent to be set.public void setTypeKey(int paramType)
INode
setTypeKey
in interface INode
paramType
- the type to be set.public byte[] getRawValue()
getRawValue
in interface IValNode
public void setValue(byte[] paramVal)
public void serialize(DataOutput pOutput) throws TTIOException
serialize
in interface IData
pOutput
- to serialize toTTIOException
Copyright © 2013. All Rights Reserved.