当前位置: 首页>>代码示例>>Java>>正文


Java ColumnInterpreter.getRequestData方法代码示例

本文整理汇总了Java中org.apache.hadoop.hbase.coprocessor.ColumnInterpreter.getRequestData方法的典型用法代码示例。如果您正苦于以下问题:Java ColumnInterpreter.getRequestData方法的具体用法?Java ColumnInterpreter.getRequestData怎么用?Java ColumnInterpreter.getRequestData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.hadoop.hbase.coprocessor.ColumnInterpreter的用法示例。


在下文中一共展示了ColumnInterpreter.getRequestData方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: validateArgAndGetPB

import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter; //导入方法依赖的package包/类
<R, S, P extends Message, Q extends Message, T extends Message> TimeseriesAggregateRequest
    validateArgAndGetPB(Scan scan, ColumnInterpreter<R, S, P, Q, T> ci,
        boolean canFamilyBeAbsent, int intervalSeconds, Integer timestampSecondsMin,
        Integer timestampSecondsMax, String keyFilterPattern) throws IOException {
  validateParameters(scan, canFamilyBeAbsent);
  final TimeseriesAggregateRequest.Builder requestBuilder =
      TimeseriesAggregateRequest.newBuilder();
  requestBuilder.setInterpreterClassName(ci.getClass().getCanonicalName());
  P columnInterpreterSpecificData = null;
  if ((columnInterpreterSpecificData = ci.getRequestData()) != null) {
    requestBuilder.setInterpreterSpecificBytes(columnInterpreterSpecificData.toByteString());
  }
  requestBuilder.setScan(ProtobufUtil.toScan(scan));

  requestBuilder.setTimeIntervalSeconds(intervalSeconds);
  if (!(null == timestampSecondsMin)) {
    final TimeseriesRange.Builder rangeBuilder = TimeseriesRange.newBuilder();
    rangeBuilder.setKeyTimestampMin(timestampSecondsMin);
    rangeBuilder.setKeyTimestampMax(timestampSecondsMax);
    rangeBuilder.setKeyTimestampFilterPattern(keyFilterPattern);
    requestBuilder.setRange(rangeBuilder.build());
  }
  return requestBuilder.build();
}
 
开发者ID:juwi,项目名称:HBase-TAggregator,代码行数:25,代码来源:TimeseriesAggregationClient.java

示例2: validateArgAndGetPB

import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter; //导入方法依赖的package包/类
<R, S, P extends Message, Q extends Message, T extends Message> AggregateRequest
validateArgAndGetPB(Scan scan, ColumnInterpreter<R,S,P,Q,T> ci, boolean canFamilyBeAbsent)
    throws IOException {
  validateParameters(scan, canFamilyBeAbsent);
  final AggregateRequest.Builder requestBuilder =
      AggregateRequest.newBuilder();
  requestBuilder.setInterpreterClassName(ci.getClass().getCanonicalName());
  P columnInterpreterSpecificData = null;
  if ((columnInterpreterSpecificData = ci.getRequestData())
     != null) {
    requestBuilder.setInterpreterSpecificBytes(columnInterpreterSpecificData.toByteString());
  }
  requestBuilder.setScan(ProtobufUtil.toScan(scan));
  return requestBuilder.build();
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:16,代码来源:AggregationClient.java

示例3: validateArgAndGetPB

import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter; //导入方法依赖的package包/类
<R, S, P extends Message, Q extends Message, T extends Message> AggregateRequest validateArgAndGetPB(Scan scan, ColumnInterpreter<R, S, P, Q, T> ci, boolean canFamilyBeAbsent)
        throws IOException {
    validateParameters(scan, canFamilyBeAbsent);
    final AggregateRequest.Builder requestBuilder =
            AggregateRequest.newBuilder();
    requestBuilder.setInterpreterClassName(ci.getClass().getCanonicalName());
    P columnInterpreterSpecificData = null;
    if ((columnInterpreterSpecificData = ci.getRequestData())
            != null) {
        requestBuilder.setInterpreterSpecificBytes(columnInterpreterSpecificData.toByteString());
    }
    requestBuilder.setScan(ProtobufUtil.toScan(scan));
    return requestBuilder.build();
}
 
开发者ID:enableiot,项目名称:iotanalytics-gearpump-rule-engine,代码行数:15,代码来源:CustomAggregationClient.java

示例4: validateArgAndGetPB

import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter; //导入方法依赖的package包/类
<R, S, P extends Message, Q extends Message, T extends Message> AggregateRequest 
validateArgAndGetPB(Scan scan, ColumnInterpreter<R,S,P,Q,T> ci, boolean canFamilyBeAbsent)
    throws IOException {
  validateParameters(scan, canFamilyBeAbsent);
  final AggregateRequest.Builder requestBuilder = 
      AggregateRequest.newBuilder();
  requestBuilder.setInterpreterClassName(ci.getClass().getCanonicalName());
  P columnInterpreterSpecificData = null;
  if ((columnInterpreterSpecificData = ci.getRequestData()) 
     != null) {
    requestBuilder.setInterpreterSpecificBytes(columnInterpreterSpecificData.toByteString());
  }
  requestBuilder.setScan(ProtobufUtil.toScan(scan));
  return requestBuilder.build();
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:16,代码来源:AggregationClient.java

示例5: validateArgAndGetPB

import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter; //导入方法依赖的package包/类
static <R, S, P extends Message, Q extends Message, T extends Message> AggregateRequest
    validateArgAndGetPB(Scan scan, ColumnInterpreter<R, S, P, Q, T> ci, boolean canFamilyBeAbsent)
        throws IOException {
  validateParameters(scan, canFamilyBeAbsent);
  final AggregateRequest.Builder requestBuilder = AggregateRequest.newBuilder();
  requestBuilder.setInterpreterClassName(ci.getClass().getCanonicalName());
  P columnInterpreterSpecificData = null;
  if ((columnInterpreterSpecificData = ci.getRequestData()) != null) {
    requestBuilder.setInterpreterSpecificBytes(columnInterpreterSpecificData.toByteString());
  }
  requestBuilder.setScan(ProtobufUtil.toScan(scan));
  return requestBuilder.build();
}
 
开发者ID:apache,项目名称:hbase,代码行数:14,代码来源:AggregationHelper.java

示例6: validateArgAndGetPB

import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter; //导入方法依赖的package包/类
<R, S, P extends Message, Q extends Message, T extends Message> AggregateArgument 
validateArgAndGetPB(Scan scan, ColumnInterpreter<R,S,P,Q,T> ci)
    throws IOException {
  validateParameters(scan);
  final AggregateArgument.Builder requestBuilder = 
      AggregateArgument.newBuilder();
  requestBuilder.setInterpreterClassName(ci.getClass().getCanonicalName());
  P columnInterpreterSpecificData = null;
  if ((columnInterpreterSpecificData = ci.getRequestData()) 
     != null) {
    requestBuilder.setInterpreterSpecificBytes(columnInterpreterSpecificData.toByteString());
  }
  requestBuilder.setScan(ProtobufUtil.toScan(scan));
  return requestBuilder.build();
}
 
开发者ID:daidong,项目名称:DominoHBase,代码行数:16,代码来源:AggregationClient.java


注:本文中的org.apache.hadoop.hbase.coprocessor.ColumnInterpreter.getRequestData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。