|
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.opt.index.IndexImpl
public class IndexImpl
| Constructor Summary | |
|---|---|
IndexImpl()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
compileIndex()
|
void |
eqIndex(IndexSchema index,
Token[] values,
int windowId)
|
IntegerList |
eqIndexRetreiveAndRemove(IndexSchema index,
Token[] values)
|
IntegerList |
eqIndexRetrieve(IndexSchema index,
Token[] values)
|
int |
get()
Returns the min value |
int |
get(int i)
Returns the value at position |
int[] |
getAll()
|
int |
getAndRemove()
Returns the min value and removes it |
int |
getAndRemove(int i)
|
int[] |
getAndRemoveAll()
|
java.util.Vector |
getGroups(IndexSchema schema)
|
java.util.Vector |
getValues(IndexSchema schema)
|
void |
index(IndexSchema index,
Token[][] indexValues,
int value)
Like a simple value index but for general comparisons |
void |
index(IndexSchema index,
Token[] values,
int windowId)
|
void |
index(int value)
Indexes the value without indexValues :-) |
void |
neqIndex(IndexSchema index,
Token[] values,
int windowId)
|
IntegerList |
neqIndexRetreiveAndRemove(IndexSchema index,
Token[] values)
|
IntegerList |
neqIndexRetrieve(IndexSchema index,
Token[] values)
|
boolean |
registerIndex(IndexSchema index)
Registered a new Index. |
void |
remove()
|
void |
remove(int value)
Returns the first value |
IntegerList |
retreive(IndexSchema index,
Token[] values)
|
IntegerList |
retreive(IndexSchema index,
Token[][] indexValues)
Like a simple value index but for general comparisons |
IntegerList |
retreiveAndRemove(IndexSchema index,
Token[] values)
|
IntegerList |
retreiveAndRemove(IndexSchema index,
Token[][] indexValues)
|
int |
size()
Gets the number of elements in the index |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexImpl()
| Method Detail |
|---|
public boolean registerIndex(IndexSchema index)
Index
registerIndex in interface Indexindex - the index schema
public void index(int value)
Index
index in interface Indexvalue - >= 0public void remove()
public int getAndRemove()
Index
getAndRemove in interface Indexpublic int get()
Index
get in interface Indexpublic void remove(int value)
Index
remove in interface Index
public void index(IndexSchema index,
Token[][] indexValues,
int value)
Index
index in interface Indexvalue - >= 0
public void index(IndexSchema index,
Token[] values,
int windowId)
index in interface IndexwindowId - >= 0
public void eqIndex(IndexSchema index,
Token[] values,
int windowId)
public void neqIndex(IndexSchema index,
Token[] values,
int windowId)
public IntegerList eqIndexRetrieve(IndexSchema index,
Token[] values)
public IntegerList neqIndexRetrieve(IndexSchema index,
Token[] values)
public IntegerList retreive(IndexSchema index,
Token[] values)
retreive in interface Index
public IntegerList eqIndexRetreiveAndRemove(IndexSchema index,
Token[] values)
public IntegerList neqIndexRetreiveAndRemove(IndexSchema index,
Token[] values)
public IntegerList retreiveAndRemove(IndexSchema index,
Token[][] indexValues)
throws MXQueryException
retreiveAndRemove in interface IndexMXQueryException
public IntegerList retreiveAndRemove(IndexSchema index,
Token[] values)
retreiveAndRemove in interface Indexpublic int size()
Index
size in interface Index
public IntegerList retreive(IndexSchema index,
Token[][] indexValues)
throws MXQueryException
Index
retreive in interface IndexMXQueryExceptionpublic int get(int i)
Index
get in interface Indexpublic void compileIndex()
compileIndex in interface Indexpublic int[] getAll()
getAll in interface Indexpublic int getAndRemove(int i)
getAndRemove in interface Indexpublic int[] getAndRemoveAll()
getAndRemoveAll in interface Indexpublic void clear()
clear in interface Indexpublic java.util.Vector getGroups(IndexSchema schema)
getGroups in interface Indexpublic java.util.Vector getValues(IndexSchema schema)
getValues in interface Index
|
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 | ||||||||