@InterfaceAudience.Private public final class AggregationHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
AggregationHelper() |
Modifier and Type | Method and Description |
---|---|
static <T extends com.google.protobuf.Message> |
getParsedGenericInstance(Class<?> runtimeClass,
int position,
com.google.protobuf.ByteString b)
Get an instance of the argument type declared in a class's signature.
|
(package private) static <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
validateArgAndGetPB(Scan scan,
ColumnInterpreter<R,S,P,Q,T> ci,
boolean canFamilyBeAbsent) |
private static void |
validateParameters(Scan scan,
boolean canFamilyBeAbsent) |
private AggregationHelper()
private static void validateParameters(Scan scan, boolean canFamilyBeAbsent) throws IOException
scan
- the HBase scan object to use to read data from HBasecanFamilyBeAbsent
- whether column family can be absent in familyMap of scanIOException
static <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateRequest validateArgAndGetPB(Scan scan, ColumnInterpreter<R,S,P,Q,T> ci, boolean canFamilyBeAbsent) throws IOException
IOException
public static <T extends com.google.protobuf.Message> T getParsedGenericInstance(Class<?> runtimeClass, int position, com.google.protobuf.ByteString b) throws IOException
runtimeClass
- the runtime type of the classposition
- the position of the argument in the class declarationb
- the ByteString which should be parsed to get the instance createdIOException
- Either we couldn't instantiate the method object, or "parseFrom" failed.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.