|
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 Index
index
- the index schema
public void index(int value)
Index
index
in interface Index
value
- >= 0public void remove()
public int getAndRemove()
Index
getAndRemove
in interface Index
public int get()
Index
get
in interface Index
public void remove(int value)
Index
remove
in interface Index
public void index(IndexSchema index, Token[][] indexValues, int value)
Index
index
in interface Index
value
- >= 0public void index(IndexSchema index, Token[] values, int windowId)
index
in interface Index
windowId
- >= 0public 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 Index
MXQueryException
public IntegerList retreiveAndRemove(IndexSchema index, Token[] values)
retreiveAndRemove
in interface Index
public int size()
Index
size
in interface Index
public IntegerList retreive(IndexSchema index, Token[][] indexValues) throws MXQueryException
Index
retreive
in interface Index
MXQueryException
public int get(int i)
Index
get
in interface Index
public void compileIndex()
compileIndex
in interface Index
public int[] getAll()
getAll
in interface Index
public int getAndRemove(int i)
getAndRemove
in interface Index
public int[] getAndRemoveAll()
getAndRemoveAll
in interface Index
public void clear()
clear
in interface Index
public java.util.Vector getGroups(IndexSchema schema)
getGroups
in interface Index
public 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 |