public class SourceAttribute extends Object implements Serializable
Identifies the source data for an index field. An optional data transformation can be applied to the source data when populating the index field. By default, the value of the source attribute is copied to the index field.
Constructor and Description |
---|
SourceAttribute() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SourceData |
getSourceDataCopy()
Copies data from a source document attribute to an
IndexField . |
String |
getSourceDataFunction()
Identifies the transformation to apply when copying data from a source
attribute.
|
SourceDataMap |
getSourceDataMap()
Maps source document attribute values to new values when populating
the
IndexField . |
SourceDataTrimTitle |
getSourceDataTrimTitle()
Trims common title words from a source document attribute when
populating an
IndexField . |
int |
hashCode() |
void |
setSourceDataCopy(SourceData sourceDataCopy)
Copies data from a source document attribute to an
IndexField . |
void |
setSourceDataFunction(SourceDataFunction sourceDataFunction)
Identifies the transformation to apply when copying data from a source
attribute.
|
void |
setSourceDataFunction(String sourceDataFunction)
Identifies the transformation to apply when copying data from a source
attribute.
|
void |
setSourceDataMap(SourceDataMap sourceDataMap)
Maps source document attribute values to new values when populating
the
IndexField . |
void |
setSourceDataTrimTitle(SourceDataTrimTitle sourceDataTrimTitle)
Trims common title words from a source document attribute when
populating an
IndexField . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SourceAttribute |
withSourceDataCopy(SourceData sourceDataCopy)
Copies data from a source document attribute to an
IndexField . |
SourceAttribute |
withSourceDataFunction(SourceDataFunction sourceDataFunction)
Identifies the transformation to apply when copying data from a source
attribute.
|
SourceAttribute |
withSourceDataFunction(String sourceDataFunction)
Identifies the transformation to apply when copying data from a source
attribute.
|
SourceAttribute |
withSourceDataMap(SourceDataMap sourceDataMap)
Maps source document attribute values to new values when populating
the
IndexField . |
SourceAttribute |
withSourceDataTrimTitle(SourceDataTrimTitle sourceDataTrimTitle)
Trims common title words from a source document attribute when
populating an
IndexField . |
public String getSourceDataFunction()
Constraints:
Allowed Values: Copy, TrimTitle, Map
SourceDataFunction
public void setSourceDataFunction(String sourceDataFunction)
Constraints:
Allowed Values: Copy, TrimTitle, Map
sourceDataFunction
- Identifies the transformation to apply when copying data from a source
attribute.SourceDataFunction
public SourceAttribute withSourceDataFunction(String sourceDataFunction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Copy, TrimTitle, Map
sourceDataFunction
- Identifies the transformation to apply when copying data from a source
attribute.SourceDataFunction
public void setSourceDataFunction(SourceDataFunction sourceDataFunction)
Constraints:
Allowed Values: Copy, TrimTitle, Map
sourceDataFunction
- Identifies the transformation to apply when copying data from a source
attribute.SourceDataFunction
public SourceAttribute withSourceDataFunction(SourceDataFunction sourceDataFunction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Copy, TrimTitle, Map
sourceDataFunction
- Identifies the transformation to apply when copying data from a source
attribute.SourceDataFunction
public SourceData getSourceDataCopy()
IndexField
.IndexField
.public void setSourceDataCopy(SourceData sourceDataCopy)
IndexField
.sourceDataCopy
- Copies data from a source document attribute to an
IndexField
.public SourceAttribute withSourceDataCopy(SourceData sourceDataCopy)
IndexField
.
Returns a reference to this object so that method calls can be chained together.
sourceDataCopy
- Copies data from a source document attribute to an
IndexField
.public SourceDataTrimTitle getSourceDataTrimTitle()
IndexField
. This can be used to create an
IndexField
you can use for sorting.IndexField
. This can be used to create an
IndexField
you can use for sorting.public void setSourceDataTrimTitle(SourceDataTrimTitle sourceDataTrimTitle)
IndexField
. This can be used to create an
IndexField
you can use for sorting.sourceDataTrimTitle
- Trims common title words from a source document attribute when
populating an IndexField
. This can be used to create an
IndexField
you can use for sorting.public SourceAttribute withSourceDataTrimTitle(SourceDataTrimTitle sourceDataTrimTitle)
IndexField
. This can be used to create an
IndexField
you can use for sorting.
Returns a reference to this object so that method calls can be chained together.
sourceDataTrimTitle
- Trims common title words from a source document attribute when
populating an IndexField
. This can be used to create an
IndexField
you can use for sorting.public SourceDataMap getSourceDataMap()
IndexField
.IndexField
.public void setSourceDataMap(SourceDataMap sourceDataMap)
IndexField
.sourceDataMap
- Maps source document attribute values to new values when populating
the IndexField
.public SourceAttribute withSourceDataMap(SourceDataMap sourceDataMap)
IndexField
.
Returns a reference to this object so that method calls can be chained together.
sourceDataMap
- Maps source document attribute values to new values when populating
the IndexField
.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.