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 columnCopyright ? 2013 Regents of the University of California