org.apache.accumulo.core.data.Key.toThrift()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中org.apache.accumulo.core.data.Key.toThrift()方法的一些代码示例,展示了Key.toThrift()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Key.toThrift()方法的具体详情如下:
包路径:org.apache.accumulo.core.data.Key
类名称:Key
方法名:toThrift

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();

相关文章