本文整理了Java中org.apache.accumulo.core.data.Range.equals
方法的一些代码示例,展示了Range.equals
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Range.equals
方法的具体详情如下:
包路径:org.apache.accumulo.core.data.Range
类名称:Range
方法名:equals
[英]Determines if this range equals another.
[中]确定此范围是否等于另一个范围。
代码示例来源:origin: apache/accumulo
@Override
public boolean equals(Object o) {
if (o instanceof Range)
return equals((Range) o);
return false;
}
代码示例来源:origin: apache/accumulo
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (!(o instanceof IteratorTestInput))
return false;
IteratorTestInput that = (IteratorTestInput) o;
return inclusive == that.inclusive && iteratorClass.equals(that.iteratorClass)
&& iteratorOptions.equals(that.iteratorOptions) && range.equals(that.range)
&& families.equals(that.families) && input.equals(that.input);
}
代码示例来源:origin: org.apache.accumulo/accumulo-core
@Override
public boolean equals(Object o) {
if (o instanceof Range)
return equals((Range) o);
return false;
}
代码示例来源:origin: org.apache.accumulo/accumulo-iterator-test-harness
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (!(o instanceof IteratorTestInput))
return false;
IteratorTestInput that = (IteratorTestInput) o;
return inclusive == that.inclusive && iteratorClass.equals(that.iteratorClass)
&& iteratorOptions.equals(that.iteratorOptions) && range.equals(that.range)
&& families.equals(that.families) && input.equals(that.input);
}
代码示例来源:origin: org.apache.accumulo/accumulo-test
@Override
public boolean equals(Object o) {
if (o instanceof MerkleTreeNode) {
MerkleTreeNode other = (MerkleTreeNode) o;
return range.equals(other.getRange()) && level == other.getLevel()
&& children.equals(other.getChildren()) && Arrays.equals(hash, other.getHash());
}
return false;
}
代码示例来源:origin: NationalSecurityAgency/datawave
protected boolean reseekIfNeeded() {
if (root) {
Range childRange = null;
Key childLastKey = null;
if (null != child) {
childRange = child.getSourceRange();
childLastKey = child.getSourceLastKey();
}
boolean lastKeysNull = lastKey == null;
lastKeysNull &= childLastKey == null;
if (log.isTraceEnabled()) {
log.trace("reseek " + lastRange + " " + childRange + " " + childLastKey + " " + lastKey);
}
if (childRange != null && (!lastRange.equals(childRange) && !lastKeysNull && (lastKey == null || !lastKey.equals(childLastKey)))) {
try {
seekFromLast();
return true;
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!