|
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 | ||||||||
java.lang.Objectch.ethz.mxquery.sms.MMimpl.LazyFIFOStore
public abstract class LazyFIFOStore
| Method Summary | |
|---|---|
void |
buffer(Token token,
int event)
Materialize the given token into the store instance |
int |
compare(Source store)
|
Source |
copySource(Context ctx,
java.util.Vector nestedPredCtxStack)
|
void |
deleteItems(int nodeId)
Mark as consumed all items up to lastItemId |
abstract void |
freeBuffers()
|
Token |
get(int activeTokenId)
Get Token at given position |
Token |
get(int activeTokenId,
int endNode)
|
int |
getAttributePosFromNodeId(java.lang.String attrName,
int nodeId)
|
int |
getAttributePosFromTokenId(java.lang.String attrName,
int activeTokenId)
|
int |
getCurrentTokenId()
|
Window |
getIterator(Context ctx)
Returns Iterator that points on the first token in the store. |
int |
getMyId()
Returns the store id (mostly for debugging) |
int |
getNodeIdFromTokenId(int lastKnownNodeId,
int activeTokenId)
|
int |
getSize()
|
int |
getTokenIdForNode(int nodeId)
|
java.lang.String |
getURI()
Returns the URI of the source. |
boolean |
hasNode(int nodeId)
|
void |
newItem()
Specify the beginning of a new item |
void |
readToken()
|
void |
setContainer(WindowBuffer buf)
|
void |
setContext(Context context)
|
void |
setContext(XQStaticContext context)
|
void |
setIterator(XDMIterator it)
For pull stores, add the iterator from which they should pull their data |
abstract void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getMyId()
StreamStore
getMyId in interface StreamStorepublic abstract void freeBuffers()
public abstract void start()
public void setIterator(XDMIterator it)
StreamStore
setIterator in interface StreamStorepublic void setContext(XQStaticContext context)
public void readToken()
public Token get(int activeTokenId)
StreamStore
get in interface StreamStoreget in interface MXQueryAppendUpdateactiveTokenId - Unique id given to the token inside this store instance (token position
public Token get(int activeTokenId,
int endNode)
get in interface MXQueryAppendUpdate
public int getNodeIdFromTokenId(int lastKnownNodeId,
int activeTokenId)
getNodeIdFromTokenId in interface MXQueryAppendUpdatepublic boolean hasNode(int nodeId)
hasNode in interface MXQueryAppendUpdate
public int getTokenIdForNode(int nodeId)
throws MXQueryException
getTokenIdForNode in interface MXQueryAppendUpdateMXQueryExceptionpublic void deleteItems(int nodeId)
AppendUpdate
deleteItems in interface AppendUpdatenodeId - Id of the item that was consumed lastpublic int getSize()
public void newItem()
StreamStore
newItem in interface StreamStore
public void buffer(Token token,
int event)
throws MXQueryException
StreamStore
buffer in interface StreamStoreMXQueryException
public int getAttributePosFromNodeId(java.lang.String attrName,
int nodeId)
throws MXQueryException
MXQueryException
public int getAttributePosFromTokenId(java.lang.String attrName,
int activeTokenId)
public int getCurrentTokenId()
public Window getIterator(Context ctx)
throws MXQueryException
Source
getIterator in interface SourceMXQueryExceptionpublic int compare(Source store)
compare in interface Source
public Source copySource(Context ctx,
java.util.Vector nestedPredCtxStack)
throws MXQueryException
copySource in interface SourceMXQueryExceptionpublic java.lang.String getURI()
Source
getURI in interface Sourcepublic void setContainer(WindowBuffer buf)
setContainer in interface MXQueryAppendUpdate
public void setContext(Context context)
throws MXQueryException
setContext in interface MXQueryAppendUpdateMXQueryException
|
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 | ||||||||