|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudsearchv2.model.DoubleOptions
public class DoubleOptions
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.
Constructor Summary | |
---|---|
DoubleOptions()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Double |
getDefaultValue()
A value to use for the field if the field isn't specified for a document. |
Boolean |
getFacetEnabled()
Whether facet information can be returned for the field. |
Boolean |
getReturnEnabled()
Whether the contents of the field can be returned in the search results. |
Boolean |
getSearchEnabled()
Whether the contents of the field are searchable. |
Boolean |
getSortEnabled()
Whether the field can be used to sort the search results. |
String |
getSourceField()
The name of the source field to map to the field. |
int |
hashCode()
|
Boolean |
isFacetEnabled()
Whether facet information can be returned for the field. |
Boolean |
isReturnEnabled()
Whether the contents of the field can be returned in the search results. |
Boolean |
isSearchEnabled()
Whether the contents of the field are searchable. |
Boolean |
isSortEnabled()
Whether the field can be used to sort the search results. |
void |
setDefaultValue(Double defaultValue)
A value to use for the field if the field isn't specified for a document. |
void |
setFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field. |
void |
setReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results. |
void |
setSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable. |
void |
setSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results. |
void |
setSourceField(String sourceField)
The name of the source field to map to the field. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DoubleOptions |
withDefaultValue(Double defaultValue)
A value to use for the field if the field isn't specified for a document. |
DoubleOptions |
withFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field. |
DoubleOptions |
withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results. |
DoubleOptions |
withSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable. |
DoubleOptions |
withSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results. |
DoubleOptions |
withSourceField(String sourceField)
The name of the source field to map to the field. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleOptions()
Method Detail |
---|
public Double getDefaultValue()
public void setDefaultValue(Double defaultValue)
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 DoubleOptions withDefaultValue(Double defaultValue)
Returns a reference to this object so that method calls can be chained together.
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 String getSourceField()
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
public void setSourceField(String sourceField)
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
sourceField
- The name of the source field to map to the field.public DoubleOptions withSourceField(String sourceField)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
sourceField
- The name of the source field to map to the field.
public Boolean isFacetEnabled()
public void setFacetEnabled(Boolean facetEnabled)
facetEnabled
- Whether facet information can be returned for the field.public DoubleOptions withFacetEnabled(Boolean facetEnabled)
Returns a reference to this object so that method calls can be chained together.
facetEnabled
- Whether facet information can be returned for the field.
public Boolean getFacetEnabled()
public Boolean isSearchEnabled()
public void setSearchEnabled(Boolean searchEnabled)
searchEnabled
- Whether the contents of the field are searchable.public DoubleOptions withSearchEnabled(Boolean searchEnabled)
Returns a reference to this object so that method calls can be chained together.
searchEnabled
- Whether the contents of the field are searchable.
public Boolean getSearchEnabled()
public Boolean isReturnEnabled()
public void setReturnEnabled(Boolean returnEnabled)
returnEnabled
- Whether the contents of the field can be returned in the search
results.public DoubleOptions withReturnEnabled(Boolean returnEnabled)
Returns a reference to this object so that method calls can be chained together.
returnEnabled
- Whether the contents of the field can be returned in the search
results.
public Boolean getReturnEnabled()
public Boolean isSortEnabled()
public void setSortEnabled(Boolean sortEnabled)
sortEnabled
- Whether the field can be used to sort the search results.public DoubleOptions withSortEnabled(Boolean sortEnabled)
Returns a reference to this object so that method calls can be chained together.
sortEnabled
- Whether the field can be used to sort the search results.
public Boolean getSortEnabled()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |