Class LargeRecordHandler<T>

java.lang.Object
org.apache.flink.runtime.operators.sort.LargeRecordHandler<T>

public class LargeRecordHandler<T> extends Object
  • Constructor Details

    • LargeRecordHandler

      public LargeRecordHandler(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, org.apache.flink.api.common.typeutils.TypeComparator<T> comparator, IOManager ioManager, MemoryManager memManager, List<org.apache.flink.core.memory.MemorySegment> memory, TaskInvokable memoryOwner, int maxFilehandles, org.apache.flink.api.common.ExecutionConfig executionConfig)
  • Method Details

    • addRecord

      public long addRecord(T record) throws IOException
      Throws:
      IOException
    • finishWriteAndSortKeys

      public org.apache.flink.util.MutableObjectIterator<T> finishWriteAndSortKeys(List<org.apache.flink.core.memory.MemorySegment> memory) throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      Closes all structures and deletes all temporary files. Even in the presence of failures, this method will try and continue closing files and deleting temporary files.
      Throws:
      IOException - Thrown if an error occurred while closing/deleting the files.
    • hasData

      public boolean hasData()