public class SourceDataMap
extends java.lang.Object
implements java.io.Serializable
Specifies how to map source attribute values to custom values when populating an IndexField .
| コンストラクタと説明 |
|---|
SourceDataMap() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
SourceDataMap |
addCasesEntry(java.lang.String key,
java.lang.String value)
A map that translates source field values to custom values.
|
SourceDataMap |
clearCasesEntries()
Removes all the entries added into Cases.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getCases()
A map that translates source field values to custom values.
|
java.lang.String |
getDefaultValue()
The value of a field or source document attribute.
|
java.lang.String |
getSourceName()
The name of the document source field to add to this
IndexField. |
int |
hashCode() |
void |
setCases(java.util.Map<java.lang.String,java.lang.String> cases)
A map that translates source field values to custom values.
|
void |
setDefaultValue(java.lang.String defaultValue)
The value of a field or source document attribute.
|
void |
setSourceName(java.lang.String sourceName)
The name of the document source field to add to this
IndexField. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SourceDataMap |
withCases(java.util.Map<java.lang.String,java.lang.String> cases)
A map that translates source field values to custom values.
|
SourceDataMap |
withDefaultValue(java.lang.String defaultValue)
The value of a field or source document attribute.
|
SourceDataMap |
withSourceName(java.lang.String sourceName)
The name of the document source field to add to this
IndexField. |
public java.lang.String getSourceName()
IndexField.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
IndexField.public void setSourceName(java.lang.String sourceName)
IndexField.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
sourceName - The name of the document source field to add to this
IndexField.public SourceDataMap withSourceName(java.lang.String sourceName)
IndexField.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
sourceName - The name of the document source field to add to this
IndexField.public java.lang.String getDefaultValue()
Constraints:
Length: 0 - 1024
public void setDefaultValue(java.lang.String defaultValue)
Constraints:
Length: 0 - 1024
defaultValue - The value of a field or source document attribute.public SourceDataMap withDefaultValue(java.lang.String defaultValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
defaultValue - The value of a field or source document attribute.public java.util.Map<java.lang.String,java.lang.String> getCases()
public void setCases(java.util.Map<java.lang.String,java.lang.String> cases)
cases - A map that translates source field values to custom values.public SourceDataMap withCases(java.util.Map<java.lang.String,java.lang.String> cases)
Returns a reference to this object so that method calls can be chained together.
cases - A map that translates source field values to custom values.public SourceDataMap addCasesEntry(java.lang.String key, java.lang.String value)
The method adds a new key-value pair into Cases parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Cases.value - The corresponding value of the entry to be added into Cases.public SourceDataMap clearCasesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object