Interface ExternalSortJobEngine

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.iotdb.db.query.externalsort.ExternalSortJob createJob​(long queryId, java.util.List<ChunkReaderWrap> timeValuePairReaderList)
      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.
    • Method Detail

      • executeForIPointReader

        java.util.List<org.apache.iotdb.tsfile.read.reader.IPointReader> executeForIPointReader​(long queryId,
                                                                                                java.util.List<ChunkReaderWrap> chunkReaderWraps)
                                                                                         throws java.io.IOException
        Receive 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.
        Parameters:
        queryId - query job id
        chunkReaderWraps - A list of ChunkReaderWrap
        Throws:
        java.io.IOException
      • executeForByTimestampReader

        java.util.List<IReaderByTimestamp> executeForByTimestampReader​(long queryId,
                                                                       java.util.List<ChunkReaderWrap> chunkReaderWraps)
                                                                throws java.io.IOException
        Receive 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.
        Parameters:
        chunkReaderWraps - A list of ChunkReaderWrap
        Throws:
        java.io.IOException
      • createJob

        org.apache.iotdb.db.query.externalsort.ExternalSortJob createJob​(long queryId,
                                                                         java.util.List<ChunkReaderWrap> timeValuePairReaderList)
                                                                  throws java.io.IOException
        Create an external sort job which merges many chunks.
        Throws:
        java.io.IOException