@Override
  public Collection<Operation<K, V, U>> getOperations() {
    return Stream.of(queries.values(), putsDeletes.values()).flatMap(Collection::stream).collect(Collectors.toList());
  }
When adding a GetOperation to the batch, mark the GetOperation completed immediately if there is
an PutOperation/DeleteOperation for the key, otherwise, adding the operation to a list.
When adding a Put/DeleteOperation, if there is a put/delete operation for the same key, the existing
operation will be replaced by the new one. If an update operation is received, throw a BatchingNotSupportedException
exception.
samza-core/src/main/java/org/apache/samza/table/batching/CompactBatch.java