Class IfGroupIndexRange
When a
IndexRangeNegative is passed as an argument, an InputGrouper is
constructed that extracts elements from a Path.
See ExtractPathElementRange.extract(java.nio.file.Path, org.anchoranalysis.core.index.range.IndexRangeNegative) for how this occurs.
Otherwise, group is called to create a Optional<InputGrouper>.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInputGrouper(Optional<IndexRangeNegative> groupIndexRange) Creates anInputGrouperthat can be used to derive a group-key from a particular input.getGroup()Fallback to use when no group-index-range is specified.voidFallback to use when no group-index-range is specified.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
IfGroupIndexRange
public IfGroupIndexRange()
-
-
Method Details
-
createInputGrouper
Description copied from class:GrouperCreates anInputGrouperthat can be used to derive a group-key from a particular input.- Specified by:
createInputGrouperin 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().
-
getGroup
Fallback to use when no group-index-range is specified. -
setGroup
Fallback to use when no group-index-range is specified.
-