public class NotEncodingCodec extends Object implements NullMarkerCodec
| Modifier and Type | Field and Description |
|---|---|
static NotEncodingCodec |
SINGLETON |
| 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 fieldName,
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
|
public static final NotEncodingCodec SINGLETON
public NullMarker getNullMarker()
getNullMarker in interface NullMarkerCodecpublic void encodeNullValue(String fieldName, org.apache.lucene.document.Document document, LuceneOptions luceneOptions)
NullMarkerCodecencodeNullValue in interface NullMarkerCodecfieldName - the name of the fielddocument - the document where to store the null markerluceneOptions - indexing optionspublic org.apache.lucene.search.Query createNullMatchingQuery(String fieldName)
NullMarkerCodeccreateNullMatchingQuery in interface NullMarkerCodecfieldName - the field to target with the Querypublic boolean representsNullValue(org.apache.lucene.index.IndexableField field)
NullMarkerCodecrepresentsNullValue in interface NullMarkerCodecfield - the fields to checkCopyright © 2006–2017 Hibernate. All rights reserved.