Interface Row


public interface Row
  • Method Summary

    Modifier and Type
    Method
    Description
    getBinary(int columnIndex)
    Returns the Binary value at the specified column in this row.
    boolean
    getBoolean(int columnIndex)
    Returns the boolean value at the specified column in this row.
    int
    getColumnIndex(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.
    double
    getDouble(int columnIndex)
    Returns the double value at the specified column in this row.
    float
    getFloat(int columnIndex)
    Returns the float value at the specified column in this row.
    int
    getInt(int columnIndex)
    Returns the int value at the specified column in this row.
    long
    getLong(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.
    long
    Returns the timestamp of this row.
    boolean
    isNull(int columnIndex)
    Returns true if the value of the specified column is null.
    int
    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

      LocalDate getDate(int columnIndex)
      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.INT64 or Type.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

      Binary getBinary(int columnIndex)
      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.BLOB or Type.STRING.

      Parameters:
      columnIndex - index of the specified column
      Returns:
      the Binary value at the specified column in this row
    • getString

      String getString(int columnIndex)
      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.TEXT or Type.STRING.

      Parameters:
      columnIndex - index of the specified column
      Returns:
      the String value at the specified column in this row
    • getObject

      Object getObject(int columnIndex)
      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

      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)
      Returns true if the value of the specified column is null.
      Parameters:
      columnIndex - index of the specified column
      Returns:
      true if 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

      String getColumnName(int columnIndex)
      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

      List<Type> 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