Interface Row


  • public interface Row
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Binary 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.
      Type getDataType​(int columnIndex)
      Returns the actual data type of the value at the specified column in this 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.
      java.lang.String getString​(int columnIndex)
      Returns the String value at the specified column in this row.
      long getTime()
      Returns the timestamp of this row.
      boolean isNull​(int columnIndex)
      Returns true if the value of the specified column is null.
      int size()
      Returns the number of columns
    • Method Detail

      • getTime

        long getTime()
              throws java.io.IOException
        Returns the timestamp of this row.
        Returns:
        timestamp
        Throws:
        java.io.IOException
      • getInt

        int getInt​(int columnIndex)
            throws java.io.IOException
        Returns 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.IOException
        Returns 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.IOException
        Returns 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.IOException
        Returns 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.IOException
        Returns 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.IOException
        Returns 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)
        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
        Returns:
        the number of columns