Github user ctubbsii commented on a diff in the pull request: https://github.com/apache/incubator-fluo/pull/825#discussion_r112800518 --- Diff: modules/api/src/main/java/org/apache/fluo/api/data/Bytes.java --- @@ -355,6 +354,36 @@ public static final Bytes of(String s, Charset c) { } /** + * Checks if this has the passed prefix + * + * @param prefix + * @return true or false + */ + public boolean startsWith(Bytes prefix) { + for (int i = 0; i < prefix.length; i++) { --- End diff -- If prefix length is longer than this length, this should return false.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---