public class Row extends Object implements Iterator<Row>
Implementation Note: The row is always implemented over a TableSlice. If the constructor argument is a table, it is wrapped by a slice over the whole table.
Constructor | Description |
---|---|
Row(Table table) |
Constructs a Row object for the given table
|
Row(Table table,
int rowNumber) |
Constructs a Row object for the given Table, with the Row positioned at the given 0-based index
|
Row(TableSlice tableSlice) |
Constructs a Row object for the given TableSlice
|
Row(TableSlice tableSlice,
int rowNumber) |
Constructs a Row object for the given TableSlice, with the Row positioned at the given 0-based
index
|
Modifier and Type | Method | Description |
---|---|---|
void |
at(int rowNumber) |
Moves this Row to the given 0-based row index
|
int |
columnCount() |
Returns the number of columns in this Row
|
List<String> |
columnNames() |
Returns a list containing the names of each column in the row
|
Boolean |
getBoolean(int columnIndex) |
Returns a Boolean value from this Row at the given column index.
|
Boolean |
getBoolean(String columnName) |
Returns a Boolean value from this Row at the column of the given name.
|
byte |
getBooleanAsByte(int columnIndex) |
Returns an element from a Boolean column in its internal byte form, avoiding boxing
|
byte |
getBooleanAsByte(String columnName) |
Returns an element from a Boolean column in its internal byte form, avoiding boxing
|
ColumnType |
getColumnType(String columnName) |
Returns the type of the named column
|
LocalDate |
getDate(int columnIndex) |
Returns a LocalDate value from this Row at the column with the given index.
|
LocalDate |
getDate(String columnName) |
Returns a LocalDate value from this Row at the column of the given name.
|
LocalDateTime |
getDateTime(int columnIndex) |
Returns a LocalDateTime from this Row at the column with the given index.
|
LocalDateTime |
getDateTime(String columnName) |
Returns a LocalDateTime value from this Row at the column of the given name.
|
double |
getDouble(int columnIndex) |
Returns a double from this Row at the column with the given index.
|
double |
getDouble(String columnName) |
Returns a double from this Row at the column of the given name.
|
float |
getFloat(int columnIndex) |
Returns a float from this Row at the column with the given index.
|
float |
getFloat(String columnName) |
Returns a float from this Row at the column of the given name.
|
Instant |
getInstant(int columnIndex) |
Returns an Instant from this Row at the column with the given index.
|
Instant |
getInstant(String columnName) |
Returns an Instant value from this Row at the column of the given name.
|
int |
getInt(int columnIndex) |
Returns an int from this Row at the column with the given index.
|
int |
getInt(String columnName) |
Returns an int from this Row at the column of the given name.
|
long |
getLong(int columnIndex) |
Returns a long from this Row at the column with the given index.
|
long |
getLong(String columnName) |
Returns a long from this Row at the column of the given name.
|
double |
getNumber(String columnName) |
Returns a double representing the value held in the column with the given name at this row, for
any numeric column type
|
Object |
getObject(int columnIndex) |
Returns an Object representing the LocalTime from this Row at the column with the given index.
|
Object |
getObject(String columnName) |
Returns an Object representing the value from this Row at the column of the given name.
|
int |
getPackedDate(int columnIndex) |
Returns an int representing the LocalTime from this Row at the column with the given index.
|
int |
getPackedDate(String columnName) |
Returns an int representing the LocalDate from this Row at the column of the given name.
|
long |
getPackedDateTime(int columnIndex) |
Returns an long representing the LocalTime from this Row at the column with the given index.
|
long |
getPackedDateTime(String columnName) |
Returns a long representing the LocalDateTime from this Row at the column of the given name.
|
long |
getPackedInstant(int columnIndex) |
Returns an long representing the LocalTime from this Row at the column with the given index.
|
long |
getPackedInstant(String columnName) |
Returns a long representing the Instant from this Row at the column of the given name.
|
int |
getPackedTime(int columnIndex) |
Returns an int representing the LocalTime from this Row at the column with the given index.
|
int |
getPackedTime(String columnName) |
Returns an int representing the LocalTime from this Row at the column of the given name.
|
int |
getRowNumber() |
Returns the zero-based index of the current position of this Row
|
short |
getShort(int columnIndex) |
Returns a short value from this Row at the column with the given index.
|
short |
getShort(String columnName) |
Returns a short from this Row at the column of the given name.
|
String |
getString(int columnIndex) |
Returns a String value from this Row at the column with the given index.
|
String |
getString(String columnName) |
Returns a String from this Row at the column of the given name.
|
String |
getText(int columnIndex) |
Returns a String value from this Row at the column with the given index.
|
String |
getText(String columnName) |
Returns a String representing the text from this Row at the column of the given name.
|
LocalTime |
getTime(int columnIndex) |
Returns a LocalTime value from this Row at the column with the given index.
|
LocalTime |
getTime(String columnName) |
Returns a LocalTime value from this Row at the column of the given name.
|
boolean |
hasNext() |
Returns true if there's at least one more row beyond the current one.
|
boolean |
isMissing(String columnName) |
Returns true if the value at columnName is missing, and false otherwise
|
Row |
next() |
Increments the row pointer, making the next row's data accessible
|
void |
setBoolean(int columnIndex,
boolean value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setBoolean(String columnName,
boolean value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setDate(int columnIndex,
LocalDate value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setDate(String columnName,
LocalDate value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setDateTime(int columnIndex,
LocalDateTime value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setDateTime(String columnName,
LocalDateTime value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setDouble(int columnIndex,
double value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setDouble(String columnName,
double value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setFloat(int columnIndex,
float value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setFloat(String columnName,
float value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setInstant(int columnIndex,
Instant value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setInstant(String columnName,
Instant value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setInt(int columnIndex,
int value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setInt(String columnName,
int value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setLong(int columnIndex,
long value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setLong(String columnName,
long value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setMissing(int columnIndex) |
Sets the value of the given column at this Row to the appropriate missing-value indicator for
the column type.
|
void |
setMissing(String columnName) |
Sets the value of the given column at this Row to the appropriate missing-value indicator for
the column type.
|
void |
setShort(int columnIndex,
short value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setShort(String columnName,
short value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setString(int columnIndex,
String value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setString(String columnName,
String value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setText(int columnIndex,
String value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setText(String columnName,
String value) |
Sets the value of the column with the given name at this Row to the given value.
|
void |
setTime(int columnIndex,
LocalTime value) |
Sets the value of the column at the given index and this Row to the given value.
|
void |
setTime(String columnName,
LocalTime value) |
Sets the value of the column with the given name at this Row to the given value.
|
String |
toString() |
forEachRemaining, remove
public Row(Table table)
public Row(TableSlice tableSlice)
public Row(Table table, int rowNumber)
public Row(TableSlice tableSlice, int rowNumber)
public void at(int rowNumber)
public int columnCount()
public List<String> columnNames()
public Boolean getBoolean(int columnIndex)
public byte getBooleanAsByte(int columnIndex)
public byte getBooleanAsByte(String columnName)
public Boolean getBoolean(String columnName)
public LocalDate getDate(String columnName)
public LocalDate getDate(int columnIndex)
public LocalDateTime getDateTime(int columnIndex)
public LocalDateTime getDateTime(String columnName)
public Instant getInstant(int columnIndex)
public Instant getInstant(String columnName)
public double getDouble(int columnIndex)
public double getDouble(String columnName)
public float getFloat(int columnIndex)
public float getFloat(String columnName)
public int getInt(int columnIndex)
public int getInt(String columnName)
public long getLong(int columnIndex)
public long getLong(String columnName)
public Object getObject(String columnName)
public Object getObject(int columnIndex)
public int getPackedDate(String columnName)
public int getPackedDate(int columnIndex)
public long getPackedInstant(int columnIndex)
public long getPackedInstant(String columnName)
public long getPackedDateTime(String columnName)
public long getPackedDateTime(int columnIndex)
public int getPackedTime(String columnName)
public int getPackedTime(int columnIndex)
public short getShort(int columnIndex)
public int getRowNumber()
public String getString(int columnIndex)
public short getShort(String columnName)
public String getText(String columnName)
public String getText(int columnIndex)
public LocalTime getTime(String columnName)
public LocalTime getTime(int columnIndex)
public String getString(String columnName)
public boolean isMissing(String columnName)
public boolean hasNext()
public Row next()
public void setMissing(int columnIndex)
public void setMissing(String columnName)
public void setBoolean(int columnIndex, boolean value)
public void setBoolean(String columnName, boolean value)
public void setDate(int columnIndex, LocalDate value)
public void setDate(String columnName, LocalDate value)
public void setDateTime(int columnIndex, LocalDateTime value)
public void setDateTime(String columnName, LocalDateTime value)
public void setInstant(int columnIndex, Instant value)
public void setInstant(String columnName, Instant value)
public void setDouble(int columnIndex, double value)
public void setDouble(String columnName, double value)
public void setFloat(int columnIndex, float value)
public void setFloat(String columnName, float value)
public void setInt(int columnIndex, int value)
public void setInt(String columnName, int value)
public void setLong(int columnIndex, long value)
public void setLong(String columnName, long value)
public void setShort(int columnIndex, short value)
public void setShort(String columnName, short value)
public void setString(int columnIndex, String value)
public void setString(String columnName, String value)
public void setText(int columnIndex, String value)
public void setText(String columnName, String value)
public void setTime(int columnIndex, LocalTime value)
public double getNumber(String columnName)
public ColumnType getColumnType(String columnName)
public void setTime(String columnName, LocalTime value)
Copyright © 2021. All rights reserved.