T
- Element classpublic interface Index<T extends Element>
Modifier and Type | Method and Description |
---|---|
int |
count(Column column,
Object value)
Counts the elements with value in the given column.
|
int |
countElements(Column column)
Counts the elements in the given column.
|
int |
countValues(Column column)
Counts the unique values in the given column.
|
Iterable<T> |
get(Column column,
Object value)
Gets an Iterable of all elements in the index with value in the
given column.
|
Class<T> |
getIndexClass()
Returns the element type of this index.
|
String |
getIndexName()
Returns the name of this index.
|
Number |
getMaxValue(Column column)
Returns the maximum value in the given column.
|
Number |
getMinValue(Column column)
Returns the minimum value in the given column.
|
Collection |
values(Column column)
Returns all unique values in the given column.
|
int count(Column column, Object value)
column
- the column to count valuesvalue
- the valueIterable<T> get(Column column, Object value)
column
- the column to get valuesvalue
- the valueCollection values(Column column)
column
- the column to get values fromint countValues(Column column)
column
- the column to count valuesint countElements(Column column)
column
- the column to count elementsNumber getMinValue(Column column)
Only applies for numerical columns.
column
- the columnNumber getMaxValue(Column column)
Only applies for numerical columns.
column
- the columnClass<T> getIndexClass()
String getIndexName()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.