Class FromDerivePath
- Direct Known Subclasses:
RemoveLastElement
Derives the grouping-key via a call to
DerivePath
.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInputGrouper
(Optional<IndexRangeNegative> groupIndexRange) Creates anInputGrouper
that can be used to derive a group-key from a particular input.protected abstract DerivePath
Selects theDerivePath
to use for deriving a key.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromDerivePath
public FromDerivePath()
-
-
Method Details
-
createInputGrouper
Creates anInputGrouper
that can be used to derive a group-key from a particular input.- Specified by:
createInputGrouper
in classGrouper
- Parameters:
groupIndexRange
- an index-range to use for grouping, by subsetting components from each input's identifier.- Returns:
- the
InputGrouper
, if grouping is enabled. OtherwiseOptional.empty()
.
-
selectDerivePath
Selects theDerivePath
to use for deriving a key.- Returns:
- the selected
DerivePath
.
-