| Modifier | Constructor and Description |
|---|---|
protected |
TreeIndex(String indexName,
boolean unique,
DataFrameColumn... columns)
Creates a multi index using more that one column
|
protected |
TreeIndex(String indexName,
DataFrameColumn... columns) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this index
|
boolean |
containsColumn(DataFrameColumn column)
Returns true if this index contains the specified column
|
Collection<Integer> |
find(Comparable... values)
Returns the row number for values used in this index
|
List<DataFrameColumn> |
getColumns()
Returns the columns used in this index
|
String |
getName()
Returns the name if this index
|
void |
remove(DataRow dataRow)
removes a
DataRow from this index |
void |
setUnique(boolean unique)
set true if only unique values are allowed for this index
|
void |
update(DataRow dataRow)
updates a
DataRow in this index |
protected TreeIndex(String indexName, boolean unique, DataFrameColumn... columns)
indexName - name of indexcolumns - index columnsprotected TreeIndex(String indexName, DataFrameColumn... columns)
public void setUnique(boolean unique)
Indexpublic String getName()
Indexpublic void clear()
Indexpublic boolean containsColumn(DataFrameColumn column)
IndexcontainsColumn in interface Indexcolumn - column to tes tpublic List<DataFrameColumn> getColumns()
IndexgetColumns in interface Indexpublic void update(DataRow dataRow)
IndexDataRow in this indexpublic void remove(DataRow dataRow)
IndexDataRow from this indexpublic Collection<Integer> find(Comparable... values)
IndexCopyright © 2017. All rights reserved.