Ejemplo n.º 1
0
  @Override
  public void store(CacheWrapper wrapper, int nodeIndex) throws Throwable {
    TpccOrderLine orderline =
        TpccOrderLine.newBuilder()
            .setOlIId(ol_i_id)
            .setOlSupplyWId(ol_supply_w_id)
            .setOlDeliveryD(ol_supply_w_id)
            .setOlQuantity(ol_quantity)
            .setOlAmount(ol_amount)
            .setOlDistInfo(ol_dist_info)
            .build();

    FpbValue value = FpbValue.newBuilder().setOrderline(orderline).setField(9).build();

    wrapper.put(null, wrapper.createKey(this.getKey(), nodeIndex), value);
  }