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

View File

@ -291,14 +291,17 @@ public class MappedFieldType extends FieldType {
this.similarity = similarity; 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() { public Object nullValue() {
return 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() { public String nullValueAsString() {
return nullValueAsString; return nullValueAsString;
} }
/** Sets the null value and initializes the string version */
public void setNullValue(Object nullValue) { public void setNullValue(Object nullValue) {
checkIfFrozen(); checkIfFrozen();
this.nullValue = nullValue; this.nullValue = nullValue;