@VisibleForTesting ParseAll<T> withDesiredBundleSizeBytes(long desiredBundleSizeBytes) { return toBuilder().setDesiredBundleSizeBytes(desiredBundleSizeBytes).build(); }
/** Sets the {@link MatchConfiguration}. */ public ParseAll<T> withMatchConfiguration(MatchConfiguration configuration) { return toBuilder().setMatchConfiguration(configuration).build(); }
/** Specifies the coder for the result of the {@code parseFn}. */ public ParseAll<T> withCoder(Coder<T> coder) { return toBuilder().setCoder(coder).build(); }
/** * Like {@link #parseGenericRecords(SerializableFunction)}, but reads each filepattern in the * input {@link PCollection}. */ public static <T> ParseAll<T> parseAllGenericRecords( SerializableFunction<GenericRecord, T> parseFn) { return new AutoValue_AvroIO_ParseAll.Builder<T>() .setMatchConfiguration(MatchConfiguration.create(EmptyMatchTreatment.ALLOW_IF_WILDCARD)) .setParseFn(parseFn) .setDesiredBundleSizeBytes(64 * 1024 * 1024L) .build(); }