@InterfaceAudience.Public @InterfaceStability.Evolving public class RowResult extends Object
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getBinary(int columnIndex)
Get the specified column's binary data.
|
ByteBuffer |
getBinary(String columnName)
Get the specified column's binary data.
|
byte[] |
getBinaryCopy(int columnIndex)
Get a copy of the specified column's binary data.
|
byte[] |
getBinaryCopy(String columnName)
Get a copy of the specified column's binary data.
|
boolean |
getBoolean(int columnIndex)
Get the specified column's boolean
|
boolean |
getBoolean(String columnName)
Get the specified column's boolean
|
byte |
getByte(int columnIndex)
Get the specified column's byte
|
byte |
getByte(String columnName)
Get the specified column's byte
|
Schema |
getColumnProjection()
Get the schema used for this scanner's column projection.
|
Type |
getColumnType(int columnIndex)
Get the type of a column in this result.
|
Type |
getColumnType(String columnName)
Get the type of a column in this result.
|
BigDecimal |
getDecimal(int columnIndex)
Get the specified column's Decimal.
|
BigDecimal |
getDecimal(String columnName)
Get the specified column's Decimal.
|
double |
getDouble(int columnIndex)
Get the specified column's double
|
double |
getDouble(String columnName)
Get the specified column's double
|
float |
getFloat(int columnIndex)
Get the specified column's float
|
float |
getFloat(String columnName)
Get the specified column's float
|
int |
getInt(int columnIndex)
Get the specified column's integer
|
int |
getInt(String columnName)
Get the specified column's integer
|
long |
getLong(int columnIndex)
Get the specified column's long
If this is a UNIXTIME_MICROS column, the long value corresponds to a number of microseconds
since midnight, January 1, 1970 UTC.
|
long |
getLong(String columnName)
Get the specified column's long
If this is a UNIXTIME_MICROS column, the long value corresponds to a number of microseconds
since midnight, January 1, 1970 UTC.
|
Schema |
getSchema()
Get the schema associated with this result.
|
short |
getShort(int columnIndex)
Get the specified column's short
|
short |
getShort(String columnName)
Get the specified column's short
|
String |
getString(int columnIndex)
Get the specified column's string.
|
String |
getString(String columnName)
Get the specified column's string.
|
Timestamp |
getTimestamp(int columnIndex)
Get the specified column's Timestamp.
|
Timestamp |
getTimestamp(String columnName)
Get the specified column's Timestamp.
|
boolean |
isNull(int columnIndex)
Get if the specified column is NULL
|
boolean |
isNull(String columnName)
Get if the specified column is NULL
|
String |
rowToString()
Return the actual data from this row in a stringified key=value
form.
|
String |
toString() |
String |
toStringLongFormat() |
public int getInt(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typepublic int getInt(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic short getShort(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typepublic short getShort(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic boolean getBoolean(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typepublic boolean getBoolean(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic byte getByte(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typepublic byte getByte(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic long getLong(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist or is nullpublic long getLong(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is nullIndexOutOfBoundsException
- if the column doesn't existpublic float getFloat(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typepublic float getFloat(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic double getDouble(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typepublic double getDouble(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic BigDecimal getDecimal(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist or is nullpublic BigDecimal getDecimal(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is nullIndexOutOfBoundsException
- if the column doesn't existpublic Timestamp getTimestamp(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist,
is null, is unset, or the type doesn't match the column's typepublic Timestamp getTimestamp(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null, is unset,
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic Schema getColumnProjection()
public String getString(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typepublic String getString(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic byte[] getBinaryCopy(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic byte[] getBinaryCopy(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic ByteBuffer getBinary(String columnName)
columnName
- name of the column to get data forIllegalArgumentException
- if the column doesn't exist, is null,
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic ByteBuffer getBinary(int columnIndex)
columnIndex
- Column index in the schemaIllegalArgumentException
- if the column is null
or if the type doesn't match the column's typeIndexOutOfBoundsException
- if the column doesn't existpublic boolean isNull(String columnName)
columnName
- name of the column in the schemaIndexOutOfBoundsException
- if the column doesn't existpublic boolean isNull(int columnIndex)
columnIndex
- Column index in the schemaIndexOutOfBoundsException
- if the column doesn't existpublic Type getColumnType(String columnName)
columnName
- name of the columnpublic Type getColumnType(int columnIndex)
columnIndex
- column index in the schemaIndexOutOfBoundsException
- if the column doesn't existpublic Schema getSchema()
public String rowToString()
public String toStringLongFormat()
Copyright © 2018 The Apache Software Foundation. All rights reserved.