|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RandomRead
Method Summary | |
---|---|
Token |
get(int tokenId,
int eNode)
Returns a token for a specific Token id if it is not outside the end node id |
int |
getAttributePosFromNodeId(java.lang.String attrName,
int nodeId)
For an attribute given by name, tries to guess the token id in the buffer |
int |
getAttributePosFromTokenId(java.lang.String attrName,
int activeTokenId)
For an attribute given by name, tries to guess the token id in the buffer |
int |
getNodeIdFromTokenId(int lastKnowNodeId,
int activetokenId)
Returns the node id for a given token id |
int |
getTokenIdForNode(int nodeId)
Gets the first token id for a given node id |
boolean |
hasNode(int node)
Checks if the node with the given id exits |
Method Detail |
---|
int getTokenIdForNode(int nodeId) throws MXQueryException
nodeId
-
MXQueryException
boolean hasNode(int node) throws MXQueryException
node
-
MXQueryException
Token get(int tokenId, int eNode) throws MXQueryException
tokenId
- eNode
-
MXQueryException
int getNodeIdFromTokenId(int lastKnowNodeId, int activetokenId) throws MXQueryException
lastKnowNodeId
- Ist jus a hint to find the token id faster. If you have no clue use 0activetokenId
-
MXQueryException
int getAttributePosFromTokenId(java.lang.String attrName, int activeTokenId) throws MXQueryException
attrName
- - name of the attributeactiveTokenId
- - last known token id
MXQueryException
int getAttributePosFromNodeId(java.lang.String attrName, int nodeId) throws MXQueryException
attrName
- - name of the attributenodeId
- - last known node id
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |