AvroIO.<String>writeCustomTypeToGenericRecords() .to(new TestDynamicDestinations(baseDir, schemaView)) .withTempDirectory(baseDir);
AvroIO.<Struct>writeCustomTypeToGenericRecords() .to(new SchemaBasedDynamicDestinations(avroSchemas, outputDirectoryName, resource)) .withTempDirectory(resource));
/** See {@link TypedWrite#withTempDirectory(ValueProvider)}. */ @Experimental(Kind.FILESYSTEM) public Write<T> withTempDirectory(ValueProvider<ResourceId> tempDirectory) { return new Write<>(inner.withTempDirectory(tempDirectory)); }
/** Set the base directory used to generate temporary files. */ @Experimental(Kind.FILESYSTEM) public TypedWrite<UserT, DestinationT, OutputT> withTempDirectory(ResourceId tempDirectory) { return withTempDirectory(StaticValueProvider.of(tempDirectory)); }
/** See {@link TypedWrite#withTempDirectory(ResourceId)}. */ public Write<T> withTempDirectory(ResourceId tempDirectory) { return new Write<>(inner.withTempDirectory(tempDirectory)); }