public abstract class ElasticsearchAsNullNullMarkerCodec extends Object implements NullMarkerCodec
NullMarkerCodec
s that index null values as the JSON "null" value.Modifier and Type | Field and Description |
---|---|
protected NullMarker |
nullMarker |
Constructor and Description |
---|
ElasticsearchAsNullNullMarkerCodec(NullMarker nullMarker) |
Modifier and Type | Method and Description |
---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createNullMatchingQuery
protected final NullMarker nullMarker
public ElasticsearchAsNullNullMarkerCodec(NullMarker nullMarker)
public NullMarker getNullMarker()
getNullMarker
in interface NullMarkerCodec
public void encodeNullValue(String fieldName, Document document, LuceneOptions luceneOptions)
NullMarkerCodec
encodeNullValue
in interface NullMarkerCodec
fieldName
- the name of the fielddocument
- the document where to store the null markerluceneOptions
- indexing optionspublic boolean representsNullValue(IndexableField field)
NullMarkerCodec
representsNullValue
in interface NullMarkerCodec
field
- the fields to checkCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved