public class PositionFilter extends AbstractFilter
| Constructor and Description |
|---|
PositionFilter(String[] propIds,
Long start,
Granularity startGran,
Long finish,
Granularity finishGran)
Creates a filter with a position range.
|
PositionFilter(String[] propIds,
Long start,
Granularity startGran,
Long finish,
Granularity finishGran,
Interval.Side startSide,
Interval.Side finishSide)
Initializes a filter with a position range.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(FilterVisitor visitor)
Performs some processing on this filter.
|
boolean |
equals(Object obj) |
Long |
getFinish()
Returns the finish position supplied in the constructor.
|
Granularity |
getFinishGranularity()
Returns the
Granularity with which to interpret the finish
position. |
Interval.Side |
getFinishSide()
Returns the side of the proposition to which to apply the upper bound.
|
Long |
getMaximumFinish()
Returns the maximum finish position in Protempa's
Long
representation. |
Long |
getMaximumStart()
Returns the maximum start position in Protempa's
Long
representation. |
Long |
getMinimumFinish()
Returns the minimum finish position in Protempa's
Long
representation. |
Long |
getMinimumStart()
Returns the minimum start position in Protempa's
Long
representation. |
Long |
getStart()
Returns the start position supplied in the constructor.
|
Granularity |
getStartGranularity()
Returns the
Granularity with which to interpret the start
position. |
Interval.Side |
getStartSide()
Returns the side of the proposition to which to apply the lower bound.
|
int |
hashCode() |
String |
toString() |
andIterator, chainLength, filterArrayToChain, filterChainToArray, getAnd, getPropositionIds, setAndpublic PositionFilter(String[] propIds, Long start, Granularity startGran, Long finish, Granularity finishGran)
propIds - a String[] of proposition ids on which to filter.start - the start position in Protempa's Long
representation.startGran - the Granularity with which to interpret the
start position.finish - the finish position in Protempa's Long
representation.finishGran - the Granularity with which to interpret the
finish position.public PositionFilter(String[] propIds, Long start, Granularity startGran, Long finish, Granularity finishGran, Interval.Side startSide, Interval.Side finishSide)
propIds - a String[] of proposition ids on which to filter.start - the start position in Protempa's Long
representation.startGran - the Granularity with which to interpret the
start position.finish - the finish position in Protempa's Long
representation.finishGran - the Granularity with which to interpret the
finish position.startSide - the Interval.Side of the proposition to which to apply
the start bound. The default is Side.START (if null
is specified). Ignored for timestamped propositions.finishSide - the Interval.Side of the proposition to which to apply
the finish bound. The default is Side.FINISH (if
null is specified). Ignored for timestamped propositions.public Granularity getStartGranularity()
Granularity with which to interpret the start
position.Granularity.public Granularity getFinishGranularity()
Granularity with which to interpret the finish
position.Granularity.public Long getMaximumFinish()
Long
representation.Long.public Long getMaximumStart()
Long
representation.Long.public Long getMinimumFinish()
Long
representation.Long.public Long getMinimumStart()
Long
representation.Long.public Long getStart()
Long.public Long getFinish()
Long.public Interval.Side getStartSide()
Interval.Side.public Interval.Side getFinishSide()
Interval.Side.public void accept(FilterVisitor visitor)
Filtervisitor - a FilterVisitor. Cannot be null.public String toString()
toString in class AbstractFilterCopyright © 2012–2017 Emory University. All rights reserved.