This topic contains 0 replies, has 1 voice, and was last updated by  khazim 2 months, 2 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3232 Reply

    khazim
    Participant

    ObjectInspector helps us to look into the internal structure of a complex object. A (probably configured) ObjectInspector instance stands for a specific type and a specific way to store the data of that type in the memory. For native java Object, we can directly access the internal structure through member fields and methods. ObjectInspector is a way to delegate that functionality away from the Object, so that we have more control on the behavior of those actions. An efficient implementation of ObjectInspector should rely on factory, so that we can make sure the same ObjectInspector only has one instance. That also makes sure hashCode() and equals() methods of java.lang.Object directly works for ObjectInspector as well.

    Nested Class Summary

    static class ObjectInspector.Category

    Method Summary

    ObjectInspector.Category getCategory()

    An ObjectInspector must inherit from one of the following interfaces if getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST: ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.

    String getTypeName()
    Returns the name of the data type that is inspected by this ObjectInspector.

Viewing 1 post (of 1 total)
Reply To: Object Inspector?
Your information:




cf22

Your Name (required)

Your Email (required)

Subject

Phone No

Your Message

Cart

  • No products in the cart.