add javadocs to null value functions

This commit is contained in:
Ryan Ernst 2015-06-09 09:46:05 -07:00
parent ba15a2f6cb
commit 6719b1b79e
1 changed files with 3 additions and 0 deletions

View File

@ -291,14 +291,17 @@ public class MappedFieldType extends FieldType {
this.similarity = similarity;
}
/** Returns the value that should be added when JSON null is found, or null if no value should be added */
public Object nullValue() {
return nullValue;
}
/** Returns the null value stringified, so it can be used for e.g. _all field, or null if there is no null value */
public String nullValueAsString() {
return nullValueAsString;
}
/** Sets the null value and initializes the string version */
public void setNullValue(Object nullValue) {
checkIfFrozen();
this.nullValue = nullValue;