public interface Column<E extends Column>
Columns can either exist on their own or be a part of a table. All the data in a single column is of a particular type.
Modifier and Type | Method and Description |
---|---|
void |
addCell(java.lang.String stringValue) |
void |
append(Column column) |
byte[] |
asBytes(int rowNumber)
Returns the contents of the cell at rowNumber as a byte[]
|
int |
byteSize()
Returns the width of a cell in this column, in bytes
|
void |
clear() |
ColumnMetadata |
columnMetadata() |
int |
columnWidth() |
java.lang.String |
comment() |
Column |
copy()
Returns a deep copy of the receiver
|
int |
countMissing()
Returns the count of missing values in this column
|
int |
countUnique()
Returns the count of unique values in this column
|
E |
difference()
Returns a new column of the same type as the receiver, such that the values in the new column
contain the difference between each cell in the original and it's predecessor.
|
Column |
emptyCopy()
Returns a copy of the receiver with no data.
|
Column |
emptyCopy(int rowSize)
Returns an empty copy of the receiver, with its internal storage initialized to the given row size
|
default java.lang.String |
first() |
default Column |
first(int numRows) |
java.lang.String |
getString(int row)
Returns a string representation of the value at the given row
|
java.lang.String |
id()
Returns a unique string that identifies this column
|
boolean |
isEmpty()
Returns true if the column has no data
|
Selection |
isMissing() |
Selection |
isNotMissing() |
default java.lang.String |
last() |
default Column |
last(int numRows) |
java.lang.String |
metadata()
Returns a String containing the column's metadata in json format
|
java.lang.String |
name()
Returns the column's name
|
java.lang.String |
print() |
it.unimi.dsi.fastutil.ints.IntComparator |
rowComparator() |
void |
setComment(java.lang.String comment) |
void |
setName(java.lang.String name)
Sets the columns name to the given string
|
int |
size() |
void |
sortAscending() |
void |
sortDescending() |
default Column |
subset(Selection rows) |
Table |
summary() |
default java.lang.String |
title() |
default double[] |
toDoubleArray() |
ColumnType |
type()
Returns this column's ColumnType
|
Column |
unique()
Returns a column of the same type as the receiver, containing only the unique values of the receiver
|
int size()
Table summary()
int countMissing()
int countUnique()
Column unique()
java.lang.String name()
void setName(java.lang.String name)
name
- The new name MUST be unique for any table containing this columnColumnType type()
java.lang.String getString(int row)
Column emptyCopy()
Column copy()
Column emptyCopy(int rowSize)
void clear()
void sortAscending()
void sortDescending()
boolean isEmpty()
void addCell(java.lang.String stringValue)
java.lang.String id()
java.lang.String metadata()
ColumnMetadata columnMetadata()
it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
default java.lang.String first()
default java.lang.String last()
void append(Column column)
default Column first(int numRows)
default Column last(int numRows)
java.lang.String print()
default java.lang.String title()
java.lang.String comment()
void setComment(java.lang.String comment)
default double[] toDoubleArray()
int columnWidth()
Selection isMissing()
Selection isNotMissing()
int byteSize()
byte[] asBytes(int rowNumber)
E difference()