Package org.apache.iotdb.pipe.api.access
Interface Row
public interface Row
-
Method Summary
Modifier and TypeMethodDescriptiongetBinary(int columnIndex) Returns the Binary value at the specified column in this row.booleangetBoolean(int columnIndex) Returns the boolean value at the specified column in this row.intgetColumnIndex(org.apache.tsfile.read.common.Path columnName) Returns the actual column index of the given column (measurement) name.getColumnName(int columnIndex) Returns the actual column (measurement) name of the given column index.Returns the column data types in the Row.getDataType(int columnIndex) Returns the actual data type of the value at the specified column in this row.getDate(int columnIndex) Returns the localDate value at the specified column in this row.Returns the device id of the Row.doublegetDouble(int columnIndex) Returns the double value at the specified column in this row.floatgetFloat(int columnIndex) Returns the float value at the specified column in this row.intgetInt(int columnIndex) Returns the int value at the specified column in this row.longgetLong(int columnIndex) Returns the long value at the specified column in this row.getObject(int columnIndex) Returns the raw Object stored at the specified column in this row.getString(int columnIndex) Returns the String value at the specified column in this row.longgetTime()Returns the timestamp of this row.booleanisNull(int columnIndex) Returnstrueif the value of the specified column is null.intsize()Returns the number of columns (excluding the timestamp column).
-
Method Details
-
getTime
long getTime()Returns the timestamp of this row.- Returns:
- timestamp
-
getInt
int getInt(int columnIndex) Returns the int value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.INT32.- Parameters:
columnIndex- index of the specified column- Returns:
- the int value at the specified column in this row
-
getDate
Returns the localDate value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.DATE.- Parameters:
columnIndex- index of the specified column- Returns:
- the int value at the specified column in this row
-
getLong
long getLong(int columnIndex) Returns the long value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.INT64orType.TIMESTAMP.- Parameters:
columnIndex- index of the specified column- Returns:
- the long value at the specified column in this row
-
getFloat
float getFloat(int columnIndex) Returns the float value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.FLOAT.- Parameters:
columnIndex- index of the specified column- Returns:
- the float value at the specified column in this row
-
getDouble
double getDouble(int columnIndex) Returns the double value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.DOUBLE.- Parameters:
columnIndex- index of the specified column- Returns:
- the double value at the specified column in this row
-
getBoolean
boolean getBoolean(int columnIndex) Returns the boolean value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.BOOLEAN.- Parameters:
columnIndex- index of the specified column- Returns:
- the boolean value at the specified column in this row
-
getBinary
Returns the Binary value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.TEXT,Type.BLOBorType.STRING.- Parameters:
columnIndex- index of the specified column- Returns:
- the Binary value at the specified column in this row
-
getString
Returns the String value at the specified column in this row.Users need to ensure that the data type of the specified column is
Type.TEXTorType.STRING.- Parameters:
columnIndex- index of the specified column- Returns:
- the String value at the specified column in this row
-
getObject
Returns the raw Object stored at the specified column in this row.- Parameters:
columnIndex- index of the specified column- Returns:
- the Object value at the specified column in this row
-
getDataType
Returns the actual data type of the value at the specified column in this row.- Parameters:
columnIndex- index of the specified column- Returns:
- the actual data type of the value at the specified column in this row
-
isNull
boolean isNull(int columnIndex) Returnstrueif the value of the specified column is null.- Parameters:
columnIndex- index of the specified column- Returns:
trueif the value of the specified column is null
-
size
int size()Returns the number of columns (excluding the timestamp column).- Returns:
- the number of columns (excluding the timestamp column)
-
getColumnIndex
int getColumnIndex(org.apache.tsfile.read.common.Path columnName) throws PipeParameterNotValidException Returns the actual column index of the given column (measurement) name.- Parameters:
columnName- the column name in Path form- Returns:
- the actual column index of the given column name
- Throws:
PipeParameterNotValidException- if the given column name is not existed in the Row
-
getColumnName
Returns the actual column (measurement) name of the given column index.- Parameters:
columnIndex- the column index- Returns:
- the actual column (measurement) name of the given column index
-
getColumnTypes
Returns the column data types in the Row.- Returns:
- the column data types in the Row
-
getDeviceId
String getDeviceId()Returns the device id of the Row.- Returns:
- the device id of the Row
-