Package lumis.portal.bigdata.query
Class DocumentLocaleClause
- java.lang.Object
-
- lumis.portal.bigdata.query.DocumentLocaleClause
-
- All Implemented Interfaces:
ISearchQueryFilter
@StableMinor(version="14.0", sinceVersion="8.1") public class DocumentLocaleClause extends Object implements ISearchQueryFilter
Clause to filter documents by their locale.
The matched documents must match one of the following rules:
-
Document
locale
equals to the target locale. -
Document
locale
does not match the target local, but it is thedefault document for missing locales
and there's noequivalent document
for the target locale. -
Document has no
locale
set.
- Since:
- 8.1.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
- See Also:
StandardDocument.Standard
,StandardDocumentType
-
-
Constructor Summary
Constructors Constructor Description DocumentLocaleClause(String targetLocale)
Creates a new instance.DocumentLocaleClause(Locale targetLocale)
Creates a new instance.
-
-
-
Constructor Detail
-
DocumentLocaleClause
public DocumentLocaleClause(Locale targetLocale)
Creates a new instance.- Parameters:
targetLocale
- the target locale.- Since:
- 8.1.0
-
DocumentLocaleClause
public DocumentLocaleClause(String targetLocale)
Creates a new instance.- Parameters:
targetLocale
- the target locale.- Since:
- 8.1.0
-
-
Method Detail
-
getTargetLocale
public String getTargetLocale()
Returns the target locale.- Returns:
- the target locale.
- Since:
- 8.1.0
-
-