Skip to content

Commit

Permalink
[core][common] Remove useless codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
guanshi committed Nov 7, 2024
1 parent d3b809f commit 8c68032
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@
package org.apache.paimon.reader;

import org.apache.paimon.annotation.Public;
import org.apache.paimon.fileindex.FileIndexResult;
import org.apache.paimon.fileindex.bitmap.BitmapIndexResultLazy;
import org.apache.paimon.utils.CloseableIterator;
import org.apache.paimon.utils.Filter;
import org.apache.paimon.utils.RoaringBitmap32;

import javax.annotation.Nullable;

Expand Down Expand Up @@ -212,13 +209,4 @@ public void close() throws IOException {
default CloseableIterator<T> toCloseableIterator() {
return new RecordReaderIterator<>(this);
}

default boolean checkIndexResultExist(
FileIndexResult fileIndexResult, long startRowNum, long endRowNum) {
if (fileIndexResult instanceof BitmapIndexResultLazy) {
RoaringBitmap32 bitmap = ((BitmapIndexResultLazy) fileIndexResult).get();
return bitmap.rangeCardinality(startRowNum, endRowNum) > 0;
}
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,6 @@ private RecordReader<InternalRow> createFileReader(
throws IOException {
FileIndexResult fileIndexResult = null;
if (fileIndexReadEnabled) {
// boolean skip =
// FileIndexSkipper.skip(
// fileIO,
// bulkFormatMapping.getDataSchema(),
// bulkFormatMapping.getDataFilters(),
// dataFilePathFactory,
// file);
// if (skip) {
// return new EmptyRecordReader<>();
// }
fileIndexResult =
FileIndexEvaluator.evaluate(
fileIO,
Expand Down

0 comments on commit 8c68032

Please sign in to comment.