public class ColumnFactory
extends java.lang.Object
| Constructor and Description |
|---|
ColumnFactory() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final Column getColumn(java.lang.Class type)
type - the column data typepublic static final Column getColumn(java.lang.Class type, int nRows)
type - the column data typenRows - the number of rows to include in the columnpublic 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 columnpublic 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 columnpublic static final Column getColumn(Table t, Expression expr)
t - the table the column should be added toexpr - the expression that should provide the column valuespublic static final Column getConstantColumn(java.lang.Class type, java.lang.Object dFlt)
type - the column data typedFlt - the default constant value for the column