Interface TransformingGenerator<T,S>

Type Parameters:
T - iteration-type
S - type after any necessary preprocessing
All Superinterfaces:
ElementWriter<T>, Generator<T>
All Known Implementing Classes:
AnnotationAggregateCSVGenerator, AssignmentGenerator, ChannelGenerator, CSVGenerator, DictionaryGenerator, DisplayStackGenerator, DrawCroppedObjectsGenerator, DrawObjectOnStackGenerator, DrawObjectsGenerator, ExtractBoundingBoxAreaFromStackGenerator, FeatureTableCSVGenerator, FlattenStackGenerator, HDF5ObjectsGenerator, HistogramCSVGenerator, ObjectAsMaskGenerator, ObjectOutputStreamGenerator, ObjectsAsGrayscaleGenerator, ObjectsAsRGBGenerator, ObjectsAsUniqueValueGenerator, ObjectsMergedAsMaskGenerator, OneStageGenerator, RasterGenerator, RasterGeneratorBridge, RasterGeneratorDelegateToDisplayStack, RasterGeneratorDelegateToRaster, RasterGeneratorSelectFormat, SerializedGenerator, SingleFileTypeGenerator, SingleFileTypeGeneratorBridge, StackGenerator, StringGenerator, TransformingGeneratorBridge, XMLGenerator, XStreamGenerator

public interface TransformingGenerator<T,S> extends Generator<T>
Performs preprocessing to transform the element into another type before being written to the filesystem.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    transform(T element)
    Applies any necessary preprocessing to create an element suitable for writing to the filesystem.

    Methods inherited from interface org.anchoranalysis.io.output.writer.ElementWriter

    write, writeWithIndex
  • Method Details

    • transform

      S transform(T element) throws OutputWriteFailedException
      Applies any necessary preprocessing to create an element suitable for writing to the filesystem.
      Parameters:
      element - element to be assigned and then transformed.
      Returns:
      the transformed element after necessary preprocessing.
      Throws:
      OutputWriteFailedException - if anything goes wrong.