Package org.apache.sis.filter
Class LogicalFilter.Or<R>
java.lang.Object
org.apache.sis.internal.filter.Node
org.apache.sis.filter.FilterNode<R>
org.apache.sis.filter.LogicalFilter<R>
org.apache.sis.filter.LogicalFilter.Or<R>
- Type Parameters:
R
- the type of resources used as inputs.
- All Implemented Interfaces:
Serializable
,Predicate<R>
,Filter<R>
,Optimization.OnFilter<R>
,LogicalOperator<R>
- Enclosing class:
- LogicalFilter<R>
The "Or" operation (⋁).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.filter.LogicalFilter
LogicalFilter.And<R>, LogicalFilter.Not<R>, LogicalFilter.Or<R>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.filter.LogicalFilter
operands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LogicalFilter<R>
createSameType
(Collection<? extends Filter<? super R>> op) Creates a new logical operator of the same kind than this operator.Identification of the operation.optimize
(Optimization optimization) Tries to optimize this filter.protected char
symbol()
Symbol of the operation.boolean
Executes the logical operation.Methods inherited from class org.apache.sis.filter.LogicalFilter
getChildren, getOperands, optimize
Methods inherited from class org.apache.sis.filter.FilterNode
and, negate, or
Methods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, toGeometryWrapper, toString, unwrap, warning
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sis.internal.geoapi.filter.LogicalOperator
getExpressions
Methods inherited from interface org.apache.sis.filter.Optimization.OnFilter
and, negate, or, recreate
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
Or
Or(Collection<? extends Filter<? super R>> op) Creates a new operator for the given operands. -
Or
Creates a new operator for the two given operands.
-
-
Method Details
-
createSameType
Creates a new logical operator of the same kind than this operator.- Specified by:
createSameType
in classLogicalFilter<R>
- Parameters:
op
- operands of the new operator.- Returns:
- the new operator.
-
getOperatorType
Identification of the operation.- Returns:
- the nature of this operator.
-
symbol
protected char symbol()Symbol of the operation. -
test
Executes the logical operation.- Parameters:
object
- the object (often aFeature
instance) to evaluate.- Returns:
true
if the test(s) are passed for the provided object.
-
optimize
Tries to optimize this filter.- Parameters:
optimization
- the simplifications or optimizations to apply on this filter.- Returns:
- the simplified or optimized filter, or
this
if no optimization has been applied.
-