public abstract class AbstractColumn<T,C extends AbstractColumn<T,C>> extends Object implements Column
Column interface| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ARRAY_SIZE |
| Constructor and Description |
|---|
AbstractColumn(ColumnType type,
String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract C |
append(T val) |
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, waitappend, 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, wherepublic static final int DEFAULT_ARRAY_SIZE
public AbstractColumn(ColumnType type, String name)
public Column setName(String name)
Columnpublic int columnWidth()
columnWidth in interface Columnpublic ColumnType type()
Columntype in interface ColumnColumnTypepublic abstract C emptyCopy()
Columnpublic C fillMissing(T defaultVal)
public C fillMissing(C other)
Copyright © 2018. All rights reserved.