public class NameNodeDelegate extends Object implements INode, INameNode
INameNode
to this class. Mainly, keys are
stored referencing later on to the string stored in dedicated pages.Constructor and Description |
---|
NameNodeDelegate(NodeDelegate pDel,
int pNameKey,
int pUriKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getDataKey()
Delegate method for getNodeKey.
|
com.google.common.hash.Funnel<IData> |
getFunnel()
Getting a Funnel for computing guava-based hashes.
|
long |
getHash()
Delegate method for getHash.
|
int |
getKind()
Gets the kind of the item (atomic value, element node, attribute
node....).
|
int |
getNameKey()
Gets key of qualified name.
|
long |
getParentKey()
Delegate method for getParentKey.
|
int |
getTypeKey()
Delegate method for getTypeKey.
|
int |
getURIKey()
Gets key of the URI.
|
int |
hashCode() |
boolean |
hasParent()
Delegate method for hasParent.
|
void |
serialize(DataOutput pOutput)
Serializing to given dataput
|
void |
setHash(long pHash)
Delegate method for setHash.
|
void |
setNameKey(int pNameKey)
Setting the name key.
|
void |
setParentKey(long pNodeKey)
Delegate method for setParentKey.
|
void |
setTypeKey(int pTypeKey)
Delegate method for setType.
|
void |
setURIKey(int pUriKey)
Setting the uri key.
|
String |
toString() |
public NameNodeDelegate(NodeDelegate pDel, int pNameKey, int pUriKey)
pDel
- page delegatorpNameKey
- namekey to be storedpUriKey
- urikey to be storedpublic void setHash(long pHash)
setHash
in interface INode
pHash
- NodeDelegate.setHash(long)
public long getHash()
getHash
in interface INode
NodeDelegate.getHash()
public long getDataKey()
getDataKey
in interface IData
NodeDelegate.getDataKey()
public long getParentKey()
getParentKey
in interface INode
NodeDelegate.getParentKey()
public boolean hasParent()
hasParent
in interface INode
NodeDelegate.hasParent()
public int getTypeKey()
getTypeKey
in interface INode
NodeDelegate.getTypeKey()
public void setParentKey(long pNodeKey)
setParentKey
in interface INode
pNodeKey
- NodeDelegate.setParentKey(long)
public void setTypeKey(int pTypeKey)
setTypeKey
in interface INode
pTypeKey
- NodeDelegate.setTypeKey(int)
public int getKind()
public int getNameKey()
getNameKey
in interface INameNode
public int getURIKey()
public void setNameKey(int pNameKey)
setNameKey
in interface INameNode
pNameKey
- the namekey to be set.public void setURIKey(int pUriKey)
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.