/** * Get the set field out of the union. * * If the field is a primitive field, return the actual object. Otherwise * return the LazyObject. This is because PrimitiveObjectInspector does not * have control over the object used by the user - the user simply directly * use the Object instead of going through Object * PrimitiveObjectInspector.get(Object). * @return The field as a LazyObject */ public Object getField() { if (!parsed) { parse(); } if(cachedObject == null) { return uncheckedGetField(); } return cachedObject; }
/** * Get the set field out of the union. * * If the field is a primitive field, return the actual object. Otherwise * return the LazyObject. This is because PrimitiveObjectInspector does not * have control over the object used by the user - the user simply directly * use the Object instead of going through Object * PrimitiveObjectInspector.get(Object). * @return The field as a LazyObject */ public Object getField() { if (!parsed) { parse(); } if(cachedObject == null) { return uncheckedGetField(); } return cachedObject; }
/** * Get the set field out of the union. * * If the field is a primitive field, return the actual object. Otherwise * return the LazyObject. This is because PrimitiveObjectInspector does not * have control over the object used by the user - the user simply directly * use the Object instead of going through Object * PrimitiveObjectInspector.get(Object). * @return The field as a LazyObject */ public Object getField() { if (!parsed) { parse(); } if(cachedObject == null) { return uncheckedGetField(); } return cachedObject; }
/** * Get the set field out of the union. * * If the field is a primitive field, return the actual object. Otherwise * return the LazyObject. This is because PrimitiveObjectInspector does not * have control over the object used by the user - the user simply directly * use the Object instead of going through Object * PrimitiveObjectInspector.get(Object). * @return The field as a LazyObject */ public Object getField() { if (!parsed) { parse(); } if(cachedObject == null) { return uncheckedGetField(); } return cachedObject; }
/** * Get the set field out of the union. * * If the field is a primitive field, return the actual object. Otherwise * return the LazyObject. This is because PrimitiveObjectInspector does not * have control over the object used by the user - the user simply directly * use the Object instead of going through Object * PrimitiveObjectInspector.get(Object). * @return The field as a LazyObject */ public Object getField() { if (!parsed) { parse(); } if(cachedObject == null) { return uncheckedGetField(); } return cachedObject; }