コード例 #1
0
 @Override
 public IncCounterProcessorRequest getRequestData() throws IOException {
   IncCounterProcessorRequest.Builder builder = IncCounterProcessorRequest.newBuilder();
   builder.setCounter(counter);
   builder.setRow(ByteStringer.wrap(row));
   return builder.build();
 }
コード例 #2
0
 @Override
 public void initialize(IncCounterProcessorRequest msg) {
   this.row = msg.getRow().toByteArray();
   this.counter = msg.getCounter();
 }