public class KeywordBasedNullCodec extends Object implements NullMarkerCodec
Constructor and Description |
---|
KeywordBasedNullCodec(String indexNullAs) |
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 name,
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(IndexableField field)
Check if the field represents the encoding for a null element
|
public KeywordBasedNullCodec(String indexNullAs)
public String nullRepresentedAsString()
NullMarkerCodec
nullRepresentedAsString
in interface NullMarkerCodec
public void encodeNullValue(String name, Document document, LuceneOptions luceneOptions)
NullMarkerCodec
encodeNullValue
in interface NullMarkerCodec
name
- the name of the fielddocument
- the document where to store the null markerluceneOptions
- indexing optionspublic Query createNullMatchingQuery(String fieldName)
NullMarkerCodec
createNullMatchingQuery
in interface NullMarkerCodec
fieldName
- the field to target with the Querypublic boolean representsNullValue(IndexableField field)
NullMarkerCodec
representsNullValue
in interface NullMarkerCodec
field
- the fields to checkCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved