Package org.apache.sis.filter
Class UnaryFunction.IsNil<R>
java.lang.Object
org.apache.sis.internal.filter.Node
org.apache.sis.filter.UnaryFunction<R,Object>
org.apache.sis.filter.UnaryFunction.IsNil<R>
- Type Parameters:
R
- the type of resources used as inputs.
- All Implemented Interfaces:
Serializable
,Predicate<R>
,Filter<R>
,Optimization.OnFilter<R>
- Enclosing class:
- UnaryFunction<R,
V>
static final class UnaryFunction.IsNil<R>
extends UnaryFunction<R,Object>
implements Filter<R>, Optimization.OnFilter<R>
Filter operator that checks if an expression's value is nil.
The difference with
UnaryFunction.IsNull
is that a value should exist but
cannot be provided for the reason given by getNilReason()
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.filter.UnaryFunction
UnaryFunction.IsNil<R>, UnaryFunction.IsNull<R>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The reason why the value is nil, ornull
for accepting any reason.private static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.filter.UnaryFunction
expression
-
Constructor Summary
ConstructorsConstructorDescriptionIsNil
(Expression<? super R, ?> expression, String nilReason) Creates a new operator. -
Method Summary
Modifier and TypeMethodDescriptionReturns the reason why the value is nil.Returns the nature of the operator.recreate
(Expression<? super R, ?>[] effective) Creates a new filter of the same type but different parameters.boolean
Evaluate this filter on the given object.Methods inherited from class org.apache.sis.filter.UnaryFunction
getChildren, getExpressions, getParameters
Methods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, symbol, 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.filter.Filter
getExpressions
Methods inherited from interface org.apache.sis.filter.Optimization.OnFilter
and, negate, optimize, or
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
nilReason
The reason why the value is nil, ornull
for accepting any reason.
-
-
Constructor Details
-
IsNil
IsNil(Expression<? super R, ?> expression, String nilReason) Creates a new operator.
-
-
Method Details
-
getOperatorType
Description copied from interface:Filter
Returns the nature of the operator.- Specified by:
getOperatorType
in interfaceFilter<R>
- Returns:
- the nature of this operator.
-
recreate
Creates a new filter of the same type but different parameters.- Specified by:
recreate
in interfaceOptimization.OnFilter<R>
- Parameters:
effective
- the expressions to use as a replacement of this filter expressions.- Returns:
- the new filter, or
this
if unsupported.
-
getNilReason
Returns the reason why the value is nil. -
test
Evaluate this filter on the given object.
-