public interface DataFrame extends List<Row>, RandomAccess
Column-oriented, immutable, heterogeneous tabular
data structure with labeled column names.
Dataframe implements List<Row>. The rows can be accessed
using the standard Collection/List/Iterator methods,
or via a Cursor which avoids the overhead of creating a Row
object for each row.
A dataframe may optionally designate a "key" column. A key column is a
Column which reports Column.isDistinct() as true, and acts as
an index in the database sense of the word. Certain methods will only work
when a key column is present, e.g. subFrameByValue(Object, Object).
| Modifier and Type | Method and Description |
|---|---|
DataFrame |
append(DataFrame df)
Appends the specified dataframe to this one by calling
Column.append(Column) on each pair of columns, and keeping the
meta-data from this dataframe. |
DataFrame |
append(DataFrame df,
boolean coerce)
Appends the specified dataframe to this one by calling
Column.append(Column,boolean) on each pair of columns, and keeping
the meta-data from this dataframe. |
BooleanColumn |
booleanColumn(int columnIndex)
Returns the
BooleanColumn at the specified index. |
BooleanColumn |
booleanColumn(String columnName)
Returns the specified
BooleanColumn |
<T> Column<T> |
column(int columnIndex)
Returns the
Column at the specified index. |
<T> Column<T> |
column(String columnName)
Returns the specified
Column |
int |
columnCount()
Returns the number of columns in this dataframe.
|
int |
columnIndex(String columnName)
Returns the index of the specified column.
|
LinkedHashMap<String,Column<?>> |
columnMap()
Returns an ordered map where the entries are (name, column) pairs.
|
String |
columnName(int columnIndex)
Returns the column name at the specified index.
|
List<String> |
columnNames()
Returns a list of column names in this dataframe.
|
List<Column<?>> |
columns()
Returns a list of columns in this dataframe.
|
ColumnType<?> |
columnType(int columnIndex)
Returns the
column type at the specified index. |
ColumnType<?> |
columnType(String columnName)
Returns the
column type at the specified index. |
List<ColumnType<?>> |
columnTypes()
Returns a list of column types in this dataframe.
|
DataFrame |
copy()
Returns a deep copy of this dataframe.
|
default Cursor |
cursor()
Returns a
Cursor pointing at the first row in this dataframe. |
Cursor |
cursor(int rowIndex)
Returns a
Cursor at the specified row index. |
DateColumn |
dateColumn(int columnIndex)
Returns the
DateColumn at the specified index. |
DateColumn |
dateColumn(String columnName)
Returns the specified
DateColumn |
DateTimeColumn |
dateTimeColumn(int columnIndex)
Returns the
DateTimeColumn at the specified index. |
DateTimeColumn |
dateTimeColumn(String columnName)
Returns the specified
DateTimeColumn |
DecimalColumn |
decimalColumn(int columnIndex)
Returns the
DecimalColumn at the specified index. |
DecimalColumn |
decimalColumn(String columnName)
Returns the specified
DecimalColumn |
<T> Column<T> |
deriveColumn(ColumnType<T> type,
Function<Row,T> function)
Derive a new
Column from the rows of this dataframe. |
BooleanColumn |
deriveColumn(Predicate<Row> function)
Derive a new
BooleanColumn from the rows of this dataframe. |
DoubleColumn |
deriveColumn(ToDoubleFunction<Row> function)
Derive a new
DoubleColumn from the rows of this dataframe. |
FloatColumn |
deriveColumn(ToFloatFunction<Row> function)
Derive a new
FloatColumn from the rows of this dataframe. |
IntColumn |
deriveColumn(ToIntFunction<Row> function)
Derive a new
IntColumn from the rows of this dataframe. |
LongColumn |
deriveColumn(ToLongFunction<Row> function)
Derive a new
LongColumn from the rows of this dataframe. |
DoubleColumn |
doubleColumn(int columnIndex)
Returns the
DoubleColumn at the specified index. |
DoubleColumn |
doubleColumn(String columnName)
Returns the specified
DoubleColumn |
DataFrame |
dropColumns(Collection<String> columnNames)
Returns a new dataframe which excludes the specified columns.
|
DataFrame |
dropColumns(int... columnIndices)
Returns a new dataframe which excludes the specified columns.
|
DataFrame |
dropColumns(String... columnNames)
Returns a new dataframe which excludes the specified columns.
|
default DataFrame |
empty()
Returns an empty dataframe.
|
boolean |
equals(DataFrame df,
boolean dataOnly)
Tests this DataFrame against the specified one for equality.
|
DataFrame |
filter(Predicate<Row> criteria)
Returns a dataframe containing the rows which pass the specified
Predicate. |
DataFrame |
filterNulls()
Returns a dataframe containing the rows which do not contain any null values.
|
FloatColumn |
floatColumn(int columnIndex)
Returns the
FloatColumn at the specified index. |
FloatColumn |
floatColumn(String columnName)
Returns the specified
FloatColumn |
<T> T |
get(int rowIndex,
int columnIndex)
Returns the value for the specified row in the specified
Column. |
<T> T |
get(int rowIndex,
String columnName)
Returns the value for the specified row in the specified
Column. |
BigDecimal |
getBigDecimal(int rowIndex,
int columnIndex)
Returns the value for the specified row in the specified
DecimalColumn. |
BigDecimal |
getBigDecimal(int rowIndex,
String columnName)
Returns the value for the specified row in the specified
DecimalColumn. |
boolean |
getBoolean(int rowIndex,
int columnIndex)
boolean primitive specialization of get(int,int). |
boolean |
getBoolean(int rowIndex,
String columnName)
boolean primitive specialization of get(int,String). |
LocalDate |
getDate(int rowIndex,
int columnIndex)
Returns the value for the specified row in the specified
DateColumn. |
LocalDate |
getDate(int rowIndex,
String columnName)
Returns the value for the specified row in the specified
DateColumn. |
LocalDateTime |
getDateTime(int rowIndex,
int columnIndex)
Returns the value for the specified row in the specified
DateTimeColumn. |
LocalDateTime |
getDateTime(int rowIndex,
String columnName)
Returns the value for the specified row in the specified
DateTimeColumn. |
double |
getDouble(int rowIndex,
int columnIndex)
double primitive specialization of get(int,int). |
double |
getDouble(int rowIndex,
String columnName)
double primitive specialization of get(int,String). |
float |
getFloat(int rowIndex,
int columnIndex)
float primitive specialization of get(int,int). |
float |
getFloat(int rowIndex,
String columnName)
float primitive specialization of get(int,String). |
int |
getInt(int rowIndex,
int columnIndex)
int primitive specialization of get(int,int). |
int |
getInt(int rowIndex,
String columnName)
int primitive specialization of get(int,String). |
long |
getLong(int rowIndex,
int columnIndex)
long primitive specialization of get(int,int). |
long |
getLong(int rowIndex,
String columnName)
long primitive specialization of get(int,String). |
default double |
getOrDefaultDouble(int rowIndex,
int columnIndex,
double defaultValue)
Returns the value for the specified row in the specified
DoubleColumn, or the specified defaultValue if the value is
null. |
default double |
getOrDefaultDouble(int rowIndex,
String columnName,
double defaultValue)
Returns the value for the specified row in the specified
DoubleColumn, or the specified defaultValue if the value is
null. |
default float |
getOrDefaultFloat(int rowIndex,
int columnIndex,
float defaultValue)
Returns the value for the specified row in the specified
FloatColumn,
or the specified defaultValue if the value is null. |
default float |
getOrDefaultFloat(int rowIndex,
String columnName,
float defaultValue)
Returns the value for the specified row in the specified
FloatColumn,
or the specified defaultValue if the value is null. |
default int |
getOrDefaultInt(int rowIndex,
int columnIndex,
int defaultValue)
Returns the value for the specified row in the specified
IntColumn,
or the specified defaultValue if the value is null. |
default int |
getOrDefaultInt(int rowIndex,
String columnName,
int defaultValue)
Returns the value for the specified row in the specified
IntColumn,
or the specified defaultValue if the value is null. |
default long |
getOrDefaultLong(int rowIndex,
int columnIndex,
long defaultValue)
Returns the value for the specified row in the specified
LongColumn,
or the specified defaultValue if the value is null. |
default long |
getOrDefaultLong(int rowIndex,
String columnName,
long defaultValue)
Returns the value for the specified row in the specified
LongColumn,
or the specified defaultValue if the value is null. |
default long |
getOrDefaultShort(int rowIndex,
int columnIndex,
short defaultValue)
Returns the value for the specified row in the specified
ShortColumn,
or the specified defaultValue if the value is null. |
default long |
getOrDefaultShort(int rowIndex,
String columnName,
short defaultValue)
Returns the value for the specified row in the specified
ShortColumn,
or the specified defaultValue if the value is null. |
short |
getShort(int rowIndex,
int columnIndex)
short primitive specialization of get(int,int). |
short |
getShort(int rowIndex,
String columnName)
short primitive specialization of get(int,String). |
String |
getString(int rowIndex,
int columnIndex)
Returns the value for the specified row in the specified
StringColumn. |
String |
getString(int rowIndex,
String columnName)
Returns the value for the specified row in the specified
StringColumn. |
boolean |
hasKeyColumn()
Returns true if this dataframe has a key column.
|
default DataFrame |
head()
Returns a dataframe containing the first 10 rows from this dataframe, or this
dataframe if it contains fewer than 10 rows.
|
DataFrame |
head(int count)
Returns a dataframe containing the first
count rows from this
dataframe, or this dataframe if it contains fewer than count rows. |
DataFrame |
headTo(Object toKey)
Returns a dataframe containing the rows whose key column values are strictly
less than
toKey. |
DataFrame |
indexOrganize(int columnIndex)
Returns a new dataframe with rows sorted by the specified column.
|
DataFrame |
indexOrganize(String columnName)
Returns a new dataframe with rows sorted by the specified column.
|
IntColumn |
intColumn(int columnIndex)
Returns the
IntColumn at the specified index. |
IntColumn |
intColumn(String columnName)
Returns the specified
IntColumn |
boolean |
isNull(int rowIndex,
int columnIndex)
Returns true if the value is null in the specified
Column at the
specified row index. |
boolean |
isNull(int rowIndex,
String columnName)
Returns true if the value is null in the specified
Column at the
specified row index. |
DataFrame |
join(DataFrame df)
Perform a one-to-one inner join on this (left) dataframe with the specified
(right) dataframe by their key columns.
|
DataFrame |
join(DataFrame df,
String[] leftColumnNames,
String[] rightColumnNames)
Perform a one-to-many inner join on this (left) dataframe with the specified
(right) dataframe by building a hashtable index on the specified left
columns.
|
DataFrame |
joinLeftOneToMany(DataFrame df,
String rightColumnName)
Perform a one-to-many left join on this (left) dataframe with the specified
(right) dataframe using the key column from the left dataframe.
|
DataFrame |
joinManyToOne(DataFrame df,
String leftColumnName)
Perform a many-to-one inner join on this (left) dataframe with the specified
(right) dataframe using the key column from the right dataframe.
|
DataFrame |
joinOneToMany(DataFrame df,
String rightColumnName)
Perform a one-to-many inner join on this (left) dataframe with the specified
(right) dataframe using the key column from the left dataframe.
|
Integer |
keyColumnIndex()
Returns the index of the key column, or null if no key column has been
specified.
|
String |
keyColumnName()
Returns the key column name, or null if no key column has been specified.
|
ColumnType<?> |
keyColumnType()
Returns the key
column type, or null if no key column has
been specified. |
LongColumn |
longColumn(int columnIndex)
Returns the
LongColumn at the specified index. |
LongColumn |
longColumn(String columnName)
Returns the specified
LongColumn |
DataFrame |
sampleN(int sampleSize)
Returns a dataframe containing
sampleSize rows selected at random. |
DataFrame |
sampleX(double proportion)
Returns a dataframe containing
size()*proportion rows selected at
random. |
DataFrame |
selectColumns(int... columnIndices)
Returns a new dataframe which contains only the specified columns, in the
specified order.
|
DataFrame |
selectColumns(List<String> columnNames)
Returns a new dataframe which contains only the specified columns, in the
specified order.
|
DataFrame |
selectColumns(String... columnNames)
Returns a new dataframe which contains only the specified columns, in the
specified order.
|
ShortColumn |
shortColumn(int columnIndex)
Returns the
ShortColumn at the specified index. |
ShortColumn |
shortColumn(String columnName)
Returns the specified
ShortColumn |
default Spliterator<Row> |
spliterator() |
StringColumn |
stringColumn(int columnIndex)
Returns the
StringColumn at the specified index. |
StringColumn |
stringColumn(String columnName)
Returns the specified
StringColumn |
DataFrame |
subFrame(int fromIndex,
int toIndex)
Returns a dataframe containing the rows between the specified
fromIndex, inclusive, and toIndex, exclusive (if
fromIndex and toIndex are equal, the returned dataframe is
empty).
|
DataFrame |
subFrameByValue(Object fromKey,
boolean fromInclusive,
Object toKey,
boolean toInclusive)
Returns a dataframe containing the rows whose key column values are between
fromKey and toKey. |
default DataFrame |
subFrameByValue(Object fromKey,
Object toKey)
Returns a dataframe containing the rows whose key column values are greater
than or equal to
fromKey and strictly less than toKey. |
default DataFrame |
tail()
Returns a dataframe containing the last 10 rows from this dataframe, or this
dataframe if it contains fewer than 10 rows.
|
DataFrame |
tail(int count)
Returns a dataframe containing the last
count rows from this
dataframe, or this dataframe if it contains fewer than count rows. |
DataFrame |
tailFrom(Object fromKey)
Returns a dataframe containing the rows whose key column values are greater
than or equal to
fromKey. |
DateSeries |
toDateSeries(int columnIndex)
Returns a
DateSeries using the key column from this dataframe as the
date column in the time series, and using the specified column as the values
column in the time series. |
DateSeries |
toDateSeries(String columnName)
Returns a
DateSeries using the key column from this dataframe as the
date column in the time series, and using the specified column as the values
column in the time series. |
<K,V> Map<K,V> |
toMap(int columnIndex)
Returns a map keyed by the elements in the key column, with values from the
column at the specified index.
|
<K,V> Map<K,V> |
toMap(String columnName)
Returns a map keyed by the elements in the key column, with values from the
column at the specified index.
|
DataFrame |
withColumn(String columnName,
Column<?> column)
Returns a new dataframe which is a shallow copy of this one, but including
the specified column and column name.
|
DataFrame |
withColumns(DataFrame df)
Returns a new dataframe which is a shallow copy of this one, but including
the columns and column names from the provided dataframe.
|
DataFrame |
withColumns(LinkedHashMap<String,Column<?>> columns)
Returns a new dataframe which is a shallow copy of this one, but including
the specified columns and column names.
|
DataFrame |
withColumns(String[] columnNames,
Column<?>[] columns)
Returns a new dataframe which is a shallow copy of this one, but including
the specified columns and column names.
|
DataFrame |
withKeyColumn(int columnIndex)
Returns a new dataframe which is a shallow copy of this one, but with the key
column set to the specified column.
|
DataFrame |
withKeyColumn(String columnName)
Returns a new dataframe which is a shallow copy of this one, but with the key
column set to the specified column.
|
void |
writeCsvTo(File file)
Save this dataframe to an RFC
4180 compliant CSV file, encoded with UTF-8.
|
void |
writeCsvTo(OutputStream os)
Write this dataframe as an RFC
4180 compliant CSV to the specified
OutputStream, encoded with
UTF-8. |
void |
writeTo(File file)
Saves this dataframe to a file in a binary format.
|
default void |
writeTo(PreparedStatement ps)
Equivalent to
writeTo(ps, WriteToDbConfig.DEFAULT_CONFIG) |
void |
writeTo(PreparedStatement ps,
WriteToDbConfig config)
Writes this dataframe to the specified
PreparedStatement using the
specified configuration. |
void |
writeTo(WritableByteChannel channel)
Writes this dataframe to the specified
WritableByteChannel. |
int |
yyyymmdd(int rowIndex,
int columnIndex)
Returns the
yyyymmdd date for the specified row in the specified
DateColumn. |
int |
yyyymmdd(int rowIndex,
String columnName)
Returns the
yyyymmdd date for the specified row in the specified
DateColumn. |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, subList, toArray, toArrayparallelStream, removeIf, streamboolean equals(DataFrame df, boolean dataOnly)
dataOnly is true, otherwise compares column names
and keyColumnIndex() as well.df - - the dataframe to compare againstdataOnly - - only compares column data if true, otherwise compares
column names and keyColumnIndex() as welldataOnly
is true or the column names and keyColumnIndex() are the
same as well.DataFrame copy()
default Spliterator<Row> spliterator()
spliterator in interface Collection<Row>spliterator in interface Iterable<Row>spliterator in interface List<Row>Cursor cursor(int rowIndex)
Cursor at the specified row index.rowIndex - - the row indexCursor at the specified row index.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()default Cursor cursor()
Cursor pointing at the first row in this dataframe.Cursor pointing at the first row in this dataframe.IndexOutOfBoundsException - if this dataframe is empty<K,V> Map<K,V> toMap(int columnIndex)
K - - the key type. Must match the key column type.V - - the value type. Must match the specified column type.columnIndex - - index of a column in this dataframeIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()<K,V> Map<K,V> toMap(String columnName)
K - - the key type. Must match the key column type.V - - the value type. Must match the specified column type.columnName - - name of a column in this dataframeIllegalArgumentException - if columnName is not a recognized
column name in this dataframeDateSeries toDateSeries(int columnIndex)
DateSeries using the key column from this dataframe as the
date column in the time series, and using the specified column as the values
column in the time series.columnIndex - - index of a non-null DoubleColumn in this
dataframeDateSeries built from columns in this dataframe.IllegalStateException - if this dataframe does not have a key column of
ColumnType.DATE, or the specified
column is not a non-null column of
ColumnType.DOUBLE.DateSeries toDateSeries(String columnName)
DateSeries using the key column from this dataframe as the
date column in the time series, and using the specified column as the values
column in the time series.columnName - - name of a non-null DoubleColumn in this dataframeDateSeries built from columns in this dataframe.IllegalStateException - if this dataframe does not have a key column of
ColumnType.DATE, or the specified
column is not a non-null column of
ColumnType.DOUBLE.boolean hasKeyColumn()
Integer keyColumnIndex()
String keyColumnName()
ColumnType<?> keyColumnType()
column type, or null if no key column has
been specified.DataFrame withKeyColumn(int columnIndex)
columnIndex - - the key column indexIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()DataFrame withKeyColumn(String columnName)
columnName - - name of the column in this dataframeIllegalArgumentException - if columnName is not a recognized
column name in this dataframeDataFrame indexOrganize(int columnIndex)
columnIndex - - the key column indexIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()DataFrame indexOrganize(String columnName)
columnName - - name of the column in this dataframeIllegalArgumentException - if columnName is not a recognized
column name in this dataframeint columnCount()
int columnIndex(String columnName)
columnName - - name of the column in this dataframeIllegalArgumentException - if columnName is not a recognized
column name in this dataframeString columnName(int columnIndex)
columnIndex - - the column indexIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ColumnType<?> columnType(int columnIndex)
column type at the specified index.columnIndex - - the column indexIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ColumnType<?> columnType(String columnName)
column type at the specified index.columnName - - name of the column in this dataframeIllegalArgumentException - if columnName is not a recognized
column name in this dataframeLinkedHashMap<String,Column<?>> columnMap()
List<Column<?>> columns()
List<String> columnNames()
List<ColumnType<?>> columnTypes()
DataFrame withColumn(String columnName, Column<?> column)
columnName - - name of the column to be added or replacedcolumn - - the columnDataFrame withColumns(String[] columnNames, Column<?>[] columns)
columnNames - - names of the columns to be added or replacedcolumns - - the columnsIllegalArgumentException - if the two input arrays have different
lengthsDataFrame withColumns(LinkedHashMap<String,Column<?>> columns)
columns - - an ordered list of entries containing columns and column
namesDataFrame withColumns(DataFrame df)
df - - a dataframe whose columns will be included in the resultDataFrame selectColumns(List<String> columnNames)
columnNames - - the columns names to be included in the resultDataFrame selectColumns(String... columnNames)
columnNames - - the columns names to be included in the resultDataFrame selectColumns(int... columnIndices)
columnIndices - - the columns to be included in the resultDataFrame dropColumns(Collection<String> columnNames)
columnNames - - the columns names to be excluded from the resultDataFrame dropColumns(String... columnNames)
columnNames - - the columns names to be excluded from the resultDataFrame dropColumns(int... columnIndices)
columnIndices - - the columns to be excluded from the result<T> Column<T> column(int columnIndex)
Column at the specified index.T - - the return type. Must be compatible with the column
type. No attempt is made to convert between types beyond a
cast.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column type does not match the
return type.StringColumn stringColumn(int columnIndex)
StringColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a StringColumnDecimalColumn decimalColumn(int columnIndex)
DecimalColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
DecimalColumnBooleanColumn booleanColumn(int columnIndex)
BooleanColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
BooleanColumnIntColumn intColumn(int columnIndex)
IntColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a IntColumnLongColumn longColumn(int columnIndex)
LongColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a LongColumnShortColumn shortColumn(int columnIndex)
ShortColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a ShortColumnDoubleColumn doubleColumn(int columnIndex)
DoubleColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DoubleColumnFloatColumn floatColumn(int columnIndex)
FloatColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a FloatColumnDateColumn dateColumn(int columnIndex)
DateColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DateColumnDateTimeColumn dateTimeColumn(int columnIndex)
DateTimeColumn at the specified index.columnIndex - - index of the columnIndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
DateTimeColumn<T> Column<T> column(String columnName)
ColumnT - - the return type. Must be compatible with the column type.
No attempt is made to convert between types beyond a cast.columnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column type does not match the return
type.StringColumn stringColumn(String columnName)
StringColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a StringColumnDecimalColumn decimalColumn(String columnName)
DecimalColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DecimalColumnBooleanColumn booleanColumn(String columnName)
BooleanColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a BooleanColumnIntColumn intColumn(String columnName)
IntColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a IntColumnLongColumn longColumn(String columnName)
LongColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a LongColumnShortColumn shortColumn(String columnName)
ShortColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a ShortColumnDoubleColumn doubleColumn(String columnName)
DoubleColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DoubleColumnFloatColumn floatColumn(String columnName)
FloatColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a FloatColumnDateColumn dateColumn(String columnName)
DateColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DateColumnDateTimeColumn dateTimeColumn(String columnName)
DateTimeColumncolumnName - - column nameIllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a
DateTimeColumn<T> Column<T> deriveColumn(ColumnType<T> type, Function<Row,T> function)
Column from the rows of this dataframe. The new column
will have the same size as this dataframe, and each element will have been
derived from the corresponding row.T - - the return type. Must be compatible with the column type.
No attempt is made to convert between types beyond a cast.type - - the new column's typefunction - - the function used to compute column elements from dataframe
rowsClassCastException - if the column type does not match the return type.IntColumn deriveColumn(ToIntFunction<Row> function)
IntColumn from the rows of this dataframe. The new
column will have the same size as this dataframe, and each element will have
been derived from the corresponding row.function - - the function used to compute column elements from dataframe
rowsLongColumn deriveColumn(ToLongFunction<Row> function)
LongColumn from the rows of this dataframe. The new
column will have the same size as this dataframe, and each element will have
been derived from the corresponding row.function - - the function used to compute column elements from dataframe
rowsDoubleColumn deriveColumn(ToDoubleFunction<Row> function)
DoubleColumn from the rows of this dataframe. The new
column will have the same size as this dataframe, and each element will have
been derived from the corresponding row.function - - the function used to compute column elements from dataframe
rowsFloatColumn deriveColumn(ToFloatFunction<Row> function)
FloatColumn from the rows of this dataframe. The new
column will have the same size as this dataframe, and each element will have
been derived from the corresponding row.function - - the function used to compute column elements from dataframe
rowsBooleanColumn deriveColumn(Predicate<Row> function)
BooleanColumn from the rows of this dataframe. The new
column will have the same size as this dataframe, and each element will have
been derived from the corresponding row.function - - the function used to compute column elements from dataframe
rowsDataFrame sampleN(int sampleSize)
sampleSize rows selected at random.
The rows in the resulting dataframe will be in the same order as in this one.sampleSize - - the number of rows to sample from this dataframesampleSize rows selected at random.IndexOutOfBoundsException - if sampleSize is negative or is
greater than #size()DataFrame sampleX(double proportion)
size()*proportion rows selected at
random. The rows in the resulting dataframe will be in the same order as in
this one.proportion - - a number between 0.0 and 1.0 inclusivesize()*proportion rows selected at
random.DataFrame head(int count)
count rows from this
dataframe, or this dataframe if it contains fewer than count rows.count - - number of rows to return from the "top" or "head" of this
dataframe.count rows from this
dataframe.default DataFrame empty()
default DataFrame head()
DataFrame tail(int count)
count rows from this
dataframe, or this dataframe if it contains fewer than count rows.count - - number of rows to return from the "end" or "tail" of this
dataframe.count rows from this
dataframe.default DataFrame tail()
DataFrame subFrame(int fromIndex, int toIndex)
fromIndex - - index of the lowest row (inclusive)toIndex - - index of the highest row (exclusive)IndexOutOfBoundsException - if either index is negative or is greater
than List.size(), or if toIndex
is less than fromIndexDataFrame headTo(Object toKey)
toKey.toKey - high endpoint (exclusive) of the key column values in the
returned dataframetoKey.UnsupportedOperationException - if this dataframe does not contain a
key columnClassCastException - if toKey is not compatible with
this dataframe's key column typeNullPointerException - if toKey is nullDataFrame tailFrom(Object fromKey)
fromKey.fromKey - low endpoint (inclusive) of the key column values in the
returned dataframefromKey.UnsupportedOperationException - if this dataframe does not contain a
key columnClassCastException - if fromKey is not compatible
with this dataframe's key column typeNullPointerException - if fromKey is nulldefault DataFrame subFrameByValue(Object fromKey, Object toKey)
fromKey and strictly less than toKey.fromKey - low endpoint (inclusive) of the key column values in the
returned dataframetoKey - high endpoint (exclusive) of the key column values in the
returned dataframefromKey and strictly less than toKey.UnsupportedOperationException - if this dataframe does not contain a
key columnClassCastException - if either key is not compatible with
this dataframe's key column typeNullPointerException - if either key is nullDataFrame subFrameByValue(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive)
fromKey and toKey. If fromKey and toKey are
equal, the resulting dataframe is empty unless fromInclusive and toInclusive are both true.fromKey - low endpoint of the key column values in the returned
dataframefromInclusive - true if the low endpoint is to be included in the resulttoKey - high endpoint of the key column values in the returned
dataframetoInclusive - true if the high endpoint is to be included in the
resultfromKey and toKey.UnsupportedOperationException - if this dataframe does not contain a
key columnClassCastException - if either key is not compatible with
this dataframe's key column typeNullPointerException - if either key is nullDataFrame filter(Predicate<Row> criteria)
Predicate.criteria - - the Predicate used to filter the rows in this
dataframePredicate.DataFrame filterNulls()
DataFrame append(DataFrame df)
Column.append(Column) on each pair of columns, and keeping the
meta-data from this dataframe.df - - the dataframe to be appended to this oneIllegalArgumentException - if the column counts or types do not match
between the two dataframesDataFrame append(DataFrame df, boolean coerce)
Column.append(Column,boolean) on each pair of columns, and keeping
the meta-data from this dataframe.df - - the dataframe to be appended to this onecoerce - - specifies if a sole sorted column should be converted to a
heapIllegalArgumentException - if the column counts or types do not match
between the two dataframesDataFrame join(DataFrame df)
If the left dataframe has N columns and the right has M
columns then the resulting dataframe will have N + M - 1 columns,
starting with all N columns from the left dataframe, followed by the columns
from the right dataframe excluding the right key column. If the right
dataframe has any column names in common with the left, the duplicate right
column names will have a suffix appended to them in the result.
If the left dataframe has S rows and the right has T rows
then this join operation will use O(S + T) space and time. The space
overhead is approximately S + T bits. The result will contain at most
min(S, T) rows, and will be empty if the two key columns do not have
any elements in common.
df - - the right dataframe to be joined with this left oneIllegalArgumentException - if either dataframe does not have a key
column, or if the key columns do not have
the same type.DataFrame joinOneToMany(DataFrame df, String rightColumnName)
If the left dataframe has N columns and the right has M
columns then the resulting dataframe will have N + M - 1 columns,
starting with all N columns from the left dataframe, followed by the columns
from the right dataframe excluding the specified non-index column. If the
right dataframe has any column names in common with the left, the duplicate
right column names will have a suffix appended to them in the result.
If the left dataframe has S rows and the right has T rows
then this join operation will use O(T) space and run in
O(T*log(S)) time. The space overhead is approximately
T*(4 bytes + 1 bit).
df - - the right dataframe to be joined with this left onerightColumnName - - name of the column in the right dataframe which will
be matched against the key column from the left
dataframeIllegalArgumentException - if this dataframe does not have a key
column, or the specified column name is not
recognized in the right dataframe, or the
key column and specified column do not have
the same type.DataFrame joinManyToOne(DataFrame df, String leftColumnName)
If the left dataframe has N columns and the right has M
columns then the resulting dataframe will have N + M - 1 columns,
starting with all N columns from the left dataframe, followed by the columns
from the right dataframe excluding the key column. If the right dataframe has
any column names in common with the left, the duplicate right column names
will have a suffix appended to them in the result.
If the left dataframe has S rows and the right has T rows
then this join operation will use O(S) space and run in
O(S*log(T)) time. The space overhead is approximately
S*(4 bytes + 1 bit).
df - - the right dataframe to be joined with this left oneleftColumnName - - name of the column in the left dataframe which will
be matched against the key column from the right
dataframeIllegalArgumentException - if the specified dataframe does not have a
key column, or the specified column name is
not recognized in this dataframe, or the key
column and specified column do not have the
same type.DataFrame joinLeftOneToMany(DataFrame df, String rightColumnName)
null values filled in for the
columns from the right dataframe.
If the left dataframe has N columns and the right has M
columns then the resulting dataframe will have N + M - 1 columns,
starting with all N columns from the left dataframe, followed by the columns
from the right dataframe excluding the specified non-index column. If the
right dataframe has any column names in common with the left, the duplicate
right column names will have a suffix appended to them in the result.
If the left dataframe has S rows and the right has T rows
then this join operation will use O(S + T) space and run in
O(T*log(S)) time. The space overhead is approximately S bits, plus
T*(4 bytes + 1 bit).
df - - the right dataframe to be joined with this left onerightColumnName - - name of the column in the right dataframe which will
be matched against the key column from the left
dataframeIllegalArgumentException - if this dataframe does not have a key
column, or the specified column name is not
recognized in the right dataframe, or the
key column and specified column do not have
the same type.DataFrame join(DataFrame df, String[] leftColumnNames, String[] rightColumnNames)
If the left dataframe has N columns, the right has M columns,
and the hashtable index has H columns then the resulting dataframe
will have N + M - H columns, starting with all N columns from the
left dataframe, followed by the columns from the right dataframe excluding
the hashtable index columns. If the right dataframe has any column names in
common with the left, the duplicate right column names will have a suffix
appended to them in the result.
If the left dataframe has S rows and the right has T rows
then this join operation will use O(S + T) space and time. The space
overhead is approximately T bits, plus the space required by an
<Integer,Integer> HashMap with S entries,
plus an additional S*8 bytes.
df - - the right dataframe to be joined with this left oneleftColumnNames - - names of columns in this (left) dataframe, which
taken together form a unique indexrightColumnNames - - corresponding columns in the specified (right)
dataframeIllegalStateException - if the left columns taken together do not
form a unique indexIllegalArgumentException - if either list of column names is empty, if
the two lists do not have the same length,
if the respective columns do not have the
same types, or if any of the column names
are not recognized.void writeTo(File file) throws IOException
file - - the file to be (over)written.IOException - if some I/O error occursvoid writeTo(WritableByteChannel channel) throws IOException
WritableByteChannel.channel - - the channel to be written toIOException - if some I/O error occursvoid writeCsvTo(File file) throws IOException
Individual elements are written using their toString methods.
null values are written as empty fields. For column type STRING,
empty strings are written as "".
file - - the file to be (over)written.IOException - if some I/O error occursvoid writeCsvTo(OutputStream os) throws IOException
OutputStream, encoded with
UTF-8.
Individual elements are written using their toString methods.
null values are written as empty fields. For column type STRING,
empty strings are written as "".
os - - the output stream to be written to. OutputStream will be closed
by this method.IOException - if some I/O error occursvoid writeTo(PreparedStatement ps, WriteToDbConfig config) throws SQLException
PreparedStatement using the
specified configuration.
The connection returned by Statement.getConnection() must
have autocommit turned off.
ps - - the PreparedStatement to write rows toconfig - - the configuration for writing this
dataframe to the PreparedStatement.SQLException - if some SQL or database error occursIllegalStateException - if the connection used to create the
PreparedStatement has
autocommit turned on.WriteToDbConfigdefault void writeTo(PreparedStatement ps) throws SQLException
writeTo(ps, WriteToDbConfig.DEFAULT_CONFIG)ps - - the PreparedStatement to write rows toSQLException - if some SQL or database error occursboolean isNull(int rowIndex,
int columnIndex)
Column at the
specified row index.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.Column at the
specified row index.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()boolean isNull(int rowIndex,
String columnName)
Column at the
specified row index.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.Column at the
specified row index.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.<T> T get(int rowIndex,
int columnIndex)
Column.T - - the return type. Must be compatible with the column
type. No attempt is made to convert between types beyond a
cast.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.Column.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column type does not match the
return type.<T> T get(int rowIndex,
String columnName)
Column.T - - the return type. Must be compatible with the column type.
No attempt is made to convert between types beyond a cast.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.Column.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column type does not match the
return type.String getString(int rowIndex, int columnIndex)
StringColumn.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.StringColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a StringColumnString getString(int rowIndex, String columnName)
StringColumn.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.StringColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DateColumnBigDecimal getBigDecimal(int rowIndex, int columnIndex)
DecimalColumn.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.DecimalColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a StringColumnBigDecimal getBigDecimal(int rowIndex, String columnName)
DecimalColumn.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.DecimalColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DateColumnboolean getBoolean(int rowIndex,
int columnIndex)
boolean primitive specialization of get(int,int).rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.BooleanColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
BooleanColumnboolean getBoolean(int rowIndex,
String columnName)
boolean primitive specialization of get(int,String).rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.BooleanColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a
BooleanColumnint getInt(int rowIndex,
int columnIndex)
int primitive specialization of get(int,int).rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.IntColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a IntColumnint getInt(int rowIndex,
String columnName)
int primitive specialization of get(int,String).rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.IntColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not an IntColumndefault int getOrDefaultInt(int rowIndex,
int columnIndex,
int defaultValue)
IntColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.defaultValue - - the value to return instead of nullIntColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an IntColumndefault int getOrDefaultInt(int rowIndex,
String columnName,
int defaultValue)
IntColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.defaultValue - - the value to return instead of nullIntColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not an IntColumnlong getLong(int rowIndex,
int columnIndex)
long primitive specialization of get(int,int).rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.LongColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a LongColumnlong getLong(int rowIndex,
String columnName)
long primitive specialization of get(int,String).rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.LongColumn.IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a LongColumndefault long getOrDefaultLong(int rowIndex,
int columnIndex,
long defaultValue)
LongColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.defaultValue - - the value to return instead of nullLongColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an LongColumndefault long getOrDefaultLong(int rowIndex,
String columnName,
long defaultValue)
LongColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.defaultValue - - the value to return instead of nullLongColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not an LongColumnshort getShort(int rowIndex,
int columnIndex)
short primitive specialization of get(int,int).rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.ShortColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a ShortColumnshort getShort(int rowIndex,
String columnName)
short primitive specialization of get(int,String).rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.ShortColumn.IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a ShortColumndefault long getOrDefaultShort(int rowIndex,
int columnIndex,
short defaultValue)
ShortColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.defaultValue - - the value to return instead of nullShortColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an ShortColumndefault long getOrDefaultShort(int rowIndex,
String columnName,
short defaultValue)
ShortColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.defaultValue - - the value to return instead of nullShortColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not an ShortColumndouble getDouble(int rowIndex,
int columnIndex)
double primitive specialization of get(int,int).rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.DoubleColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DoubleColumndouble getDouble(int rowIndex,
String columnName)
double primitive specialization of get(int,String).rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.DoubleColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DoubleColumndefault double getOrDefaultDouble(int rowIndex,
int columnIndex,
double defaultValue)
DoubleColumn, or the specified defaultValue if the value is
null.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.defaultValue - - the value to return instead of nullDoubleColumn, or the specified defaultValue if the
value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an
DoubleColumndefault double getOrDefaultDouble(int rowIndex,
String columnName,
double defaultValue)
DoubleColumn, or the specified defaultValue if the value is
null.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.defaultValue - - the value to return instead of nullDoubleColumn, or the specified defaultValue if the
value is null.IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not an DoubleColumnfloat getFloat(int rowIndex,
int columnIndex)
float primitive specialization of get(int,int).rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.FloatColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a FloatColumnfloat getFloat(int rowIndex,
String columnName)
float primitive specialization of get(int,String).rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.FloatColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a FloatColumndefault float getOrDefaultFloat(int rowIndex,
int columnIndex,
float defaultValue)
FloatColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.defaultValue - - the value to return instead of nullFloatColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an FloatColumndefault float getOrDefaultFloat(int rowIndex,
String columnName,
float defaultValue)
FloatColumn,
or the specified defaultValue if the value is null.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.defaultValue - - the value to return instead of nullFloatColumn,
or the specified defaultValue if the value is null.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not an FloatColumnLocalDate getDate(int rowIndex, int columnIndex)
DateColumn.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.DateColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DateColumnLocalDate getDate(int rowIndex, String columnName)
DateColumn.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.DateColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DateColumnint yyyymmdd(int rowIndex,
int columnIndex)
yyyymmdd date for the specified row in the specified
DateColumn.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.yyyymmdd date for the specified row in the specified
DateColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DateColumnint yyyymmdd(int rowIndex,
String columnName)
yyyymmdd date for the specified row in the specified
DateColumn.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.yyyymmdd date for the specified row in the specified
DateColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a DateColumnLocalDateTime getDateTime(int rowIndex, int columnIndex)
DateTimeColumn.rowIndex - - the row indexcolumnIndex - - index of the column in this DataFrame.DateTimeColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
DateTimeColumnLocalDateTime getDateTime(int rowIndex, String columnName)
DateTimeColumn.rowIndex - - the row indexcolumnName - - name of the column in this DataFrame.DateTimeColumn.IndexOutOfBoundsException - if rowIndex is negative or is not
less than List.size()IllegalArgumentException - if columnName is not a recognized
column name in this dataframe.ClassCastException - if the column is not a
DateTimeColumnCopyright © 2020. All rights reserved.