Class SimpleExternalSortEngine
- java.lang.Object
-
- org.apache.iotdb.db.query.externalsort.SimpleExternalSortEngine
-
- All Implemented Interfaces:
ExternalSortJobEngine
public class SimpleExternalSortEngine extends java.lang.Object implements ExternalSortJobEngine
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.iotdb.db.query.externalsort.ExternalSortJobcreateJob(long queryId, java.util.List<ChunkReaderWrap> readerWrapList)Create an external sort job which merges many chunks.java.util.List<IReaderByTimestamp>executeForByTimestampReader(long queryId, java.util.List<ChunkReaderWrap> chunkReaderWraps)Receive a list of chunkReaderWraps and judge whether it should be processed using external sort.java.util.List<org.apache.iotdb.tsfile.read.reader.IPointReader>executeForIPointReader(long queryId, java.util.List<ChunkReaderWrap> chunkReaderWraps)Receive a list of ChunkReaderWraps and judge whether it should be processed using external sort.static SimpleExternalSortEnginegetInstance()
-
-
-
Method Detail
-
executeForIPointReader
public java.util.List<org.apache.iotdb.tsfile.read.reader.IPointReader> executeForIPointReader(long queryId, java.util.List<ChunkReaderWrap> chunkReaderWraps) throws java.io.IOExceptionDescription copied from interface:ExternalSortJobEngineReceive a list of ChunkReaderWraps and judge whether it should be processed using external sort. If needed, do the merge sort for all ChunkReaderWraps using specific strategy.- Specified by:
executeForIPointReaderin interfaceExternalSortJobEngine- Parameters:
queryId- query job idchunkReaderWraps- A list of ChunkReaderWrap- Throws:
java.io.IOException
-
executeForByTimestampReader
public java.util.List<IReaderByTimestamp> executeForByTimestampReader(long queryId, java.util.List<ChunkReaderWrap> chunkReaderWraps) throws java.io.IOException
Description copied from interface:ExternalSortJobEngineReceive a list of chunkReaderWraps and judge whether it should be processed using external sort. If needed, do the merge sort for all ChunkReaderWraps using specific strategy.- Specified by:
executeForByTimestampReaderin interfaceExternalSortJobEnginechunkReaderWraps- A list of ChunkReaderWrap- Throws:
java.io.IOException
-
createJob
public org.apache.iotdb.db.query.externalsort.ExternalSortJob createJob(long queryId, java.util.List<ChunkReaderWrap> readerWrapList)Description copied from interface:ExternalSortJobEngineCreate an external sort job which merges many chunks.- Specified by:
createJobin interfaceExternalSortJobEngine
-
getInstance
public static SimpleExternalSortEngine getInstance()
-
-