accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From melrief <>
Subject [GitHub] accumulo issue #145: ACCUMULO-4376 add KeyBuilder
Date Fri, 02 Sep 2016 23:26:15 GMT
Github user melrief commented on the issue:
    The new `KeyBuilderImpl` now keeps not only the byte arrays but also offsets and lengths
of each byte and each method now takes this offset and length as optional parameters. In this
way we are able to reuse byte arrays to create `Key`s:
    byte[] keyBytes = new byte[] { 0, 1, 2, 3, 4, 5 }
    Key key = Key.builder().row(keyBytes, 0, 2).column(keyBytes, 2, 2).qualifier(keyBytes,
4, 2).build();

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message