public abstract class AbstractColumn<T,C extends AbstractColumn<T,C>> extends Object implements Column
Column
interfaceModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ARRAY_SIZE |
Constructor and Description |
---|
AbstractColumn(ColumnType type,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
columnWidth()
Returns the width of the column in characters, for printing
|
abstract C |
emptyCopy()
Returns a copy of the receiver with no data.
|
C |
fillMissing(C other)
Create a copy of this column where missing values are replaced with the corresponding value in the given column
|
C |
fillMissing(T defaultVal)
Create a copy of this column where missing values are replaced with the given default value
|
abstract T |
getObject(int i) |
String |
name()
Returns the column's name.
|
String |
print()
TODO(lwhite): Print n from the top and bottom, like a table;
|
abstract C |
set(int i,
T val) |
Column |
setName(String name)
Sets the columns name to the given string
|
String |
toString() |
ColumnType |
type()
Returns this column's ColumnType
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendCell, appendCell, appendMissing, asBytes, asDoubleArray, asObjectArray, byteSize, clear, copy, countMissing, countUnique, create, emptyCopy, first, getDouble, getString, getUnformattedString, inRange, isEmpty, isMissing, isMissing, isNotMissing, lag, last, lead, removeMissing, rolling, rowComparator, rows, sampleN, sampleX, size, sortAscending, sortDescending, subset, summarizeIf, summary, title, unique, where
public static final int DEFAULT_ARRAY_SIZE
public AbstractColumn(ColumnType type, String name)
public Column setName(String name)
Column
public int columnWidth()
columnWidth
in interface Column
public ColumnType type()
Column
type
in interface Column
ColumnType
public abstract C emptyCopy()
Column
public C fillMissing(T defaultVal)
public C fillMissing(C other)
Copyright © 2018. All rights reserved.