本文整理汇总了Java中org.apache.accumulo.core.data.Range.beforeStartKey方法的典型用法代码示例。如果您正苦于以下问题:Java Range.beforeStartKey方法的具体用法?Java Range.beforeStartKey怎么用?Java Range.beforeStartKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.accumulo.core.data.Range
的用法示例。
在下文中一共展示了Range.beforeStartKey方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: seek
import org.apache.accumulo.core.data.Range; //导入方法依赖的package包/类
public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException {
// do not want to seek to the middle of a value that should be
// aggregated...
seekRange = maximizeStartKeyTimeStamp(range);
iterator.seek(seekRange, columnFamilies, inclusive);
findTop();
if (range.getStartKey() != null) {
while (hasTop() && getTopKey().equals(range.getStartKey(), this.comparator) && getTopKey().getTimestamp() > range.getStartKey().getTimestamp()) {
// the value has a more recent time stamp, so
// pass it up
// log.debug("skipping "+getTopKey());
next();
}
while (hasTop() && range.beforeStartKey(getTopKey())) {
next();
}
}
}
示例2: seek
import org.apache.accumulo.core.data.Range; //导入方法依赖的package包/类
public void seek(Range r) throws IOException {
if (seeked) {
if (next != null && !r.beforeStartKey(next)) {
if (next.getColumnFamily().equals(term)) {
this.updateTop();
}
} else if (iter.hasTop()) {
iter.seek(r, seekColfams, true);
this.updateTopNext();
} else {
top = null;
next = null;
}
} else {
iter.seek(r, seekColfams, true);
this.updateTopNext();
seeked = true;
}
}
示例3: seek
import org.apache.accumulo.core.data.Range; //导入方法依赖的package包/类
@Override
public void seek(final Range range, final Collection<ByteSequence> columnFamilies, final boolean inclusive)
throws IOException {
// do not want to seek to the middle of a value that should be
// combined...
final Range seekRange = IteratorUtil.maximizeStartKeyTimeStamp(range);
super.seek(seekRange, columnFamilies, inclusive);
findTop();
if (null != range.getStartKey()) {
while (hasTop() && getTopKey().equals(range.getStartKey(), PartialKey.ROW_COLFAM)
&& getTopKey().getTimestamp() > range.getStartKey().getTimestamp()) {
// The value has a more recent time stamp, so pass it up
next();
}
while (hasTop() && range.beforeStartKey(getTopKey())) {
next();
}
}
}