mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-18 19:05:06 +00:00
add javadocs to null value functions
This commit is contained in:
parent
ba15a2f6cb
commit
6719b1b79e
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user