public class ElasticsearchBooleanNullMarkerCodec extends Object
| Modifier and Type | Field and Description |
|---|---|
protected NullMarker |
nullMarker |
| Constructor and Description |
|---|
ElasticsearchBooleanNullMarkerCodec(NullMarker nullMarker) |
| Modifier and Type | Method and Description |
|---|---|
Query |
createNullMatchingQuery(String fieldName)
Create a Query to find all documents which have a 'null' value encoded in the specified field
|
void |
encodeNullValue(String fieldName,
Document document,
LuceneOptions luceneOptions)
Store the null marker in the Document.
|
NullMarker |
getNullMarker() |
boolean |
representsNullValue(IndexableField field)
Check if the field represents the encoding for a null element
|
String |
toString() |
protected final NullMarker nullMarker
public ElasticsearchBooleanNullMarkerCodec(NullMarker nullMarker)
public Query createNullMatchingQuery(String fieldName)
NullMarkerCodecfieldName - the field to target with the Querypublic NullMarker getNullMarker()
getNullMarker in interface NullMarkerCodecpublic void encodeNullValue(String fieldName, Document document, LuceneOptions luceneOptions)
NullMarkerCodecencodeNullValue in interface NullMarkerCodecfieldName - the name of the fielddocument - the document where to store the null markerluceneOptions - indexing optionspublic boolean representsNullValue(IndexableField field)
NullMarkerCodecrepresentsNullValue in interface NullMarkerCodecfield - the fields to checkCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved