@Override protected BaseRowIterator applyToPartition(BaseRowIterator iterator) { if (iterator.isEmpty()) { iterator.close(); return null; } return iterator; } }
@Override protected BaseRowIterator applyToPartition(BaseRowIterator iterator) { if (iterator.isEmpty()) { iterator.close(); return null; } return iterator; } }
@Override protected BaseRowIterator applyToPartition(BaseRowIterator iterator) { if (iterator.isEmpty()) { iterator.close(); return null; } return iterator; } }
private static boolean closeIfEmpty(BaseRowIterator<?> iter) { if (iter.isEmpty()) { iter.close(); return true; } return false; } }