public CloseableIterable<HiveBatchContext> filterBatch(CloseableIterable<HiveBatchContext> batches) {

    CloseableIterator<HiveBatchContext> iterator = new DeleteFilterBatchIterator(batches);

    return new CloseableIterable<HiveBatchContext>() {

      @Override
      public CloseableIterator<HiveBatchContext> iterator() {
        return iterator;
      }

      @Override
      public void close() throws IOException {
        iterator.close();
      }
    };
  }
Adjusts the pipeline of incoming VRBs so that for each batch every row goes through the delete filter.
@param batches iterable of HiveBatchContexts i.e. VRBs and their meta information
@return the adjusted iterable of HiveBatchContexts
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/vector/HiveDeleteFilter.java