Class GetRecordsResult
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the output of a GetRecords operation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The next position in the shard from which to start sequentially reading stream records.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.toString()
Returns a string representation of this object; useful for testing and debugging.withNextShardIterator
(String nextShardIterator) The next position in the shard from which to start sequentially reading stream records.withRecords
(Record... records) The stream records from the shard, which were retrieved using the shard iterator.withRecords
(Collection<Record> records) The stream records from the shard, which were retrieved using the shard iterator.
-
Constructor Details
-
GetRecordsResult
public GetRecordsResult()
-
-
Method Details
-
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-