|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.column.ColumnFactory
public class ColumnFactory
Factory class for generating appropriate column instances. Used by Tables to generate their columns.
| Constructor Summary | |
|---|---|
ColumnFactory()
|
|
| Method Summary | |
|---|---|
static Column |
getColumn(java.lang.Class type)
Get a new column of the given type. |
static Column |
getColumn(java.lang.Class type,
int nrows)
Get a new column of the given type. |
static Column |
getColumn(java.lang.Class type,
int nrows,
int nnz,
java.lang.Object defaultValue)
Get a new column of the given type. |
static Column |
getColumn(java.lang.Class type,
int nrows,
java.lang.Object defaultValue)
Get a new column of the given type. |
static Column |
getColumn(Table t,
Expression expr)
Get a new column based on the given expression. |
static Column |
getConstantColumn(java.lang.Class type,
java.lang.Object dflt)
Get a new column of a constant value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnFactory()
| Method Detail |
|---|
public static final Column getColumn(java.lang.Class type)
type - the column data type
public static final Column getColumn(java.lang.Class type,
int nrows)
type - the column data typenrows - the number of rows to include in the column
public static final Column getColumn(java.lang.Class type,
int nrows,
java.lang.Object defaultValue)
type - the column data typenrows - the number of rows to include in the columndefaultValue - the default value for the column
public static final Column getColumn(java.lang.Class type,
int nrows,
int nnz,
java.lang.Object defaultValue)
type - the column data typenrows - the number of rows to include in the columnnnz - the number of expected non-zero entries (NOTE: currently
this value is not being used)defaultValue - the default value for the column
public static final Column getColumn(Table t,
Expression expr)
t - the table the column should be added toexpr - the expression that should provide the column values
public static final Column getConstantColumn(java.lang.Class type,
java.lang.Object dflt)
type - the column data typedflt - the default constant value for the column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||