Class UDTFNonAlignDataSet
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
-
- org.apache.iotdb.db.query.dataset.UDTFDataSet
-
- org.apache.iotdb.db.query.dataset.UDTFNonAlignDataSet
-
- All Implemented Interfaces:
DirectNonAlignDataSet
public class UDTFNonAlignDataSet extends UDTFDataSet implements DirectNonAlignDataSet
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]alreadyReturnedRowNumArrayprotected booleanisInitializedprotected int[]offsetArray-
Fields inherited from class org.apache.iotdb.db.query.dataset.UDTFDataSet
queryDataSetInputLayer, queryId, transformers, UDF_COLLECTOR_MEMORY_BUDGET_IN_MB, UDF_READER_MEMORY_BUDGET_IN_MB, UDF_TRANSFORMER_MEMORY_BUDGET_IN_MB, udtfPlan
-
-
Constructor Summary
Constructors Constructor Description UDTFNonAlignDataSet(QueryContext context, UDTFPlan udtfPlan, java.util.List<ManagedSeriesReader> readersOfSelectedSeries)execute without value filterUDTFNonAlignDataSet(QueryContext context, UDTFPlan udtfPlan, org.apache.iotdb.tsfile.read.query.timegenerator.TimeGenerator timestampGenerator, java.util.List<IReaderByTimestamp> readersOfSelectedSeries, java.util.List<java.util.List<java.lang.Integer>> readerToIndexList, java.util.List<java.lang.Boolean> cached)execute with value filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.iotdb.service.rpc.thrift.TSQueryNonAlignDataSetfillBuffer(int fetchSize, WatermarkEncoder encoder)protected org.apache.iotdb.tsfile.utils.Pair<java.nio.ByteBuffer,java.nio.ByteBuffer>fillColumnBuffer(int transformedDataColumnIndex, int fetchSize, WatermarkEncoder encoder)booleanhasNextWithoutConstraint()protected voidinit()offsetArray can not be initialized in the constructor, because rowOffset is set after the DataSet's construction.org.apache.iotdb.tsfile.read.common.RowRecordnextWithoutConstraint()-
Methods inherited from class org.apache.iotdb.db.query.dataset.UDTFDataSet
finalizeUDFs, initTransformers
-
Methods inherited from class org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
decreaseAlreadyReturnedRowNum, getColumnNum, getDataTypes, getEndPoint, getPaths, getRowLimit, getRowOffset, getWithoutNullColumnsIndex, hasLimit, hasNext, initQueryDataSetFields, isWithoutAllNull, isWithoutAnyNull, next, setColumnNum, setDataTypes, setEndPoint, setFetchSize, setRowLimit, setRowOffset, setWithoutAllNull, setWithoutAnyNull, setWithoutNullColumnsIndex, withoutNullFilter
-
-
-
-
Constructor Detail
-
UDTFNonAlignDataSet
public UDTFNonAlignDataSet(QueryContext context, UDTFPlan udtfPlan, org.apache.iotdb.tsfile.read.query.timegenerator.TimeGenerator timestampGenerator, java.util.List<IReaderByTimestamp> readersOfSelectedSeries, java.util.List<java.util.List<java.lang.Integer>> readerToIndexList, java.util.List<java.lang.Boolean> cached) throws java.io.IOException, QueryProcessException
execute with value filter- Throws:
java.io.IOExceptionQueryProcessException
-
UDTFNonAlignDataSet
public UDTFNonAlignDataSet(QueryContext context, UDTFPlan udtfPlan, java.util.List<ManagedSeriesReader> readersOfSelectedSeries) throws QueryProcessException, java.io.IOException, java.lang.InterruptedException
execute without value filter- Throws:
QueryProcessExceptionjava.io.IOExceptionjava.lang.InterruptedException
-
-
Method Detail
-
init
protected void init()
offsetArray can not be initialized in the constructor, because rowOffset is set after the DataSet's construction. note that this method only can be called once in a query.
-
fillBuffer
public org.apache.iotdb.service.rpc.thrift.TSQueryNonAlignDataSet fillBuffer(int fetchSize, WatermarkEncoder encoder) throws java.io.IOException, QueryProcessException- Specified by:
fillBufferin interfaceDirectNonAlignDataSet- Throws:
java.io.IOExceptionQueryProcessException
-
fillColumnBuffer
protected org.apache.iotdb.tsfile.utils.Pair<java.nio.ByteBuffer,java.nio.ByteBuffer> fillColumnBuffer(int transformedDataColumnIndex, int fetchSize, WatermarkEncoder encoder) throws java.io.IOException, QueryProcessException- Throws:
java.io.IOExceptionQueryProcessException
-
hasNextWithoutConstraint
public boolean hasNextWithoutConstraint()
- Specified by:
hasNextWithoutConstraintin classorg.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
-
nextWithoutConstraint
public org.apache.iotdb.tsfile.read.common.RowRecord nextWithoutConstraint()
- Specified by:
nextWithoutConstraintin classorg.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
-
-