|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudsearch.model.IndexField
public class IndexField
Defines a field in the index, including its name, type, and the source of its data. The IndexFieldType
indicates which of the options
will be present. It is invalid to specify options for a type other than the IndexFieldType
.
Constructor Summary | |
---|---|
IndexField()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getIndexFieldName()
The name of a field in the search index. |
String |
getIndexFieldType()
The type of field. |
LiteralOptions |
getLiteralOptions()
Options for literal field. |
List<SourceAttribute> |
getSourceAttributes()
An optional list of source attributes that provide data for this index field. |
TextOptions |
getTextOptions()
Options for text field. |
UIntOptions |
getUIntOptions()
Options for an unsigned integer field. |
int |
hashCode()
|
void |
setIndexFieldName(String indexFieldName)
The name of a field in the search index. |
void |
setIndexFieldType(IndexFieldType indexFieldType)
The type of field. |
void |
setIndexFieldType(String indexFieldType)
The type of field. |
void |
setLiteralOptions(LiteralOptions literalOptions)
Options for literal field. |
void |
setSourceAttributes(Collection<SourceAttribute> sourceAttributes)
An optional list of source attributes that provide data for this index field. |
void |
setTextOptions(TextOptions textOptions)
Options for text field. |
void |
setUIntOptions(UIntOptions uIntOptions)
Options for an unsigned integer field. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
IndexField |
withIndexFieldName(String indexFieldName)
The name of a field in the search index. |
IndexField |
withIndexFieldType(IndexFieldType indexFieldType)
The type of field. |
IndexField |
withIndexFieldType(String indexFieldType)
The type of field. |
IndexField |
withLiteralOptions(LiteralOptions literalOptions)
Options for literal field. |
IndexField |
withSourceAttributes(Collection<SourceAttribute> sourceAttributes)
An optional list of source attributes that provide data for this index field. |
IndexField |
withSourceAttributes(SourceAttribute... sourceAttributes)
An optional list of source attributes that provide data for this index field. |
IndexField |
withTextOptions(TextOptions textOptions)
Options for text field. |
IndexField |
withUIntOptions(UIntOptions uIntOptions)
Options for an unsigned integer field. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IndexField()
Method Detail |
---|
public String getIndexFieldName()
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
public void setIndexFieldName(String indexFieldName)
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
indexFieldName
- The name of a field in the search index. Field names must begin with a
letter and can contain the following characters: a-z (lowercase), 0-9,
and _ (underscore). Uppercase letters and hyphens are not allowed. The
names "body", "docid", and "text_relevance" are reserved and cannot be
specified as field or rank expression names.public IndexField withIndexFieldName(String indexFieldName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
indexFieldName
- The name of a field in the search index. Field names must begin with a
letter and can contain the following characters: a-z (lowercase), 0-9,
and _ (underscore). Uppercase letters and hyphens are not allowed. The
names "body", "docid", and "text_relevance" are reserved and cannot be
specified as field or rank expression names.
public String getIndexFieldType()
Constraints:
Allowed Values: uint, literal, text
IndexFieldType
public void setIndexFieldType(String indexFieldType)
Constraints:
Allowed Values: uint, literal, text
indexFieldType
- The type of field. Based on this type, exactly one of the
UIntOptions, LiteralOptions or TextOptions must
be present.IndexFieldType
public IndexField withIndexFieldType(String indexFieldType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: uint, literal, text
indexFieldType
- The type of field. Based on this type, exactly one of the
UIntOptions, LiteralOptions or TextOptions must
be present.
IndexFieldType
public void setIndexFieldType(IndexFieldType indexFieldType)
Constraints:
Allowed Values: uint, literal, text
indexFieldType
- The type of field. Based on this type, exactly one of the
UIntOptions, LiteralOptions or TextOptions must
be present.IndexFieldType
public IndexField withIndexFieldType(IndexFieldType indexFieldType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: uint, literal, text
indexFieldType
- The type of field. Based on this type, exactly one of the
UIntOptions, LiteralOptions or TextOptions must
be present.
IndexFieldType
public UIntOptions getUIntOptions()
IndexFieldType
specifies the field is of type unsigned
integer.
IndexFieldType
specifies the field is of type unsigned
integer.public void setUIntOptions(UIntOptions uIntOptions)
IndexFieldType
specifies the field is of type unsigned
integer.
uIntOptions
- Options for an unsigned integer field. Present if
IndexFieldType
specifies the field is of type unsigned
integer.public IndexField withUIntOptions(UIntOptions uIntOptions)
IndexFieldType
specifies the field is of type unsigned
integer.
Returns a reference to this object so that method calls can be chained together.
uIntOptions
- Options for an unsigned integer field. Present if
IndexFieldType
specifies the field is of type unsigned
integer.
public LiteralOptions getLiteralOptions()
IndexFieldType
specifies the field is of type literal.
IndexFieldType
specifies the field is of type literal.public void setLiteralOptions(LiteralOptions literalOptions)
IndexFieldType
specifies the field is of type literal.
literalOptions
- Options for literal field. Present if IndexFieldType
specifies the field is of type literal.public IndexField withLiteralOptions(LiteralOptions literalOptions)
IndexFieldType
specifies the field is of type literal.
Returns a reference to this object so that method calls can be chained together.
literalOptions
- Options for literal field. Present if IndexFieldType
specifies the field is of type literal.
public TextOptions getTextOptions()
IndexFieldType
specifies the field is of type text.
IndexFieldType
specifies the field is of type text.public void setTextOptions(TextOptions textOptions)
IndexFieldType
specifies the field is of type text.
textOptions
- Options for text field. Present if IndexFieldType
specifies the field is of type text.public IndexField withTextOptions(TextOptions textOptions)
IndexFieldType
specifies the field is of type text.
Returns a reference to this object so that method calls can be chained together.
textOptions
- Options for text field. Present if IndexFieldType
specifies the field is of type text.
public List<SourceAttribute> getSourceAttributes()
IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.
IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.public void setSourceAttributes(Collection<SourceAttribute> sourceAttributes)
IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.
sourceAttributes
- An optional list of source attributes that provide data for this index
field. If not specified, the data is pulled from a source attribute
with the same name as this IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.public IndexField withSourceAttributes(SourceAttribute... sourceAttributes)
IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.
Returns a reference to this object so that method calls can be chained together.
sourceAttributes
- An optional list of source attributes that provide data for this index
field. If not specified, the data is pulled from a source attribute
with the same name as this IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.
public IndexField withSourceAttributes(Collection<SourceAttribute> sourceAttributes)
IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.
Returns a reference to this object so that method calls can be chained together.
sourceAttributes
- An optional list of source attributes that provide data for this index
field. If not specified, the data is pulled from a source attribute
with the same name as this IndexField
. When one or more
source attributes are specified, an optional data transformation can
be applied to the source data when populating the index field. You can
configure a maximum of 20 sources for an IndexField
.
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 |