Class SessionDataSetWrapper

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class SessionDataSetWrapper
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      close this dataset to release the session
      int getBatchSize()  
      java.util.List<java.lang.String> getColumnNames()  
      java.util.List<java.lang.String> getColumnTypes()  
      protected Session getSession()  
      boolean hasNext()
      If there is an Exception, and you do not want to use the resultset anymore, you have to release the resultset manually by calling closeResultSet
      SessionDataSet.DataIterator iterator()
      retrieve data set like jdbc
      org.apache.iotdb.tsfile.read.common.RowRecord next()
      If there is an Exception, and you do not want to use the resultset anymore, you have to release the resultset manually by calling closeResultSet
      void setBatchSize​(int batchSize)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSession

        protected Session getSession()
      • getBatchSize

        public int getBatchSize()
      • setBatchSize

        public void setBatchSize​(int batchSize)
      • hasNext

        public boolean hasNext()
                        throws org.apache.iotdb.rpc.IoTDBConnectionException,
                               org.apache.iotdb.rpc.StatementExecutionException
        If there is an Exception, and you do not want to use the resultset anymore, you have to release the resultset manually by calling closeResultSet
        Returns:
        Throws:
        org.apache.iotdb.rpc.IoTDBConnectionException
        org.apache.iotdb.rpc.StatementExecutionException
      • next

        public org.apache.iotdb.tsfile.read.common.RowRecord next()
                                                           throws org.apache.iotdb.rpc.IoTDBConnectionException,
                                                                  org.apache.iotdb.rpc.StatementExecutionException
        If there is an Exception, and you do not want to use the resultset anymore, you have to release the resultset manually by calling closeResultSet
        Returns:
        Throws:
        org.apache.iotdb.rpc.IoTDBConnectionException
        org.apache.iotdb.rpc.StatementExecutionException
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
      • getColumnTypes

        public java.util.List<java.lang.String> getColumnTypes()
      • close

        public void close()
        close this dataset to release the session
        Specified by:
        close in interface java.lang.AutoCloseable