本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}