code: private void generateBucketUpdate(TableBucket bucket, long bucketOffset, UpdateInstructions update) {
          assert bucketOffset >= 0;
          update.withAttribute(new AttributeUpdate(bucket.getHash(), AttributeUpdateType.Replace, bucketOffset));
          if (!bucket.exists()) {
              update.bucketAdded();
          }
      }
docs: Generates one or more {@link AttributeUpdate}s that will create or update the necessary Table Buckets entries
  in the Segment's Extended Attributes.
  
  @param bucket           The Bucket to create or update.
  @param bucketOffset The Bucket's new offset.
  @param update       A {@link UpdateInstructions} object to collect updates into.