Difference between serde2.objectinspector and typeinfo packages

What is the difference between these two packages:

  • org.apache.hadoop.hive.serde2.objectinspector
  • org.apache.hadoop.hive.serde2.typeinfo

Is the new API? Are they both current, but somehow different? They seem pretty similar to me: /

+3
source share
2 answers
  • since both packages are under serde2 specifier, I think both of them are currently in use
  • TypeInfo stores type information, and each type has exactly one object to represent it. so TypeInfo is just read-only information with the type of the object (category, type name, etc.).
  • Hive (, Integer: Integer, IntWritable LazyInteger). /, . objectinspector , , , , objectinspector.
+4

ObjectInspectors , , , JSON serde JSON Java JSON , Hive, , , java, JSON. Hive JAVA , , ListObjectInspector.

, deserialize JSON Hive, TypeInfo, ListTypeInfo.

0

All Articles