@@ -45,11 +45,11 @@ public class ParquetProperties {
4545 public static final boolean DEFAULT_IS_DICTIONARY_ENABLED = true ;
4646 public static final WriterVersion DEFAULT_WRITER_VERSION = WriterVersion .PARQUET_1_0 ;
4747 public static final boolean DEFAULT_ESTIMATE_ROW_COUNT_FOR_PAGE_SIZE_CHECK = true ;
48- public static final boolean DEFAULT_ESTIMATE_ROW_COUNT_FOR_BLOCK_SIZE_CHECK = true ;
48+ public static final boolean DEFAULT_ESTIMATE_ROW_COUNT_FOR_ROW_GROUP_SIZE_CHECK = true ;
4949 public static final int DEFAULT_MINIMUM_RECORD_COUNT_FOR_PAGE_SIZE_CHECK = 100 ;
5050 public static final int DEFAULT_MAXIMUM_RECORD_COUNT_FOR_PAGE_SIZE_CHECK = 10000 ;
51- public static final int DEFAULT_MINIMUM_RECORD_COUNT_FOR_BLOCK_SIZE_CHECK = 100 ;
52- public static final int DEFAULT_MAXIMUM_RECORD_COUNT_FOR_BLOCK_SIZE_CHECK = 10000 ;
51+ public static final int DEFAULT_MINIMUM_RECORD_COUNT_FOR_ROW_GROUP_SIZE_CHECK = 100 ;
52+ public static final int DEFAULT_MAXIMUM_RECORD_COUNT_FOR_ROW_GROUP_SIZE_CHECK = 10000 ;
5353
5454 public static final ValuesWriterFactory DEFAULT_VALUES_WRITER_FACTORY = new DefaultValuesWriterFactory ();
5555
@@ -83,15 +83,15 @@ public static WriterVersion fromString(String name) {
8383 private final boolean enableDictionary ;
8484 private final int minRowCountForPageSizeCheck ;
8585 private final int maxRowCountForPageSizeCheck ;
86- private final int minRowCountForBlockSizeCheck ;
87- private final int maxRowCountForBlockSizeCheck ;
86+ private final int minRowCountForRowGroupSizeCheck ;
87+ private final int maxRowCountForRowGroupSizeCheck ;
8888 private final boolean estimateNextPageSizeCheck ;
89- private final boolean estimateNextBlockSizeCheck ;
89+ private final boolean estimateNextRowGroupSizeCheck ;
9090 private final ByteBufferAllocator allocator ;
9191 private final ValuesWriterFactory valuesWriterFactory ;
9292
9393 private ParquetProperties (WriterVersion writerVersion , int pageSize , int dictPageSize , boolean enableDict , int minRowCountForPageSizeCheck ,
94- int maxRowCountForPageSizeCheck , int minRowCountForBlockSizeCheck , int maxRowCountForBlockSizeCheck , boolean estimateNextPageSizeCheck , boolean estimateNextBlockSizeCheck , ByteBufferAllocator allocator ,
94+ int maxRowCountForPageSizeCheck , int minRowCountForRowGroupSizeCheck , int maxRowCountForRowGroupSizeCheck , boolean estimateNextPageSizeCheck , boolean estimateNextRowGroupSizeCheck , ByteBufferAllocator allocator ,
9595 ValuesWriterFactory writerFactory ) {
9696 this .pageSizeThreshold = pageSize ;
9797 this .initialSlabSize = CapacityByteArrayOutputStream
@@ -101,10 +101,10 @@ private ParquetProperties(WriterVersion writerVersion, int pageSize, int dictPag
101101 this .enableDictionary = enableDict ;
102102 this .minRowCountForPageSizeCheck = minRowCountForPageSizeCheck ;
103103 this .maxRowCountForPageSizeCheck = maxRowCountForPageSizeCheck ;
104- this .minRowCountForBlockSizeCheck = minRowCountForBlockSizeCheck ;
105- this .maxRowCountForBlockSizeCheck = maxRowCountForBlockSizeCheck ;
104+ this .minRowCountForRowGroupSizeCheck = minRowCountForRowGroupSizeCheck ;
105+ this .maxRowCountForRowGroupSizeCheck = maxRowCountForRowGroupSizeCheck ;
106106 this .estimateNextPageSizeCheck = estimateNextPageSizeCheck ;
107- this .estimateNextBlockSizeCheck = estimateNextBlockSizeCheck ;
107+ this .estimateNextRowGroupSizeCheck = estimateNextRowGroupSizeCheck ;
108108 this .allocator = allocator ;
109109
110110 this .valuesWriterFactory = writerFactory ;
@@ -188,12 +188,12 @@ public int getMaxRowCountForPageSizeCheck() {
188188 return maxRowCountForPageSizeCheck ;
189189 }
190190
191- public int getMinRowCountForBlockSizeCheck () {
192- return minRowCountForBlockSizeCheck ;
191+ public int getMinRowCountForRowGroupSizeCheck () {
192+ return minRowCountForRowGroupSizeCheck ;
193193 }
194194
195- public int getMaxRowCountForBlockSizeCheck () {
196- return maxRowCountForBlockSizeCheck ;
195+ public int getMaxRowCountForRowGroupSizeCheck () {
196+ return maxRowCountForRowGroupSizeCheck ;
197197 }
198198
199199 public ValuesWriterFactory getValuesWriterFactory () {
@@ -204,8 +204,8 @@ public boolean estimateNextPageSizeCheck() {
204204 return estimateNextPageSizeCheck ;
205205 }
206206
207- public boolean estimateNextBlockSizeCheck () {
208- return estimateNextBlockSizeCheck ;
207+ public boolean estimateNextRowGroupSizeCheck () {
208+ return estimateNextRowGroupSizeCheck ;
209209 }
210210
211211 public static Builder builder () {
@@ -224,9 +224,9 @@ public static class Builder {
224224 private int minRowCountForPageSizeCheck = DEFAULT_MINIMUM_RECORD_COUNT_FOR_PAGE_SIZE_CHECK ;
225225 private int maxRowCountForPageSizeCheck = DEFAULT_MAXIMUM_RECORD_COUNT_FOR_PAGE_SIZE_CHECK ;
226226 private boolean estimateNextPageSizeCheck = DEFAULT_ESTIMATE_ROW_COUNT_FOR_PAGE_SIZE_CHECK ;
227- private int minRowCountForBlockSizeCheck = DEFAULT_MINIMUM_RECORD_COUNT_FOR_BLOCK_SIZE_CHECK ;
228- private int maxRowCountForBlockSizeCheck = DEFAULT_MAXIMUM_RECORD_COUNT_FOR_BLOCK_SIZE_CHECK ;
229- private boolean estimateNextBlockSizeCheck = DEFAULT_ESTIMATE_ROW_COUNT_FOR_BLOCK_SIZE_CHECK ;
227+ private int minRowCountForRowGroupSizeCheck = DEFAULT_MINIMUM_RECORD_COUNT_FOR_ROW_GROUP_SIZE_CHECK ;
228+ private int maxRowCountForRowGroupSizeCheck = DEFAULT_MAXIMUM_RECORD_COUNT_FOR_ROW_GROUP_SIZE_CHECK ;
229+ private boolean estimateNextRowGroupSizeCheck = DEFAULT_ESTIMATE_ROW_COUNT_FOR_ROW_GROUP_SIZE_CHECK ;
230230 private ByteBufferAllocator allocator = new HeapByteBufferAllocator ();
231231 private ValuesWriterFactory valuesWriterFactory = DEFAULT_VALUES_WRITER_FACTORY ;
232232
@@ -240,9 +240,9 @@ private Builder(ParquetProperties toCopy) {
240240 this .minRowCountForPageSizeCheck = toCopy .minRowCountForPageSizeCheck ;
241241 this .maxRowCountForPageSizeCheck = toCopy .maxRowCountForPageSizeCheck ;
242242 this .estimateNextPageSizeCheck = toCopy .estimateNextPageSizeCheck ;
243- this .minRowCountForBlockSizeCheck = toCopy .minRowCountForBlockSizeCheck ;
244- this .maxRowCountForBlockSizeCheck = toCopy .maxRowCountForBlockSizeCheck ;
245- this .estimateNextBlockSizeCheck = toCopy .estimateNextBlockSizeCheck ;
243+ this .minRowCountForRowGroupSizeCheck = toCopy .minRowCountForRowGroupSizeCheck ;
244+ this .maxRowCountForRowGroupSizeCheck = toCopy .maxRowCountForRowGroupSizeCheck ;
245+ this .estimateNextRowGroupSizeCheck = toCopy .estimateNextRowGroupSizeCheck ;
246246 this .allocator = toCopy .allocator ;
247247 }
248248
@@ -308,17 +308,17 @@ public Builder withMaxRowCountForPageSizeCheck(int max) {
308308 return this ;
309309 }
310310
311- public Builder withMinRowCountForBlockSizeCheck (int min ) {
311+ public Builder withMinRowCountForRowGroupSizeCheck (int min ) {
312312 Preconditions .checkArgument (min > 0 ,
313313 "Invalid row count for block size check (negative): %s" , min );
314- this .minRowCountForBlockSizeCheck = min ;
314+ this .minRowCountForRowGroupSizeCheck = min ;
315315 return this ;
316316 }
317317
318- public Builder withMaxRowCountForBlockSizeCheck (int max ) {
318+ public Builder withMaxRowCountForRowGroupSizeCheck (int max ) {
319319 Preconditions .checkArgument (max > 0 ,
320320 "Invalid row count for block size check (negative): %s" , max );
321- this .maxRowCountForBlockSizeCheck = max ;
321+ this .maxRowCountForRowGroupSizeCheck = max ;
322322 return this ;
323323 }
324324
@@ -328,8 +328,8 @@ public Builder estimateRowCountForPageSizeCheck(boolean estimateNextSizeCheck) {
328328 return this ;
329329 }
330330
331- public Builder estimateRowCountForBlockSizeCheck (boolean estimateBlockSizeCheck ) {
332- this .estimateNextBlockSizeCheck = estimateBlockSizeCheck ;
331+ public Builder estimateRowCountForRowGroupSizeCheck (boolean estimateRowGroupSizeCheck ) {
332+ this .estimateNextRowGroupSizeCheck = estimateRowGroupSizeCheck ;
333333 return this ;
334334 }
335335
@@ -349,8 +349,8 @@ public ParquetProperties build() {
349349 ParquetProperties properties =
350350 new ParquetProperties (writerVersion , pageSize , dictPageSize ,
351351 enableDict , minRowCountForPageSizeCheck , maxRowCountForPageSizeCheck ,
352- minRowCountForBlockSizeCheck , maxRowCountForBlockSizeCheck ,
353- estimateNextPageSizeCheck , estimateNextBlockSizeCheck ,
352+ minRowCountForRowGroupSizeCheck , maxRowCountForRowGroupSizeCheck ,
353+ estimateNextPageSizeCheck , estimateNextRowGroupSizeCheck ,
354354 allocator , valuesWriterFactory );
355355 // we pass a constructed but uninitialized factory to ParquetProperties above as currently
356356 // creation of ValuesWriters is invoked from within ParquetProperties. In the future
0 commit comments