Package org.leo.aws.ddb.repositories
Class GlobalSecondaryIndexImpl
- java.lang.Object
-
- org.leo.aws.ddb.repositories.GlobalSecondaryIndexImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classGlobalSecondaryIndexImpl.BuilderImpl-
Nested classes/interfaces inherited from interface org.leo.aws.ddb.repositories.GSI
GSI.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private Tuple<String,Field>hashKeyTupleprivate Stringnameprivate ProjectionTypeprojectionTypeprivate Tuple<String,Field>rangeKeyTuple
-
Constructor Summary
Constructors Modifier Constructor Description privateGlobalSecondaryIndexImpl(String name, Tuple<String,Field> hashKeyTuple, Tuple<String,Field> rangeKeyTuple, ProjectionType projectionType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static GSI.Builderbuilder(String indexName)booleanequals(Object o)Tuple<String,Field>getHashKeyTuple()StringgetName()ProjectionTypegetProjectionType()Tuple<String,Field>getRangeKeyTuple()inthashCode()StringtoString()private GlobalSecondaryIndexImplvalidate()
-
-
-
Method Detail
-
getHashKeyTuple
public Tuple<String,Field> getHashKeyTuple()
- Specified by:
getHashKeyTuplein interfaceGSI- Returns:
-
getRangeKeyTuple
public Tuple<String,Field> getRangeKeyTuple()
- Specified by:
getRangeKeyTuplein interfaceGSI- Returns:
-
getProjectionType
public ProjectionType getProjectionType()
- Specified by:
getProjectionTypein interfaceGSI- Returns:
-
validate
private GlobalSecondaryIndexImpl validate()
- Returns:
-
builder
static GSI.Builder builder(String indexName)
- Parameters:
indexName-- Returns:
-
-