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.
|
String |
nullRepresentedAsString()
This is mostly a requirement for integration with other old-style
contracts which expect a strongly String based strategy.
|
boolean |
representsNullValue(org.apache.lucene.index.IndexableField field) |
public static NotEncodingCodec SINGLETON
public String nullRepresentedAsString()
NullMarkerCodec
nullRepresentedAsString
in interface NullMarkerCodec
public void encodeNullValue(String fieldName, org.apache.lucene.document.Document document, LuceneOptions luceneOptions)
NullMarkerCodec
encodeNullValue
in interface NullMarkerCodec
fieldName
- thepublic org.apache.lucene.search.Query createNullMatchingQuery(String fieldName)
NullMarkerCodec
createNullMatchingQuery
in interface NullMarkerCodec
fieldName
- the field to target with the Querypublic boolean representsNullValue(org.apache.lucene.index.IndexableField field)
representsNullValue
in interface NullMarkerCodec
Copyright © 2006–2015 Hibernate. All rights reserved.