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 StringThe reason why the value is nil, ornullfor accepting any reason.private static final longFor 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.booleanEvaluate this filter on the given object.Methods inherited from class org.apache.sis.filter.UnaryFunction
getChildren, getExpressions, getParametersMethods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, symbol, toGeometryWrapper, toString, unwrap, warningMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sis.filter.Filter
getExpressionsMethods 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, ornullfor accepting any reason.
-
-
Constructor Details
-
IsNil
IsNil(Expression<? super R, ?> expression, String nilReason) Creates a new operator.
-
-
Method Details
-
getOperatorType
Description copied from interface:FilterReturns the nature of the operator.- Specified by:
getOperatorTypein interfaceFilter<R>- Returns:
- the nature of this operator.
-
recreate
Creates a new filter of the same type but different parameters.- Specified by:
recreatein interfaceOptimization.OnFilter<R>- Parameters:
effective- the expressions to use as a replacement of this filter expressions.- Returns:
- the new filter, or
thisif unsupported.
-
getNilReason
Returns the reason why the value is nil. -
test
Evaluate this filter on the given object.
-