Class: Row

eclairjs/sql.Row

Represents one row of output from a relational operator. Allows both generic access by ordinal, which will incur boxing overhead for primitives, as well as native primitive access. It is invalid to use the native primitive interface to retrieve a value that is null, instead a user must check isNullAt before attempting to retrieve a value that might be null. To create a new Row, use RowFactory.create()

Constructor

new Row()

Source:

Methods

anyNull() → {boolean}

Returns true if there are any NULL values in this row.
Source:
Returns:
Type
boolean

apply(index) → {object}

Returns the value at position index.
Parameters:
Name Type Description
index
Source:
Returns:
Type
object

copy() → {module:eclairjs/sql.Row}

Make a copy of the current Row object
Source:
Returns:
Type
module:eclairjs/sql.Row

equals(obj) → {boolean}

compares object obj to this Row object
Parameters:
Name Type Description
obj object
Source:
Returns:
Type
boolean

fieldIndex(name) → {integer}

Returns the index of a given field name.
Parameters:
Name Type Description
name string
Source:
Returns:
Type
integer

get(index) → {object}

Returns the value at position index.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
object

getBoolean(index) → {boolean}

Returns the value at position index as a primitive boolean.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
boolean

getDate(index) → {Date}

Returns the value at position index of type as Date.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
Date

getDouble(index) → {double}

Returns the value at position index of type as double.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
double

getFloat(index) → {float}

Returns the value at position index of type as float.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
float

getInt(index) → {integer}

Returns the value at position index of type as integer.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
integer

getString(index) → {String}

Returns the value at position index of type as String.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
String

getStruct(index) → {module:eclairjs/sql.Row}

Returns the value at position index of struct type as a Row object.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
module:eclairjs/sql.Row

getTimestamp(index) → {Date}

Returns the value at position index of date type as Date.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
Date

isNullAt(index) → {boolean}

Checks whether the value at position index is null.
Parameters:
Name Type Description
index integer
Source:
Returns:
Type
boolean

length() → {Promise.<integer>}

Number of elements in the Row.
Source:
Returns:
Type
Promise.<integer>

mkString(separatoropt, startopt, endopt) → {Promise.<string>}

Displays all elements of this traversable or iterator in a string using start, end, and separator strings.
Parameters:
Name Type Attributes Description
separator string <optional>
start string <optional>
start will be ignored if end parameter is not specified
end string <optional>
Required if start specified
Source:
Returns:
Type
Promise.<string>

schema() → {module:eclairjs/sql/types.StructType}

Schema for the row.
Source:
Returns:
Type
module:eclairjs/sql/types.StructType

size() → {integer}

Number of elements in the Row.
Source:
Returns:
Type
integer