Class UDTFAlignByTimeDataSet
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
-
- org.apache.iotdb.db.query.dataset.UDTFDataSet
-
- org.apache.iotdb.db.query.dataset.UDTFAlignByTimeDataSet
-
- All Implemented Interfaces:
DirectAlignByTimeDataSet
public class UDTFAlignByTimeDataSet extends UDTFDataSet implements DirectAlignByTimeDataSet
-
-
Field Summary
Fields Modifier and Type Field Description protected TimeSelectortimeHeap-
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
-
Fields inherited from class org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
alreadyReturnedRowNum, ascending, columnNum, dataTypes, endPoint, fetchSize, paths, rowLimit, rowOffset, withoutAllNull, withoutAnyNull, withoutNullColumnsIndex
-
Fields inherited from interface org.apache.iotdb.db.query.dataset.DirectAlignByTimeDataSet
FLAG
-
-
Constructor Summary
Constructors Constructor Description UDTFAlignByTimeDataSet(QueryContext context, UDTFPlan udtfPlan, java.util.List<ManagedSeriesReader> readersOfSelectedSeries)execute without value filterUDTFAlignByTimeDataSet(QueryContext context, UDTFPlan udtfPlan, IUDFInputDataSet inputDataSet, boolean keepNull)UDTFAlignByTimeDataSet(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.TSQueryDataSetfillBuffer(int fetchSize, WatermarkEncoder encoder)booleanhasNextWithoutConstraint()protected voidinitTimeHeap()org.apache.iotdb.tsfile.read.common.RowRecordnextWithoutConstraint()protected org.apache.iotdb.service.rpc.thrift.TSQueryDataSetpackBuffer(org.apache.iotdb.service.rpc.thrift.TSQueryDataSet tsQueryDataSet, org.apache.iotdb.tsfile.utils.PublicBAOS timeBAOS, org.apache.iotdb.tsfile.utils.PublicBAOS[] valueBAOSList, org.apache.iotdb.tsfile.utils.PublicBAOS[] bitmapBAOSList)protected voidputPBOSToBuffer(org.apache.iotdb.tsfile.utils.PublicBAOS[] bitmapBAOSList, java.util.List<java.nio.ByteBuffer> bitmapBufferList, int tsIndex)-
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
-
-
-
-
Field Detail
-
timeHeap
protected TimeSelector timeHeap
-
-
Constructor Detail
-
UDTFAlignByTimeDataSet
public UDTFAlignByTimeDataSet(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
-
UDTFAlignByTimeDataSet
public UDTFAlignByTimeDataSet(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
-
UDTFAlignByTimeDataSet
public UDTFAlignByTimeDataSet(QueryContext context, UDTFPlan udtfPlan, IUDFInputDataSet inputDataSet, boolean keepNull) throws QueryProcessException, java.io.IOException
- Throws:
QueryProcessExceptionjava.io.IOException
-
-
Method Detail
-
initTimeHeap
protected void initTimeHeap() throws java.io.IOException, QueryProcessException- Throws:
java.io.IOExceptionQueryProcessException
-
fillBuffer
public org.apache.iotdb.service.rpc.thrift.TSQueryDataSet fillBuffer(int fetchSize, WatermarkEncoder encoder) throws java.io.IOException, QueryProcessException- Specified by:
fillBufferin interfaceDirectAlignByTimeDataSet- Throws:
java.io.IOExceptionQueryProcessException
-
packBuffer
protected org.apache.iotdb.service.rpc.thrift.TSQueryDataSet packBuffer(org.apache.iotdb.service.rpc.thrift.TSQueryDataSet tsQueryDataSet, org.apache.iotdb.tsfile.utils.PublicBAOS timeBAOS, org.apache.iotdb.tsfile.utils.PublicBAOS[] valueBAOSList, org.apache.iotdb.tsfile.utils.PublicBAOS[] bitmapBAOSList)
-
putPBOSToBuffer
protected void putPBOSToBuffer(org.apache.iotdb.tsfile.utils.PublicBAOS[] bitmapBAOSList, java.util.List<java.nio.ByteBuffer> bitmapBufferList, int tsIndex)
-
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() throws java.io.IOException- Specified by:
nextWithoutConstraintin classorg.apache.iotdb.tsfile.read.query.dataset.QueryDataSet- Throws:
java.io.IOException
-
-