Class QueryDataSet

    • Field Detail

      • rowLimit

        protected int rowLimit
      • rowOffset

        protected int rowOffset
      • alreadyReturnedRowNum

        protected int alreadyReturnedRowNum
      • fetchSize

        protected int fetchSize
      • ascending

        protected boolean ascending
      • withoutAnyNull

        protected boolean withoutAnyNull
        if any column is null, we don't need that row
      • withoutAllNull

        protected boolean withoutAllNull
        Only if all columns are null, we don't need that row
      • withoutNullColumnsIndex

        protected Set<Integer> withoutNullColumnsIndex
        index set that withoutNullColumns for output data columns
      • columnNum

        protected int columnNum
    • Constructor Detail

      • QueryDataSet

        protected QueryDataSet()
    • Method Detail

      • initQueryDataSetFields

        protected void initQueryDataSetFields​(List<Path> paths,
                                              List<TSDataType> dataTypes,
                                              boolean ascending)
      • getWithoutNullColumnsIndex

        public Set<Integer> getWithoutNullColumnsIndex()
      • setWithoutNullColumnsIndex

        public void setWithoutNullColumnsIndex​(Set<Integer> withoutNullColumnsIndex)
      • withoutNullFilter

        public boolean withoutNullFilter​(RowRecord rowRecord)
        check rowRecord whether satisfy without null condition
        Parameters:
        rowRecord - rowRecord
        Returns:
        true satisfy false don't satisfy
      • hasNextWithoutConstraint

        public abstract boolean hasNextWithoutConstraint()
                                                  throws IOException
        Throws:
        IOException
      • setFetchSize

        public void setFetchSize​(int fetchSize)
      • getPaths

        public List<Path> getPaths()
      • setDataTypes

        public void setDataTypes​(List<TSDataType> dataTypes)
      • getRowLimit

        public int getRowLimit()
      • setRowLimit

        public void setRowLimit​(int rowLimit)
      • getRowOffset

        public int getRowOffset()
      • setRowOffset

        public void setRowOffset​(int rowOffset)
      • hasLimit

        public boolean hasLimit()
      • isWithoutAnyNull

        public boolean isWithoutAnyNull()
      • setWithoutAnyNull

        public void setWithoutAnyNull​(boolean withoutAnyNull)
      • isWithoutAllNull

        public boolean isWithoutAllNull()
      • setWithoutAllNull

        public void setWithoutAllNull​(boolean withoutAllNull)
      • decreaseAlreadyReturnedRowNum

        public void decreaseAlreadyReturnedRowNum()
      • getColumnNum

        public int getColumnNum()
      • setColumnNum

        public void setColumnNum​(int columnNum)