Class ObjectFileSink<T>

Type Parameters:
T - type of the object to store
All Implemented Interfaces:
Serializable, ActualOperator, ElementaryOperator, Operator
Direct Known Subclasses:
FlinkObjectFileSink, JavaObjectFileSink, SparkObjectFileSink

public class ObjectFileSink<T> extends UnarySink<T>
This UnarySink writes all incoming data quanta to a Object file.
See Also:
  • Field Details

    • textFileUrl

      protected final String textFileUrl
    • tClass

      protected final Class<T> tClass
  • Constructor Details

    • ObjectFileSink

      public ObjectFileSink(String targetPath, DataSetType<T> type)
      Creates a new instance.
      Parameters:
      targetPath - URL to file that should be written
      type - DataSetType of the incoming data quanta
    • ObjectFileSink

      public ObjectFileSink(String textFileUrl, Class<T> typeClass)
      Creates a new instance.
      Parameters:
      textFileUrl - URL to file that should be written
      typeClass - Class of incoming data quanta
    • ObjectFileSink

      public ObjectFileSink(ObjectFileSink<T> that)
      Creates a copied instance.
      Parameters:
      that - should be copied