Package org.apache.iotdb.udf.api.access
Interface Row
-
public interface Row
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BinarygetBinary(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.TypegetDataType(int columnIndex)Returns the actual data type of the value at the specified column in this 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.java.lang.StringgetString(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
-
-
-
Method Detail
-
getTime
long getTime() throws java.io.IOExceptionReturns the timestamp of this row.- Returns:
- timestamp
- Throws:
java.io.IOException
-
getInt
int getInt(int columnIndex) throws java.io.IOExceptionReturns the int value at the specified column in this row.Users need to ensure that the data type of the specified column is
TSDataType.INT32.- Parameters:
columnIndex- index of the specified column- Returns:
- the int value at the specified column in this row
- Throws:
java.io.IOException
-
getLong
long getLong(int columnIndex) throws java.io.IOExceptionReturns the long value at the specified column in this row.Users need to ensure that the data type of the specified column is
TSDataType.INT64.- Parameters:
columnIndex- index of the specified column- Returns:
- the long value at the specified column in this row
- Throws:
java.io.IOException
-
getFloat
float getFloat(int columnIndex) throws java.io.IOExceptionReturns the float value at the specified column in this row.Users need to ensure that the data type of the specified column is
TSDataType.FLOAT.- Parameters:
columnIndex- index of the specified column- Returns:
- the float value at the specified column in this row
- Throws:
java.io.IOException
-
getDouble
double getDouble(int columnIndex) throws java.io.IOExceptionReturns the double value at the specified column in this row.Users need to ensure that the data type of the specified column is
TSDataType.DOUBLE.- Parameters:
columnIndex- index of the specified column- Returns:
- the double value at the specified column in this row
- Throws:
java.io.IOException
-
getBoolean
boolean getBoolean(int columnIndex) throws java.io.IOExceptionReturns the boolean value at the specified column in this row.Users need to ensure that the data type of the specified column is
TSDataType.BOOLEAN.- Parameters:
columnIndex- index of the specified column- Returns:
- the boolean value at the specified column in this row
- Throws:
java.io.IOException
-
getBinary
Binary getBinary(int columnIndex) throws java.io.IOException
Returns the Binary value at the specified column in this row.Users need to ensure that the data type of the specified column is
TSDataType.TEXT.- Parameters:
columnIndex- index of the specified column- Returns:
- the Binary value at the specified column in this row
- Throws:
java.io.IOException
-
getString
java.lang.String getString(int columnIndex) throws java.io.IOExceptionReturns the String value at the specified column in this row.Users need to ensure that the data type of the specified column is
TSDataType.TEXT.- Parameters:
columnIndex- index of the specified column- Returns:
- the String value at the specified column in this row
- Throws:
java.io.IOException
-
getDataType
Type getDataType(int columnIndex)
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- Returns:
- the number of columns
-
-