@InterfaceAudience.Private public class ProtobufDecoder extends org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToMessageDecoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Modifier and Type | Field and Description |
---|---|
private Object |
builder |
private Method |
buildMethod |
private static Method |
getParserForTypeMethod |
private static boolean |
HAS_PARSER |
private static org.slf4j.Logger |
LOG |
private Method |
mergeFromMethod |
private static Method |
newBuilderForTypeMethod |
private Method |
parseFromMethod |
private Object |
parser |
private static Class<?> |
protobufMessageLiteBuilderClass |
private static Class<?> |
protobufMessageLiteClass |
Constructor and Description |
---|
ProtobufDecoder(Object prototype) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg,
List<Object> out) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
private static final org.slf4j.Logger LOG
private static Class<?> protobufMessageLiteClass
private static Class<?> protobufMessageLiteBuilderClass
private static final boolean HAS_PARSER
private static Method getParserForTypeMethod
private static Method newBuilderForTypeMethod
private Method parseFromMethod
private Method mergeFromMethod
private Method buildMethod
public ProtobufDecoder(Object prototype)
protected void decode(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, List<Object> out) throws Exception
decode
in class org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToMessageDecoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.