Class: Voltdb::AllPartitionProcCallback
- Inherits:
-
Object
- Object
- Voltdb::AllPartitionProcCallback
- Includes:
- Java::OrgVoltdbClient::AllPartitionProcedureCallback
- Defined in:
- lib/voltdb/callbacks.rb
Instance Method Summary collapse
-
#client_callback(client_response_with_partition_key) ⇒ Object
Implementation of callback to be provided by client applications.
-
#initialize(&block) ⇒ AllPartitionProcCallback
constructor
A new instance of AllPartitionProcCallback.
Constructor Details
#initialize(&block) ⇒ AllPartitionProcCallback
Returns a new instance of AllPartitionProcCallback.
69 70 71 |
# File 'lib/voltdb/callbacks.rb', line 69 def initialize(&block) @block = block end |
Instance Method Details
#client_callback(client_response_with_partition_key) ⇒ Object
Implementation of callback to be provided by client applications
80 81 82 83 84 85 86 87 |
# File 'lib/voltdb/callbacks.rb', line 80 def client_callback(client_response_with_partition_key) response = client_response_with_partition_key.map do |partition| partition.response.extend(ClientResponseUtils) partition end @block.call(response) end |