Class TextFileSink<T>

    • Field Detail

      • textFileUrl

        protected final java.lang.String textFileUrl
    • Constructor Detail

      • TextFileSink

        public TextFileSink​(java.lang.String textFileUrl,
                            java.lang.Class<T> typeClass)
        Creates a new instance with default formatting.
        Parameters:
        textFileUrl - URL to file that should be written
        typeClass - Class of incoming data quanta
      • TextFileSink

        public TextFileSink​(java.lang.String textFileUrl,
                            FunctionDescriptor.SerializableFunction<T,​java.lang.String> formattingFunction,
                            java.lang.Class<T> typeClass)
        Creates a new instance.
        Parameters:
        textFileUrl - URL to file that should be written
        formattingFunction - formats incoming data quanta to a String representation
        typeClass - Class of incoming data quanta
      • TextFileSink

        public TextFileSink​(java.lang.String textFileUrl,
                            TransformationDescriptor<T,​java.lang.String> formattingDescriptor)
        Creates a new instance.
        Parameters:
        textFileUrl - URL to file that should be written
        formattingDescriptor - formats incoming data quanta to a String representation
      • TextFileSink

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