Interface InputGrouper

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InputGrouper
Derives a grouping key from an input.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    Derives a key for the group from identifier.
  • Method Details

    • deriveGroupKeyOptional

      String deriveGroupKeyOptional(Path identifier) throws DerivePathException
      Derives a key for the group from identifier.

      This key determines which group input belongs to e.g. like a GROUP BY key in databases.

      Parameters:
      identifier - an identifier for an input, expressed as a Path.
      Returns:
      a derived grouping-key.
      Throws:
      DerivePathException - if a key cannot be derived from identifier successfully.