Package lumis.portal.bigdata.query
Class FieldPresenceClause
- java.lang.Object
-
- lumis.portal.bigdata.query.FieldPresenceClause
-
- All Implemented Interfaces:
ISearchQueryFilter
@StableMinor(version="14.2", sinceVersion="8.1") public class FieldPresenceClause extends Object implements ISearchQueryFilter
ISearchQueryFilter
that checks whether a given field is present or not, accordingly to the chosen operator.
A field is present if a given document has it and it has a non-null value.
The default operator isFieldPresenceClause.Operator.PRESENT
.- Since:
- 8.1.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldPresenceClause.Operator
The available operators for this clause.
-
Constructor Summary
Constructors Constructor Description FieldPresenceClause(DocumentTypeField field)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentTypeField
getField()
Returns the field that will be checked.FieldPresenceClause.Operator
getOperator()
Returns the operator of this clause.FieldPresenceClause
setOperator(FieldPresenceClause.Operator operator)
Sets the operator.
-
-
-
Constructor Detail
-
FieldPresenceClause
public FieldPresenceClause(DocumentTypeField field)
Creates a new instance.- Parameters:
field
- the field to be checked.- Since:
- 8.1.0
-
-
Method Detail
-
setOperator
public FieldPresenceClause setOperator(FieldPresenceClause.Operator operator)
Sets the operator.- Parameters:
operator
- the operator.- Returns:
- this clause.
- Since:
- 8.1.0
-
getOperator
public FieldPresenceClause.Operator getOperator()
Returns the operator of this clause.- Returns:
- the operator of this clause.
- Since:
- 8.1.0
-
getField
public DocumentTypeField getField()
Returns the field that will be checked.- Returns:
- the field that will be checked.
- Since:
- 8.1.0
-
-