- All Implemented Interfaces:
- org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler, org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
@InterfaceAudience.Private
public class ProtobufDecoder
extends org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToMessageDecoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Modified based on io.netty.handler.codec.protobuf.ProtobufDecoder.
The Netty's ProtobufDecode supports unshaded protobuf messages (com.google.protobuf).
Hadoop 3.3.0 and above relocates protobuf classes to a shaded jar (hadoop-thirdparty), and
so we must use reflection to detect which one (relocated or not) to use.
Do not use this to process HBase's shaded protobuf messages. This is meant to process the
protobuf messages in HDFS for the asyncfs use case.