Class GetRecordsResult
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.model.GetRecordsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class GetRecordsResult extends Object implements Serializable, Cloneable
Represents the output of a GetRecords operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetRecordsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetRecordsResult
clone()
boolean
equals(Object obj)
String
getNextShardIterator()
The next position in the shard from which to start sequentially reading stream records.List<Record>
getRecords()
The stream records from the shard, which were retrieved using the shard iterator.int
hashCode()
void
setNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records.void
setRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetRecordsResult
withNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records.GetRecordsResult
withRecords(Record... records)
The stream records from the shard, which were retrieved using the shard iterator.GetRecordsResult
withRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
-
-
-
Method Detail
-
getRecords
public List<Record> getRecords()
The stream records from the shard, which were retrieved using the shard iterator.
- Returns:
- The stream records from the shard, which were retrieved using the shard iterator.
-
setRecords
public void setRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
- Parameters:
records
- The stream records from the shard, which were retrieved using the shard iterator.
-
withRecords
public GetRecordsResult withRecords(Record... records)
The stream records from the shard, which were retrieved using the shard iterator.
NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
orwithRecords(java.util.Collection)
if you want to override the existing values.- Parameters:
records
- The stream records from the shard, which were retrieved using the shard iterator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecords
public GetRecordsResult withRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
- Parameters:
records
- The stream records from the shard, which were retrieved using the shard iterator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextShardIterator
public void setNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.- Parameters:
nextShardIterator
- The next position in the shard from which to start sequentially reading stream records. If set tonull
, the shard has been closed and the requested iterator will not return any more data.
-
getNextShardIterator
public String getNextShardIterator()
The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.- Returns:
- The next position in the shard from which to start sequentially
reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.
-
withNextShardIterator
public GetRecordsResult withNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.- Parameters:
nextShardIterator
- The next position in the shard from which to start sequentially reading stream records. If set tonull
, the shard has been closed and the requested iterator will not return any more data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetRecordsResult clone()
-
-