public boolean contains(DocumentId docId, BucketIdFactory factory) {
        return contains(factory.getBucketId(docId));
    }
Creates a bucket id with the given raw bucket id. This is a 64 bit mask
where the first 6 MSB bits set how many LSB bits should actually be used.
Right now it only have simple functionality. More will be added for it
to be configurable.
document/src/main/java/com/yahoo/document/BucketId.java