public Builder copy(ParquetReadOptions options) { useSignedStringMinMax(options.useSignedStringMinMax); useStatsFilter(options.useStatsFilter); useDictionaryFilter(options.useDictionaryFilter); useRecordFilter(options.useRecordFilter); withRecordFilter(options.recordFilter); withMetadataFilter(options.metadataFilter); withCodecFactory(options.codecFactory); withAllocator(options.allocator); for (Map.Entry<String, String> keyValue : options.properties.entrySet()) { set(keyValue.getKey(), keyValue.getValue()); } return this; }
public Builder copy(ParquetReadOptions options) { useSignedStringMinMax(options.useSignedStringMinMax); useStatsFilter(options.useStatsFilter); useDictionaryFilter(options.useDictionaryFilter); useRecordFilter(options.useRecordFilter); withRecordFilter(options.recordFilter); withMetadataFilter(options.metadataFilter); withCodecFactory(options.codecFactory); withAllocator(options.allocator); for (Map.Entry<String, String> keyValue : options.properties.entrySet()) { set(keyValue.getKey(), keyValue.getValue()); } return this; }
public Builder<T> withConf(Configuration conf) { this.conf = checkNotNull(conf, "conf"); // previous versions didn't use the builder, so may set filter before conf. this maintains // compatibility for filter. other options are reset by a new conf. this.optionsBuilder = HadoopReadOptions.builder(conf); if (filter != null) { optionsBuilder.withRecordFilter(filter); } return this; }
public Builder<T> withFilter(Filter filter) { this.filter = filter; optionsBuilder.withRecordFilter(filter); return this; }
public Builder<T> withConf(Configuration conf) { this.conf = checkNotNull(conf, "conf"); // previous versions didn't use the builder, so may set filter before conf. this maintains // compatibility for filter. other options are reset by a new conf. this.optionsBuilder = HadoopReadOptions.builder(conf); if (filter != null) { optionsBuilder.withRecordFilter(filter); } return this; }
public Builder<T> withFilter(Filter filter) { this.filter = filter; optionsBuilder.withRecordFilter(filter); return this; }