infovis.column
Class CategoricalColumn
java.lang.Object
infovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.BasicColumn
infovis.column.LiteralColumn
infovis.column.IntColumn
infovis.column.CategoricalColumn
- All Implemented Interfaces:
- IntComparator, Column, NumberColumn, Metadata, Constants, RowComparator, Serializable
public class CategoricalColumn
- extends IntColumn
Specialization of an IntColumn storing categorical values.
- Version:
- $Revision: 1.20 $
- Author:
- Jean-Daniel Fekete
- See Also:
- Serialized Form
- InfoVis factory arguments:
- ColumnFactory "categorical" DENSE, ColumnFactory "cat" DENSE
Fields inherited from interface infovis.metadata.Constants |
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Methods inherited from class infovis.column.IntColumn |
add, addExtend, capacity, clear, ensureCapacity, fill, format, format, get, getColumn, getDoubleAt, getFloatAt, getIntAt, getLongAt, getMax, getMin, getValueAt, getValueClass, getValueReference, parse, round, set, setDoubleAt, setExtend, setIntAt, setLongAt, setSize, setValueAt, size, sort, stableSort, toArray, toArray |
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 interface infovis.Column |
addChangeListener, addValue, addValueOrNull, disableNotify, enableNotify, getFormat, getMaxIndex, getMinIndex, getName, isEmpty, isInternal, iterator, removeChangeListener, setFormat, setName, setValueOrNullAt |
CategoricalColumn
public CategoricalColumn(String name)
- Constructor for CategoricalColumn.
- Parameters:
name
- the column name
CategoricalColumn
public CategoricalColumn(String name,
int reserve,
Map map)
- Constructor for CategoricalColumn.
- Parameters:
name
- the Column name.reserve
- the initial reserved size.map
- the initial category map.
getColumn
public static IntColumn getColumn(Table t,
int index)
- Returns a column as a
IntColumn
from an
Table
.
- Parameters:
t
- the Table
index
- index in the DefaultTable
- Returns:
- a
IntColumn
or null if no such column
exists or the column is not a
IntColumn
.
findColumn
public static IntColumn findColumn(Table t,
String name)
- Returns a column as a
IntColumn
from a table,
creating it if needed.
- Parameters:
t
- the Table
name
- the column name.
- Returns:
- a column as a
IntColumn
from a table,
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.