private void generateBucketDelete(TableBucket bucket, UpdateInstructions update) {
        if (bucket.exists()) {
            update.withAttribute(new AttributeUpdate(bucket.getHash(), AttributeUpdateType.Replace, Attributes.NULL_ATTRIBUTE_VALUE));
            update.bucketRemoved();
        }
    }
private void generateBucketDelete ( TableBucket bucket , UpdateInstructions update ) { if ( bucket . exists ( ) ) { update . withAttribute ( new AttributeUpdate ( bucket . getHash ( ) , AttributeUpdateType . Replace , Attributes . NULL_ATTRIBUTE_VALUE ) ) ; update . bucketRemoved ( ) ; } }
Generates one or more {@link AttributeUpdate}s that will delete a {@link TableBucket}.

@param bucket           The {@link TableBucket} to delete.
@param update A {@link UpdateInstructions} object to collect updates into.