What is ObjectInspector in Hive?

ObjectInspector is used in Hive to look into the internal structure of a complex object. It is an interface that is implemented by classes like StandardListObjectInspector, StandardMapObjectInspector, StandardSetObjectInspector etc.

Main use of ObjectInspector is in SerDe package for Serialization and Deserialization.

We have to make sure that hashCode() and equals() methods of Object class work for ObjectInspector as well.

Leave a Reply

Your email address will not be published. Required fields are marked *