public class IfGroupIndexRange extends Grouper
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>
.
Constructor and Description |
---|
IfGroupIndexRange() |
Modifier and Type | Method and Description |
---|---|
Optional<InputGrouper> |
createInputGrouper(Optional<IndexRangeNegative> groupIndexRange)
Creates an
InputGrouper that can be used to derive a group-key from a particular
input. |
Grouper |
getGroup()
Fallback to use when no group-index-range is specified.
|
void |
setGroup(Grouper group)
Fallback to use when no group-index-range is specified.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Optional<InputGrouper> createInputGrouper(Optional<IndexRangeNegative> groupIndexRange)
Grouper
InputGrouper
that can be used to derive a group-key from a particular
input.createInputGrouper
in class Grouper
groupIndexRange
- an index-range to use for grouping, by subsetting components from each
input's identifier.InputGrouper
, if grouping is enabled. Otherwise Optional.empty()
.public Grouper getGroup()
public void setGroup(Grouper group)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.