|
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.RandomStore
ch.ethz.mxquery.sms.MMimpl.IndexRandomStore
public class IndexRandomStore
TO DO
Field Summary |
---|
Fields inherited from class ch.ethz.mxquery.sms.MMimpl.RandomStore |
---|
id |
Constructor Summary | |
---|---|
IndexRandomStore(XDMIterator it,
int secondsToStoreData,
java.lang.String name)
|
|
IndexRandomStore(XDMIterator it,
int secondsToStoreData,
java.lang.String name,
boolean wait,
int size,
WindowBuffer container)
Store constructor |
Method Summary | |
---|---|
void |
buffer(Token tok,
int event)
materialize a new token from the stream; event for avoiding subsequent check for type |
int |
compare(Source store)
|
Source |
copySource(Context ctx,
java.util.Vector nestedPredCtxStack)
|
void |
delete(IndexSchema schema,
Token[] values)
|
void |
deleteItems(int[] ids)
|
Token |
get(int pos)
Get Token at given position |
Window |
getIterator(Context ctx)
Returns Iterator that points on the first token in the store. |
java.lang.String |
getURI()
Returns the URI of the source. |
void |
newItem()
Specify the beginning of a new item |
void |
printDebugAccidents()
|
IndexSchema |
registerIndex(IndexSchema schema)
register index schemas |
XDMIterator |
retrieve(IndexSchema schema,
Token[] tokens)
|
void |
setIterator(XDMIterator it)
For pull stores, add the iterator from which they should pull their data |
void |
start()
Start the gathering of the active store |
Methods inherited from class ch.ethz.mxquery.sms.MMimpl.RandomStore |
---|
getMyId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexRandomStore(XDMIterator it, int secondsToStoreData, java.lang.String name, boolean wait, int size, WindowBuffer container)
it
- Iterator to pull the data fromsecondsToStoreData
- Wait until access to storage is permitted (supposes the existence of a "miunute" attr)name
- Store's namewait
- Synchronization condition (minute) - more than one items per "minute"public IndexRandomStore(XDMIterator it, int secondsToStoreData, java.lang.String name)
Method Detail |
---|
public IndexSchema registerIndex(IndexSchema schema)
registerIndex
in interface IndexInterface
schema
- for index construction
public void start()
ActiveStore
start
in interface ActiveStore
public XDMIterator retrieve(IndexSchema schema, Token[] tokens)
retrieve
in interface IndexRead
public void buffer(Token tok, int event)
buffer
in interface StreamStore
public void printDebugAccidents()
public void delete(IndexSchema schema, Token[] values)
delete
in interface RandomUpdate
public void deleteItems(int[] ids)
deleteItems
in interface RandomUpdate
public Token get(int pos) throws MXQueryException
StreamStore
get
in interface StreamStore
pos
- Unique id given to the token inside this store instance (token position
MXQueryException
public void newItem()
StreamStore
newItem
in interface StreamStore
public int compare(Source store)
compare
in interface Source
public Source copySource(Context ctx, java.util.Vector nestedPredCtxStack) throws MXQueryException
copySource
in interface Source
MXQueryException
public java.lang.String getURI()
Source
getURI
in interface Source
public Window getIterator(Context ctx) throws MXQueryException
Source
getIterator
in interface Source
MXQueryException
public void setIterator(XDMIterator it)
StreamStore
setIterator
in interface StreamStore
|
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 |