Interface DatumFilterService

All Superinterfaces:
Identifiable

public interface DatumFilterService extends Identifiable
A service API for transforming and filtering datum samples.
Since:
2.0
Version:
1.0
Author:
matt
  • Field Details

    • PARAM_TEST_ONLY

      static final String PARAM_TEST_ONLY
      A parameter key signaling the transform is for testing purposes only, and as such should not have any persistent side-effects.

      The mere presence of this parameter should be treated as testing mode should be used. The parameter value can be anything.

      See Also:
  • Method Details

    • filter

      DatumSamplesOperations filter(Datum datum, DatumSamplesOperations samples, Map<String,Object> parameters)
      Transform a samples instance.

      Generally this method is not meant to make changes to the passed in samples instance. Rather it should apply changes to a copy of samples and return the copy. If no changes are necessary then the samples instance may be returned.

      This method may also return null to indicate the samples instance should not be processed, or that there is essentially no data to associate with this particular datum.

      Parameters:
      datum - the datum associated with samples
      samples - the samples object to transform
      parameters - optional implementation-specific parameters to pass to the transformer
      Returns:
      the transformed samples instance, which may be the samples instance or a new instance, or null to indicate the samples should be discarded
    • getDescription

      default String getDescription()
      Get a description of this transformer.

      This method should return a meaningful description of this service, suitable for users to see.

      Returns:
      a friendly description