public class LuceneDoubleNullMarkerCodec extends Object
Modifier and Type | Field and Description |
---|---|
protected NullMarker |
nullMarker |
Constructor and Description |
---|
LuceneDoubleNullMarkerCodec(NullMarker nullMarker) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
createNullMatchingQuery(String fieldName)
Create a Query to find all documents which have a 'null' value encoded in the specified field
|
void |
encodeNullValue(String name,
org.apache.lucene.document.Document document,
LuceneOptions luceneOptions)
Store the null marker in the Document.
|
NullMarker |
getNullMarker() |
boolean |
representsNullValue(org.apache.lucene.index.IndexableField field)
Check if the field represents the encoding for a null element
|
String |
toString() |
protected final NullMarker nullMarker
public LuceneDoubleNullMarkerCodec(NullMarker nullMarker)
public void encodeNullValue(String name, org.apache.lucene.document.Document document, LuceneOptions luceneOptions)
NullMarkerCodec
name
- the name of the fielddocument
- the document where to store the null markerluceneOptions
- indexing optionspublic org.apache.lucene.search.Query createNullMatchingQuery(String fieldName)
NullMarkerCodec
fieldName
- the field to target with the Querypublic boolean representsNullValue(org.apache.lucene.index.IndexableField field)
NullMarkerCodec
field
- the fields to checkpublic NullMarker getNullMarker()
getNullMarker
in interface NullMarkerCodec
Copyright © 2006–2017 Hibernate. All rights reserved.