public class DoubleOptions
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Options for a double-precision 64-bit floating point field. Present if
IndexFieldType
specifies the field is of type
double
. All options are enabled by default.
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
defaultValue
A value to use for the field if the field isn't specified for a document.
|
private java.lang.Boolean |
facetEnabled
Whether facet information can be returned for the field.
|
private java.lang.Boolean |
returnEnabled
Whether the contents of the field can be returned in the search results.
|
private java.lang.Boolean |
searchEnabled
Whether the contents of the field are searchable.
|
private java.lang.Boolean |
sortEnabled
Whether the field can be used to sort the search results.
|
private java.lang.String |
sourceField
The name of the source field to map to the field.
|
Constructor and Description |
---|
DoubleOptions() |
Modifier and Type | Method and Description |
---|---|
DoubleOptions |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getDefaultValue()
A value to use for the field if the field isn't specified for a document.
|
java.lang.Boolean |
getFacetEnabled()
Whether facet information can be returned for the field.
|
java.lang.Boolean |
getReturnEnabled()
Whether the contents of the field can be returned in the search results.
|
java.lang.Boolean |
getSearchEnabled()
Whether the contents of the field are searchable.
|
java.lang.Boolean |
getSortEnabled()
Whether the field can be used to sort the search results.
|
java.lang.String |
getSourceField()
The name of the source field to map to the field.
|
int |
hashCode() |
java.lang.Boolean |
isFacetEnabled()
Whether facet information can be returned for the field.
|
java.lang.Boolean |
isReturnEnabled()
Whether the contents of the field can be returned in the search results.
|
java.lang.Boolean |
isSearchEnabled()
Whether the contents of the field are searchable.
|
java.lang.Boolean |
isSortEnabled()
Whether the field can be used to sort the search results.
|
void |
setDefaultValue(java.lang.Double defaultValue)
A value to use for the field if the field isn't specified for a document.
|
void |
setFacetEnabled(java.lang.Boolean facetEnabled)
Whether facet information can be returned for the field.
|
void |
setReturnEnabled(java.lang.Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
|
void |
setSearchEnabled(java.lang.Boolean searchEnabled)
Whether the contents of the field are searchable.
|
void |
setSortEnabled(java.lang.Boolean sortEnabled)
Whether the field can be used to sort the search results.
|
void |
setSourceField(java.lang.String sourceField)
The name of the source field to map to the field.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DoubleOptions |
withDefaultValue(java.lang.Double defaultValue)
A value to use for the field if the field isn't specified for a document.
|
DoubleOptions |
withFacetEnabled(java.lang.Boolean facetEnabled)
Whether facet information can be returned for the field.
|
DoubleOptions |
withReturnEnabled(java.lang.Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
|
DoubleOptions |
withSearchEnabled(java.lang.Boolean searchEnabled)
Whether the contents of the field are searchable.
|
DoubleOptions |
withSortEnabled(java.lang.Boolean sortEnabled)
Whether the field can be used to sort the search results.
|
DoubleOptions |
withSourceField(java.lang.String sourceField)
The name of the source field to map to the field.
|
private java.lang.Double defaultValue
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
private java.lang.String sourceField
The name of the source field to map to the field.
private java.lang.Boolean facetEnabled
Whether facet information can be returned for the field.
private java.lang.Boolean searchEnabled
Whether the contents of the field are searchable.
private java.lang.Boolean returnEnabled
Whether the contents of the field can be returned in the search results.
private java.lang.Boolean sortEnabled
Whether the field can be used to sort the search results.
public void setDefaultValue(java.lang.Double defaultValue)
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
defaultValue
- A value to use for the field if the field isn't specified for a
document. This can be important if you are using the field in an
expression and that field is not present in every document.public java.lang.Double getDefaultValue()
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
public DoubleOptions withDefaultValue(java.lang.Double defaultValue)
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
defaultValue
- A value to use for the field if the field isn't specified for a
document. This can be important if you are using the field in an
expression and that field is not present in every document.public void setSourceField(java.lang.String sourceField)
The name of the source field to map to the field.
sourceField
- The name of the source field to map to the field.public java.lang.String getSourceField()
The name of the source field to map to the field.
public DoubleOptions withSourceField(java.lang.String sourceField)
The name of the source field to map to the field.
sourceField
- The name of the source field to map to the field.public void setFacetEnabled(java.lang.Boolean facetEnabled)
Whether facet information can be returned for the field.
facetEnabled
- Whether facet information can be returned for the field.public java.lang.Boolean getFacetEnabled()
Whether facet information can be returned for the field.
public DoubleOptions withFacetEnabled(java.lang.Boolean facetEnabled)
Whether facet information can be returned for the field.
facetEnabled
- Whether facet information can be returned for the field.public java.lang.Boolean isFacetEnabled()
Whether facet information can be returned for the field.
public void setSearchEnabled(java.lang.Boolean searchEnabled)
Whether the contents of the field are searchable.
searchEnabled
- Whether the contents of the field are searchable.public java.lang.Boolean getSearchEnabled()
Whether the contents of the field are searchable.
public DoubleOptions withSearchEnabled(java.lang.Boolean searchEnabled)
Whether the contents of the field are searchable.
searchEnabled
- Whether the contents of the field are searchable.public java.lang.Boolean isSearchEnabled()
Whether the contents of the field are searchable.
public void setReturnEnabled(java.lang.Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
returnEnabled
- Whether the contents of the field can be returned in the search
results.public java.lang.Boolean getReturnEnabled()
Whether the contents of the field can be returned in the search results.
public DoubleOptions withReturnEnabled(java.lang.Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
returnEnabled
- Whether the contents of the field can be returned in the search
results.public java.lang.Boolean isReturnEnabled()
Whether the contents of the field can be returned in the search results.
public void setSortEnabled(java.lang.Boolean sortEnabled)
Whether the field can be used to sort the search results.
sortEnabled
- Whether the field can be used to sort the search results.public java.lang.Boolean getSortEnabled()
Whether the field can be used to sort the search results.
public DoubleOptions withSortEnabled(java.lang.Boolean sortEnabled)
Whether the field can be used to sort the search results.
sortEnabled
- Whether the field can be used to sort the search results.public java.lang.Boolean isSortEnabled()
Whether the field can be used to sort the search results.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DoubleOptions clone()
clone
in class java.lang.Object