Skip to content

Commit e1c2db8

Browse files
committed
Rename enabledOptimizedReader -> enableBatchReader
1 parent 6909c85 commit e1c2db8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

presto-parquet/src/test/java/com/facebook/presto/parquet/reader/AbstractColumnReaderBenchmark.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public abstract class AbstractColumnReaderBenchmark<T>
8585
@Param({
8686
"true", "false",
8787
})
88-
public boolean enableOptimizedReader;
88+
public boolean batchReaderEnabled;
8989

9090
protected abstract PrimitiveField createPrimitiveField();
9191

@@ -95,7 +95,7 @@ public abstract class AbstractColumnReaderBenchmark<T>
9595

9696
protected abstract void writeValue(ValuesWriter writer, T batch, int index);
9797

98-
protected abstract boolean getEnableOptimizedReader();
98+
protected abstract boolean getBatchReaderEnabled();
9999

100100
@Setup
101101
public void setup()
@@ -126,7 +126,7 @@ public void setup()
126126
public int read()
127127
throws IOException
128128
{
129-
ColumnReader columnReader = ColumnReaderFactory.createReader(field.getDescriptor(), getEnableOptimizedReader());
129+
ColumnReader columnReader = ColumnReaderFactory.createReader(field.getDescriptor(), getBatchReaderEnabled());
130130
columnReader.init(new PageReader(UNCOMPRESSED, new LinkedList<>(dataPages).listIterator(), MAX_VALUES, null, null, Optional.empty(), null, -1, -1), field, null);
131131

132132
ColumnReader reader = null;

presto-parquet/src/test/java/com/facebook/presto/parquet/reader/BenchmarkLongDecimalColumnReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ protected void writeValue(ValuesWriter writer, long[] batch, int index)
7979
}
8080

8181
@Override
82-
protected boolean getEnableOptimizedReader()
82+
protected boolean getBatchReaderEnabled()
8383
{
84-
return enableOptimizedReader;
84+
return batchReaderEnabled;
8585
}
8686

8787
@Override

presto-parquet/src/test/java/com/facebook/presto/parquet/reader/BenchmarkShortDecimalColumnReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ protected long[] generateDataBatch(int size)
7878
}
7979

8080
@Override
81-
protected boolean getEnableOptimizedReader()
81+
protected boolean getBatchReaderEnabled()
8282
{
83-
return enableOptimizedReader;
83+
return batchReaderEnabled;
8484
}
8585

8686
@Override

presto-parquet/src/test/java/com/facebook/presto/parquet/reader/BenchmarkUuidColumnReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ protected void writeValue(ValuesWriter writer, long[] batch, int index)
7979
}
8080

8181
@Override
82-
protected boolean getEnableOptimizedReader()
82+
protected boolean getBatchReaderEnabled()
8383
{
84-
return enableOptimizedReader;
84+
return batchReaderEnabled;
8585
}
8686

8787
@Override

0 commit comments

Comments
 (0)