本文整理了Java中org.apache.accumulo.core.data.Key.toThrift()
方法的一些代码示例,展示了Key.toThrift()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Key.toThrift()
方法的具体详情如下:
包路径:org.apache.accumulo.core.data.Key
类名称:Key
方法名:toThrift
[英]Converts this key to Thrift.
[中]将此密钥转换为节俭。
代码示例来源:origin: apache/accumulo
/**
* Converts this range to Thrift.
*
* @return Thrift range
*/
public TRange toThrift() {
return new TRange(start == null ? null : start.toThrift(),
stop == null ? null : stop.toThrift(), startKeyInclusive, stopKeyInclusive,
infiniteStartKey, infiniteStopKey);
}
代码示例来源:origin: apache/accumulo
tkvl.set(0, new TKeyValue(param.get(0).getKey().toThrift(),
ByteBuffer.wrap(param.get(0).getValue().get())));
newKey = key.toThrift();
newKey.row = null;
newKey = key.toThrift();
newKey.colFamily = null;
newKey = key.toThrift();
newKey.colQualifier = null;
newKey = key.toThrift();
newKey.colVisibility = null;
newKey = key.toThrift();
代码示例来源:origin: apache/accumulo
for (KVEntry entry : results)
retResults
.add(new TKeyValue(entry.getKey().toThrift(), ByteBuffer.wrap(entry.getValue().get())));
Map<TKeyExtent,List<TRange>> retFailures = Translator.translate(failures, Translators.KET,
new Translator.ListTranslator<>(Translators.RT));
if (partScan != null) {
retPartScan = partScan.toThrift();
retPartNextKey = partNextKey.toThrift();
代码示例来源:origin: org.apache.accumulo/accumulo-core
/**
* Converts this range to Thrift.
*
* @return Thrift range
*/
public TRange toThrift() {
return new TRange(start == null ? null : start.toThrift(),
stop == null ? null : stop.toThrift(), startKeyInclusive, stopKeyInclusive,
infiniteStartKey, infiniteStopKey);
}
代码示例来源:origin: org.apache.accumulo/accumulo-core
tkvl.set(0, new TKeyValue(param.get(0).getKey().toThrift(),
ByteBuffer.wrap(param.get(0).getValue().get())));
newKey = key.toThrift();
newKey.row = null;
newKey = key.toThrift();
newKey.colFamily = null;
newKey = key.toThrift();
newKey.colQualifier = null;
newKey = key.toThrift();
newKey.colVisibility = null;
newKey = key.toThrift();
代码示例来源:origin: org.apache.accumulo/accumulo-server
retResults.add(new TKeyValue(entry.getKey().toThrift(), ByteBuffer.wrap(entry.getValue().get())));
Map<TKeyExtent,List<TRange>> retFailures = Translator.translate(failures, Translators.KET,
new Translator.ListTranslator<Range,TRange>(Translators.RT));
if (partScan != null) {
retPartScan = partScan.toThrift();
retPartNextKey = partNextKey.toThrift();
代码示例来源:origin: org.apache.accumulo/accumulo-tserver
for (KVEntry entry : results)
retResults
.add(new TKeyValue(entry.getKey().toThrift(), ByteBuffer.wrap(entry.getValue().get())));
Map<TKeyExtent,List<TRange>> retFailures = Translator.translate(failures, Translators.KET,
new Translator.ListTranslator<>(Translators.RT));
if (partScan != null) {
retPartScan = partScan.toThrift();
retPartNextKey = partNextKey.toThrift();
内容来源于网络,如有侵权,请联系作者删除!