Package org.apache.iotdb.db.utils
Class QueryDataSetUtils
- java.lang.Object
-
- org.apache.iotdb.db.utils.QueryDataSetUtils
-
public class QueryDataSetUtils extends java.lang.ObjectTimeValuePairUtils to convert between thrift format and TsFile format.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.iotdb.service.rpc.thrift.TSQueryDataSetconvertQueryDataSetByFetchSize(org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet queryDataSet, int fetchSize, WatermarkEncoder watermarkEncoder)static org.apache.iotdb.service.rpc.thrift.TSQueryDataSetconvertTsBlockByFetchSize(IQueryExecution queryExecution, int fetchSize)static org.apache.iotdb.tsfile.utils.BitMap[]readBitMapsFromBuffer(java.nio.ByteBuffer buffer, int columns, int size)static org.apache.iotdb.tsfile.utils.BitMap[]readBitMapsFromStream(java.io.DataInputStream stream, int columns, int size)static java.lang.Object[]readTabletValuesFromBuffer(java.nio.ByteBuffer buffer, java.util.List<java.lang.Integer> types, int columns, int size)static java.lang.Object[]readTabletValuesFromBuffer(java.nio.ByteBuffer buffer, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] types, int columns, int size)static java.lang.Object[]readTabletValuesFromStream(java.io.DataInputStream stream, java.util.List<java.lang.Integer> types, int columns, int size)static java.lang.Object[]readTabletValuesFromStream(java.io.DataInputStream stream, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] types, int columns, int size)static long[]readTimesFromBuffer(java.nio.ByteBuffer buffer, int size)static long[]readTimesFromStream(java.io.DataInputStream stream, int size)
-
-
-
Method Detail
-
convertQueryDataSetByFetchSize
public static org.apache.iotdb.service.rpc.thrift.TSQueryDataSet convertQueryDataSetByFetchSize(org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet queryDataSet, int fetchSize, WatermarkEncoder watermarkEncoder) throws java.io.IOException- Throws:
java.io.IOException
-
convertTsBlockByFetchSize
public static org.apache.iotdb.service.rpc.thrift.TSQueryDataSet convertTsBlockByFetchSize(IQueryExecution queryExecution, int fetchSize) throws java.io.IOException, org.apache.iotdb.commons.exception.IoTDBException
- Throws:
java.io.IOExceptionorg.apache.iotdb.commons.exception.IoTDBException
-
readTimesFromBuffer
public static long[] readTimesFromBuffer(java.nio.ByteBuffer buffer, int size)
-
readTimesFromStream
public static long[] readTimesFromStream(java.io.DataInputStream stream, int size) throws java.io.IOException- Throws:
java.io.IOException
-
readBitMapsFromBuffer
public static org.apache.iotdb.tsfile.utils.BitMap[] readBitMapsFromBuffer(java.nio.ByteBuffer buffer, int columns, int size)
-
readBitMapsFromStream
public static org.apache.iotdb.tsfile.utils.BitMap[] readBitMapsFromStream(java.io.DataInputStream stream, int columns, int size) throws java.io.IOException- Throws:
java.io.IOException
-
readTabletValuesFromBuffer
public static java.lang.Object[] readTabletValuesFromBuffer(java.nio.ByteBuffer buffer, java.util.List<java.lang.Integer> types, int columns, int size)
-
readTabletValuesFromStream
public static java.lang.Object[] readTabletValuesFromStream(java.io.DataInputStream stream, java.util.List<java.lang.Integer> types, int columns, int size) throws java.io.IOException- Throws:
java.io.IOException
-
readTabletValuesFromBuffer
public static java.lang.Object[] readTabletValuesFromBuffer(java.nio.ByteBuffer buffer, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] types, int columns, int size)- Parameters:
buffer- data valuescolumns- column numbersize- value count in each column
-
readTabletValuesFromStream
public static java.lang.Object[] readTabletValuesFromStream(java.io.DataInputStream stream, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] types, int columns, int size) throws java.io.IOException- Throws:
java.io.IOException
-
-