/** See {@link TypedWrite#withFooter(String)}. */ public Write withFooter(@Nullable String footer) { return new Write(inner.withFooter(footer)); }
/** See {@link TypedWrite#withHeader(String)}. */ public Write withHeader(@Nullable String header) { return new Write(inner.withHeader(header)); }
/** * See {@link TypedWrite#to(DynamicDestinations)}. * * @deprecated Use {@link FileIO#write()} or {@link FileIO#writeDynamic()} ()} with {@link * #sink()} instead. */ @Experimental(Kind.FILESYSTEM) @Deprecated public Write to(DynamicDestinations<String, ?, String> dynamicDestinations) { return new Write( inner.to((DynamicDestinations) dynamicDestinations).withFormatFunction(null)); }
/** * See {@link TypedWrite#to(SerializableFunction, Params)}. * * @deprecated Use {@link FileIO#write()} or {@link FileIO#writeDynamic()} ()} with {@link * #sink()} instead. */ @Experimental(Kind.FILESYSTEM) @Deprecated public Write to( SerializableFunction<String, Params> destinationFunction, Params emptyDestination) { return new Write( inner .to(destinationFunction, emptyDestination) .withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#withDelimiter(char[])}. */ public Write withDelimiter(char[] delimiter) { return new Write(inner.withDelimiter(delimiter)); }
/** See {@link TypedWrite#withoutSharding()}. */ public Write withoutSharding() { return new Write(inner.withoutSharding()); }
/** See {@link TypedWrite#withSuffix(String)}. */ public Write withSuffix(String filenameSuffix) { return new Write(inner.withSuffix(filenameSuffix)); }
/** See {@link TypedWrite#to(ValueProvider)}. */ public Write to(ValueProvider<String> outputPrefix) { return new Write(inner.to(outputPrefix).withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#withWindowedWrites}. */ public Write withWindowedWrites() { return new Write(inner.withWindowedWrites()); }
/** See {@link TypedWrite#withNumShards(int)}. */ public Write withNumShards(int numShards) { return new Write(inner.withNumShards(numShards)); }
/** See {@link TypedWrite#to(FilenamePolicy)}. */ @Experimental(Kind.FILESYSTEM) public Write to(FilenamePolicy filenamePolicy) { return new Write( inner.to(filenamePolicy).withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#to(ResourceId)}. */ @Experimental(Kind.FILESYSTEM) public Write to(ResourceId filenamePrefix) { return new Write( inner.to(filenamePrefix).withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#to(String)}. */ public Write to(String filenamePrefix) { return new Write( inner.to(filenamePrefix).withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#withCompression(Compression)}. */ public Write withCompression(Compression compression) { return new Write(inner.withCompression(compression)); }
/** See {@link TypedWrite#withShardNameTemplate(String)}. */ public Write withShardNameTemplate(String shardTemplate) { return new Write(inner.withShardNameTemplate(shardTemplate)); }
/** See {@link TypedWrite#withTempDirectory(ResourceId)}. */ @Experimental(Kind.FILESYSTEM) public Write withTempDirectory(ResourceId tempDirectory) { return new Write(inner.withTempDirectory(tempDirectory)); }
/** See {@link TypedWrite#withWritableByteChannelFactory(WritableByteChannelFactory)}. */ public Write withWritableByteChannelFactory( WritableByteChannelFactory writableByteChannelFactory) { return new Write(inner.withWritableByteChannelFactory(writableByteChannelFactory)); }
/** See {@link TypedWrite#toResource(ValueProvider)}. */ @Experimental(Kind.FILESYSTEM) public Write toResource(ValueProvider<ResourceId> filenamePrefix) { return new Write( inner.toResource(filenamePrefix).withFormatFunction(SerializableFunctions.identity())); }
/** * A {@link PTransform} that writes a {@link PCollection} to a text file (or multiple text files * matching a sharding pattern), with each element of the input collection encoded into its own * line. */ public static Write write() { return new TextIO.Write(); }
/** See {@link TypedWrite#withTempDirectory(ValueProvider)}. */ @Experimental(Kind.FILESYSTEM) public Write withTempDirectory(ValueProvider<ResourceId> tempDirectory) { return new Write(inner.withTempDirectory(tempDirectory)); }