Class JoinBatchMemoryManager

java.lang.Object
org.apache.drill.exec.record.RecordBatchMemoryManager
org.apache.drill.exec.record.JoinBatchMemoryManager

public class JoinBatchMemoryManager extends RecordBatchMemoryManager
  • Field Details

  • Constructor Details

    • JoinBatchMemoryManager

      public JoinBatchMemoryManager(int outputBatchSize, RecordBatch leftBatch, RecordBatch rightBatch, Set<String> excludedColumns)
  • Method Details

    • update

      public void update(int inputIndex, int outputPosition, boolean useAggregate)
      Update the memory manager parameters based on the new incoming batch
      Overrides:
      update in class RecordBatchMemoryManager
      Parameters:
      inputIndex - Left (0) or Right (1)
      outputPosition - Position (i.e. number of inserted rows) in the output batch
      useAggregate - Compute using average row width (else based on allocated sizes)
    • update

      public void update(int inputIndex, int outputPosition)
      Update the memory manager parameters based on the new incoming batch (based on allocated sizes, not average row size)
      Overrides:
      update in class RecordBatchMemoryManager
      Parameters:
      inputIndex - Left (0) or Right (1)
      outputPosition - Position (i.e. number of inserted rows) in the output batch
    • update

      public void update(RecordBatch batch, int inputIndex, int outputPosition, boolean useAggregate)
      Update the memory manager parameters based on the given (incoming) batch
      Overrides:
      update in class RecordBatchMemoryManager
      Parameters:
      batch - Update based on the data in this batch
      inputIndex - Left (0) or Right (1)
      outputPosition - Position (i.e. number of inserted rows) in the output batch
      useAggregate - Compute using average row width (else based on allocated sizes)
    • update

      public void update(RecordBatch batch, int inputIndex, int outputPosition)
      Update the memory manager parameters based on the given (incoming) batch (based on allocated sizes, not average row size)
      Overrides:
      update in class RecordBatchMemoryManager
      Parameters:
      batch - Update based on the data in this batch
      inputIndex - Left (0) or Right (1)
      outputPosition - Position (i.e. number of inserted rows) in the output batch