/**
* Returns true if the byte array begins with the specified prefix.
*/
public static boolean prefixMatches(byte[] prefix, int prefixlen,
byte[] b) {
if (b.length < prefixlen) {
return false;
}
return WritableComparator.compareBytes(prefix, 0, prefixlen, b, 0,
prefixlen) == 0;
}
LeveldbUtils.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:hadoop
作者:
评论列表
文章目录