/** * See {@link TypedWrite#to(DynamicAvroDestinations)}. * * @deprecated Use {@link FileIO#write()} or {@link FileIO#writeDynamic()} instead. */ @Deprecated public Write<T> to(DynamicAvroDestinations<T, ?, T> dynamicDestinations) { return new Write<>(inner.to(dynamicDestinations).withFormatFunction(null)); }
AvroIO.<Long, GenericClass>writeCustomType() .to(writePipeline.newProvider(outputFile.getAbsolutePath())) .withFormatFunction(new CreateGenericClass()) .withSchema(ReflectData.get().getSchema(GenericClass.class)) .withoutSharding());
/** See {@link TypedWrite#to(FilenamePolicy)}. */ public Write<T> to(FilenamePolicy filenamePolicy) { return new Write<>( inner.to(filenamePolicy).withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#to(ResourceId)} . */ @Experimental(Kind.FILESYSTEM) public Write<T> to(ResourceId outputPrefix) { return new Write<>( inner.to(outputPrefix).withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#to(String)}. */ public Write<T> to(String outputPrefix) { return new Write<>( inner .to(FileBasedSink.convertToFileResourceIfPossible(outputPrefix)) .withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#to(ResourceId)}. */ @Experimental(Kind.FILESYSTEM) public Write<T> toResource(ValueProvider<ResourceId> outputPrefix) { return new Write<>( inner.toResource(outputPrefix).withFormatFunction(SerializableFunctions.identity())); }
/** See {@link TypedWrite#to(ValueProvider)}. */ public Write<T> to(ValueProvider<String> outputPrefix) { return new Write<>( inner.to(outputPrefix).withFormatFunction(SerializableFunctions.identity())); }