Interface FileIO.Sink<ElementT>

All Superinterfaces:
Serializable
All Known Implementing Classes:
AvroIO.Sink, ParquetIO.Sink, TextIO.Sink, TFRecordIO.Sink, ThriftIO.Sink, XmlIO.Sink
Enclosing class:
FileIO

public static interface FileIO.Sink<ElementT> extends Serializable
Specifies how to write elements to individual files in FileIO.write() and FileIO.writeDynamic(). A new instance of FileIO.Sink is created for every file being written.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Flushes the buffered state (if any) before the channel is closed.
    void
    Initializes writing to the given channel.
    void
    write(ElementT element)
    Appends a single element to the file.
  • Method Details