Interface GetRecordsResponse.Builder

  • Method Details

    • changeRecords

      GetRecordsResponse.Builder changeRecords(Collection<Record> changeRecords)

      An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.

      Parameters:
      changeRecords - An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • changeRecords

      GetRecordsResponse.Builder changeRecords(Record... changeRecords)

      An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.

      Parameters:
      changeRecords - An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • changeRecords

      GetRecordsResponse.Builder changeRecords(Consumer<Record.Builder>... changeRecords)

      An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.

      This is a convenience method that creates an instance of the Record.Builder avoiding the need to create one manually via Record.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to changeRecords(List<Record>).

      Parameters:
      changeRecords - a consumer that will call methods on Record.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nextShardIterator

      GetRecordsResponse.Builder nextShardIterator(String nextShardIterator)

      The next position in the shard from which to start sequentially reading data records. If null, the shard has been closed and the requested iterator doesn't return any more data.

      Parameters:
      nextShardIterator - The next position in the shard from which to start sequentially reading data records. If null, the shard has been closed and the requested iterator doesn't return any more data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.