|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.BasicColumn
infovis.column.BasicObjectColumn
infovis.column.FilterColumn
public class FilterColumn
Column managing BitSet s meant for filtering columns with
dynamic queries.
| Field Summary |
|---|
| Fields inherited from class infovis.column.AbstractColumn |
|---|
MODIFIED_ALL, MODIFIED_NONE |
| Fields inherited from interface infovis.metadata.Constants |
|---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
| Constructor Summary | |
|---|---|
FilterColumn(String name)
Constructor for FilterColumn. |
|
FilterColumn(String name,
int reserve)
Constructor for FilterColumn. |
|
| Method Summary | |
|---|---|
int |
addDynamicQuery(DynamicQuery query)
Adds a dynamic query to the list of registered queries. |
void |
applyDynamicQuery(DynamicQuery query,
RowIterator iter)
Applies a DynamicQuery to all the values of a
specified RowIterator. |
void |
clearBit(int bitIndex)
Clears a specified bit from all the BitSets. |
void |
clearBit(int index,
int bitIndex)
Clears a specified bit from BitSet at specified index. |
int |
compare(int row1,
int row2)
|
Object |
definedValue()
Returns the instance of a value defined with the right type for this column. |
static FilterColumn |
findColumn(Table t,
String name)
Returns a column as a FilterColumn from a table, creating
it if needed. |
int |
findDynamicQueryIndex(DynamicQuery query)
Returns the bitIndex for the specified dynamic query creating it and adding the dynamic query if is not registered. |
BitSet |
get(int index)
Returns the element at the specified position in this column. |
static FilterColumn |
getColumn(Table t,
int index)
Returns a column as a FilterColumn from an
Table. |
static FilterColumn |
getColumn(Table t,
String name)
Returns a column as a FilterColumn from a
Table. |
DynamicQuery |
getDynamicQueryAt(int index)
Returns the dynamic query at the specified index or null. |
int |
getDynamicQueryCount()
Returns the number of dynamic queries managed by the filter column. |
int |
getDynamicQueryIndex(DynamicQuery query)
Returns the bitIndex for the specified dynamic query or -1 if it is not registered. |
Class |
getValueClass()
Returns the class of the elements. |
boolean |
isFiltered(int index)
Returns true if the specified index is filtered. |
int |
removeDynamicQuery(DynamicQuery query)
Removes a dynamic query from the list of registered queries, also clearing the associated bit from the BitSets. |
void |
setBit(int index,
int bitIndex)
Sets a specified bit from BitSet at a specified index,
creating the BitSet if required. |
| Methods inherited from class infovis.column.BasicObjectColumn |
|---|
add, capacity, clear, compare, compareValues, ensureCapacity, fill, format, getObjectAt, getOrder, getValueAt, getValueReference, hasUndefinedValue, indexOf, isValueUndefined, parse, remove, remove, setExtend, setObjectAt, setOrder, setSize, setValueAt, setValueUndefined, size |
| Methods inherited from class infovis.column.BasicColumn |
|---|
addValue, addValueOrNull, firstValidRow, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, isEmpty, isInternal, iterator, lastValidRow, setFormat, setName, setValueOrNullAt, toString |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow |
| Methods inherited from class infovis.utils.ChangeManager |
|---|
disableNotify, enableNotify, getModCount, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface infovis.Column |
|---|
disableNotify, enableNotify, removeChangeListener |
| Constructor Detail |
|---|
public FilterColumn(String name)
name - the name.
public FilterColumn(String name,
int reserve)
name - the namereserve - the reserved size| Method Detail |
|---|
public int getDynamicQueryIndex(DynamicQuery query)
query - the dynamic query
public DynamicQuery getDynamicQueryAt(int index)
index - the index
public int getDynamicQueryCount()
public int findDynamicQueryIndex(DynamicQuery query)
query - the dynamic query
public int addDynamicQuery(DynamicQuery query)
query - the dynamic query
public int removeDynamicQuery(DynamicQuery query)
query - the dynamic query
public void applyDynamicQuery(DynamicQuery query,
RowIterator iter)
DynamicQuery to all the values of a
specified RowIterator.
query - the dynamic queryiter - the RowIteratorpublic BitSet get(int index)
index - index of element to return.
public boolean isFiltered(int index)
isFiltered in interface RowFilterindex - the index.
public void clearBit(int index,
int bitIndex)
BitSet at specified index.
index - the index.bitIndex - the bit.public final void clearBit(int bitIndex)
BitSets.
bitIndex - the bit.
public final void setBit(int index,
int bitIndex)
BitSet at a specified index,
creating the BitSet if required.
index - the rowbitIndex - the bit index
public static FilterColumn getColumn(Table t,
int index)
FilterColumn from an
Table.
t - the Tableindex - index in the Table
FilterColumn or null if no such column exists or
the column is not a FilterColumn.
public static FilterColumn getColumn(Table t,
String name)
FilterColumn from a
Table.
t - the Tablename - the column name.
FilterColumn or null if no such column exists or
the column is not a FilterColumn.
public static FilterColumn findColumn(Table t,
String name)
FilterColumn from a table, creating
it if needed.
t - the Tablename - the column name.
FilterColumn from a table,public Class getValueClass()
getValueClass in interface ColumngetValueClass in class BasicObjectColumn
public int compare(int row1,
int row2)
compare in interface IntComparatorcompare in class BasicObjectColumnpublic Object definedValue()
definedValue in class BasicObjectColumn
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||