public interface Row
DataFrame, which implements the
List<Row> interface. Rows do not store any data, rather they index
into a dataframe which stores the data in columns.
Row implements equals and hashCode. Two rows are equals iff they have the
same columnCount() and the values are equal in each column.
| Modifier and Type | Method and Description |
|---|---|
int |
columnCount()
Returns the number of columns in the parent
DataFrame. |
<T> T |
get(int columnIndex)
Returns the value for this row in the specified
Column. |
<T> T |
get(String columnName)
Returns the value for this row in the specified
Column. |
BigDecimal |
getBigDecimal(int columnIndex)
Returns the value for this row in the specified
DecimalColumn. |
BigDecimal |
getBigDecimal(String columnName)
Returns the value for this row in the specified
DecimalColumn. |
boolean |
getBoolean(int columnIndex)
boolean primitive specialization of get(int). |
boolean |
getBoolean(String columnName)
boolean primitive specialization of get(int). |
LocalDate |
getDate(int columnIndex)
Returns the value for this row in the specified
DateColumn. |
LocalDate |
getDate(String columnName)
Returns the value for this row in the specified
DateColumn. |
LocalDateTime |
getDateTime(int columnIndex)
Returns the value for this row in the specified
DateTimeColumn. |
LocalDateTime |
getDateTime(String columnName)
Returns the value for this row in the specified
DateTimeColumn. |
double |
getDouble(int columnIndex)
double primitive specialization of get(int). |
double |
getDouble(String columnName)
double primitive specialization of get(int). |
float |
getFloat(int columnIndex)
float primitive specialization of get(int). |
float |
getFloat(String columnName)
float primitive specialization of get(int). |
int |
getInt(int columnIndex)
int primitive specialization of get(int). |
int |
getInt(String columnName)
int primitive specialization of get(int). |
long |
getLong(int columnIndex)
long primitive specialization of get(int). |
long |
getLong(String columnName)
long primitive specialization of get(int). |
default double |
getOrDefaultDouble(int columnIndex,
double defaultValue)
Returns the value for this row in the specified
DoubleColumn, or the
specified defaultValue if the value is null. |
default double |
getOrDefaultDouble(String columnName,
double defaultValue)
Returns the value for this row in the specified
DoubleColumn, or the
specified defaultValue if the value is null. |
default float |
getOrDefaultFloat(int columnIndex,
float defaultValue)
Returns the value for this row in the specified
FloatColumn, or the
specified defaultValue if the value is null. |
default float |
getOrDefaultFloat(String columnName,
float defaultValue)
Returns the value for this row in the specified
FloatColumn, or the
specified defaultValue if the value is null. |
default int |
getOrDefaultInt(int columnIndex,
int defaultValue)
Returns the value for this row in the specified
IntColumn, or the
specified defaultValue if the value is null. |
default int |
getOrDefaultInt(String columnName,
int defaultValue)
Returns the value for this row in the specified
IntColumn, or the
specified defaultValue if the value is null. |
default long |
getOrDefaultLong(int columnIndex,
long defaultValue)
Returns the value for this row in the specified
LongColumn, or the
specified defaultValue if the value is null. |
default long |
getOrDefaultLong(String columnName,
long defaultValue)
Returns the value for this row in the specified
LongColumn, or the
specified defaultValue if the value is null. |
default short |
getOrDefaultShort(int columnIndex,
short defaultValue)
Returns the value for this row in the specified
ShortColumn, or the
specified defaultValue if the value is null. |
default short |
getOrDefaultShort(String columnName,
short defaultValue)
Returns the value for this row in the specified
ShortColumn, or the
specified defaultValue if the value is null. |
short |
getShort(int columnIndex)
short primitive specialization of get(int). |
short |
getShort(String columnName)
short primitive specialization of get(int). |
String |
getString(int columnIndex)
Returns the value for this row in the specified
StringColumn. |
String |
getString(String columnName)
Returns the value for this row in the specified
StringColumn. |
boolean |
isNull(int columnIndex)
Returns true if the value is null in the specified
Column. |
boolean |
isNull(String columnName)
Returns true if the value is null in the specified
Column. |
int |
rowIndex()
Returns the row index in the parent
DataFrame, ranging from zero to
dataframe size (exclusive). |
int |
yyyymmdd(int columnIndex)
Returns the
yyyymmdd date for this row in the specified
DateColumn. |
int |
yyyymmdd(String columnName)
Returns the
yyyymmdd date for this row in the specified
DateColumn. |
int rowIndex()
DataFrame, ranging from zero to
dataframe size (exclusive).int columnCount()
DataFrame.DataFrame.boolean isNull(int columnIndex)
Column.columnIndex - - index of the column in the parent DataFrame.Column.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()boolean isNull(String columnName)
Column.columnName - - name of the column in the parent DataFrame.Column.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.<T> T get(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.columnIndex - - index of the column in the parent DataFrame.Column.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(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.columnName - - name of the column in the parent DataFrame.Column.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column type does not match the return
type.boolean getBoolean(int columnIndex)
boolean primitive specialization of get(int).columnIndex - - index of the column in the parent DataFrame.BooleanColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
BooleanColumnboolean getBoolean(String columnName)
boolean primitive specialization of get(int).columnName - - name of the column in the parent DataFrame.BooleanColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a BooleanColumnint getInt(int columnIndex)
int primitive specialization of get(int).columnIndex - - index of the column in the parent DataFrame.IntColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a IntColumnint getInt(String columnName)
int primitive specialization of get(int).columnName - - name of the column in the parent DataFrame.IntColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not an IntColumndefault int getOrDefaultInt(int columnIndex,
int defaultValue)
IntColumn, or the
specified defaultValue if the value is null.columnIndex - - index of the column in the parent DataFrame.defaultValue - - the value to return instead of nullIntColumn, or the
specified defaultValue if the value is null.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an IntColumndefault int getOrDefaultInt(String columnName, int defaultValue)
IntColumn, or the
specified defaultValue if the value is null.columnName - - name of the column in the parent DataFrame.defaultValue - - the value to return instead of nullIntColumn, or the
specified defaultValue if the value is null.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not an IntColumnlong getLong(int columnIndex)
long primitive specialization of get(int).columnIndex - - index of the column in the parent DataFrame.LongColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a LongColumnlong getLong(String columnName)
long primitive specialization of get(int).columnName - - name of the column in the parent DataFrame.LongColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a LongColumndefault long getOrDefaultLong(int columnIndex,
long defaultValue)
LongColumn, or the
specified defaultValue if the value is null.columnIndex - - index of the column in the parent DataFrame.defaultValue - - the value to return instead of nullLongColumn, or the
specified defaultValue if the value is null.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an LongColumndefault long getOrDefaultLong(String columnName, long defaultValue)
LongColumn, or the
specified defaultValue if the value is null.columnName - - name of the column in the parent 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 the parent dataframe.ClassCastException - if the column is not an LongColumnshort getShort(int columnIndex)
short primitive specialization of get(int).columnIndex - - index of the column in the parent DataFrame.ShortColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a ShortColumnshort getShort(String columnName)
short primitive specialization of get(int).columnName - - name of the column in the parent DataFrame.ShortColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a ShortColumndefault short getOrDefaultShort(int columnIndex,
short defaultValue)
ShortColumn, or the
specified defaultValue if the value is null.columnIndex - - index of the column in the parent DataFrame.defaultValue - - the value to return instead of nullShortColumn, or the
specified defaultValue if the value is null.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an ShortColumndefault short getOrDefaultShort(String columnName, short defaultValue)
ShortColumn, or the
specified defaultValue if the value is null.columnName - - name of the column in the parent DataFrame.defaultValue - - the value to return instead of nullShortColumn, or the
specified defaultValue if the value is null.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not an ShortColumndouble getDouble(int columnIndex)
double primitive specialization of get(int).columnIndex - - index of the column in the parent DataFrame.DoubleColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DoubleColumndouble getDouble(String columnName)
double primitive specialization of get(int).columnName - - name of the column in the parent DataFrame.DoubleColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a DoubleColumndefault double getOrDefaultDouble(int columnIndex,
double defaultValue)
DoubleColumn, or the
specified defaultValue if the value is null.columnIndex - - index of the column in the parent DataFrame.defaultValue - - the value to return instead of nullDoubleColumn, or the
specified defaultValue if the value is null.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an
DoubleColumndefault double getOrDefaultDouble(String columnName, double defaultValue)
DoubleColumn, or the
specified defaultValue if the value is null.columnName - - name of the column in the parent 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 the parent dataframe.ClassCastException - if the column is not an DoubleColumnfloat getFloat(int columnIndex)
float primitive specialization of get(int).columnIndex - - index of the column in the parent DataFrame.FloatColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a FloatColumnfloat getFloat(String columnName)
float primitive specialization of get(int).columnName - - name of the column in the parent DataFrame.FloatColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a FloatColumndefault float getOrDefaultFloat(int columnIndex,
float defaultValue)
FloatColumn, or the
specified defaultValue if the value is null.columnIndex - - index of the column in the parent DataFrame.defaultValue - - the value to return instead of nullFloatColumn, or the
specified defaultValue if the value is null.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not an FloatColumndefault float getOrDefaultFloat(String columnName, float defaultValue)
FloatColumn, or the
specified defaultValue if the value is null.columnName - - name of the column in the parent DataFrame.defaultValue - - the value to return instead of nullFloatColumn, or the
specified defaultValue if the value is null.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not an FloatColumnint yyyymmdd(int columnIndex)
yyyymmdd date for this row in the specified
DateColumn.columnIndex - - index of the column in the parent DataFrame.yyyymmdd date for this row in the specified
DateColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DateColumnint yyyymmdd(String columnName)
yyyymmdd date for this row in the specified
DateColumn.columnName - - name of the column in the parent DataFrame.yyyymmdd date for this row in the specified
DateColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a DateColumnString getString(int columnIndex)
StringColumn.columnIndex - - index of the column in the parent DataFrame.StringColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a StringColumnString getString(String columnName)
StringColumn.columnName - - name of the column in the parent DataFrame.StringColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a DateColumnBigDecimal getBigDecimal(int columnIndex)
DecimalColumn.columnIndex - - index of the column in the parent DataFrame.DecimalColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
DecimalColumnBigDecimal getBigDecimal(String columnName)
DecimalColumn.columnName - - name of the column in the parent DataFrame.DecimalColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a DecimalColumnLocalDate getDate(int columnIndex)
DateColumn.columnIndex - - index of the column in the parent DataFrame.DateColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a DateColumnLocalDate getDate(String columnName)
DateColumn.columnName - - name of the column in the parent DataFrame.DateColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a DateColumnLocalDateTime getDateTime(int columnIndex)
DateTimeColumn.columnIndex - - index of the column in the parent DataFrame.DateTimeColumn.IndexOutOfBoundsException - if columnIndex is negative or is
not less than columnCount()ClassCastException - if the column is not a
DateTimeColumnLocalDateTime getDateTime(String columnName)
DateTimeColumn.columnName - - name of the column in the parent DataFrame.DateTimeColumn.IllegalArgumentException - if columnName is not a recognized
column name in the parent dataframe.ClassCastException - if the column is not a
DateTimeColumnCopyright © 2020. All rights reserved.