|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodbv2.model.Projection
public class Projection
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
Constructor Summary | |
---|---|
Projection()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<java.lang.String> |
getNonKeyAttributes()
Represents the non-key attribute names which will be projected into the index. |
java.lang.String |
getProjectionType()
The set of attributes that are projected into the index: |
int |
hashCode()
|
void |
setNonKeyAttributes(java.util.Collection<java.lang.String> nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index. |
void |
setProjectionType(ProjectionType projectionType)
The set of attributes that are projected into the index: |
void |
setProjectionType(java.lang.String projectionType)
The set of attributes that are projected into the index: |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Projection |
withNonKeyAttributes(java.util.Collection<java.lang.String> nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index. |
Projection |
withNonKeyAttributes(java.lang.String... nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index. |
Projection |
withProjectionType(ProjectionType projectionType)
The set of attributes that are projected into the index: |
Projection |
withProjectionType(java.lang.String projectionType)
The set of attributes that are projected into the index: |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Projection()
Method Detail |
---|
public java.lang.String getProjectionType()
KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
Constraints:
Allowed Values: ALL, KEYS_ONLY, INCLUDE
KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
ProjectionType
public void setProjectionType(java.lang.String projectionType)
KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
Constraints:
Allowed Values: ALL, KEYS_ONLY, INCLUDE
projectionType
- The set of attributes that are projected into the index: KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
ProjectionType
public Projection withProjectionType(java.lang.String projectionType)
KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ALL, KEYS_ONLY, INCLUDE
projectionType
- The set of attributes that are projected into the index: KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
ProjectionType
public void setProjectionType(ProjectionType projectionType)
KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
Constraints:
Allowed Values: ALL, KEYS_ONLY, INCLUDE
projectionType
- The set of attributes that are projected into the index: KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
ProjectionType
public Projection withProjectionType(ProjectionType projectionType)
KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ALL, KEYS_ONLY, INCLUDE
projectionType
- The set of attributes that are projected into the index: KEYS_ONLY
- Only the index and primary keys are
projected into the index.
INCLUDE
- Only
the specified table attributes are projected into the index. The list
of projected attributes are in NonKeyAttributes.
ALL
- All of the table attributes are projected into
the index.
ProjectionType
public java.util.List<java.lang.String> getNonKeyAttributes()
For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
Constraints:
Length: 1 - 20
For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
public void setNonKeyAttributes(java.util.Collection<java.lang.String> nonKeyAttributes)
For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
Constraints:
Length: 1 - 20
nonKeyAttributes
- Represents the non-key attribute names which will be projected into
the index. For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
public Projection withNonKeyAttributes(java.lang.String... nonKeyAttributes)
For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 20
nonKeyAttributes
- Represents the non-key attribute names which will be projected into
the index. For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
public Projection withNonKeyAttributes(java.util.Collection<java.lang.String> nonKeyAttributes)
For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 20
nonKeyAttributes
- Represents the non-key attribute names which will be projected into
the index. For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |