private static boolean isInstanceOfSettableOI(ObjectInspector oi) { switch (oi.getCategory()) { case PRIMITIVE: return isInstanceOfSettablePrimitiveOI((PrimitiveObjectInspector)oi); case STRUCT: return oi instanceof SettableStructObjectInspector; case LIST: return oi instanceof SettableListObjectInspector; case MAP: return oi instanceof SettableMapObjectInspector; case UNION: return oi instanceof SettableUnionObjectInspector; default: throw new RuntimeException("Hive internal error inside isAssignableFromSettableOI : " + oi.getTypeName() + " not supported yet."); } }
private static boolean isInstanceOfSettableOI(ObjectInspector oi) { switch (oi.getCategory()) { case PRIMITIVE: return isInstanceOfSettablePrimitiveOI((PrimitiveObjectInspector)oi); case STRUCT: return oi instanceof SettableStructObjectInspector; case LIST: return oi instanceof SettableListObjectInspector; case MAP: return oi instanceof SettableMapObjectInspector; case UNION: return oi instanceof SettableUnionObjectInspector; default: throw new RuntimeException("Hive internal error inside isAssignableFromSettableOI : " + oi.getTypeName() + " not supported yet."); } }
private static boolean isInstanceOfSettableOI(ObjectInspector oi) { switch (oi.getCategory()) { case PRIMITIVE: return isInstanceOfSettablePrimitiveOI((PrimitiveObjectInspector)oi); case STRUCT: return oi instanceof SettableStructObjectInspector; case LIST: return oi instanceof SettableListObjectInspector; case MAP: return oi instanceof SettableMapObjectInspector; case UNION: return oi instanceof SettableUnionObjectInspector; default: throw new RuntimeException("Hive internal error inside isAssignableFromSettableOI : " + oi.getTypeName() + " not supported yet."); } }
private static boolean isInstanceOfSettableOI(ObjectInspector oi) { switch (oi.getCategory()) { case PRIMITIVE: return isInstanceOfSettablePrimitiveOI((PrimitiveObjectInspector)oi); case STRUCT: return oi instanceof SettableStructObjectInspector; case LIST: return oi instanceof SettableListObjectInspector; case MAP: return oi instanceof SettableMapObjectInspector; case UNION: return oi instanceof SettableUnionObjectInspector; default: throw new RuntimeException("Hive internal error inside isAssignableFromSettableOI : " + oi.getTypeName() + " not supported yet."); } }
private static boolean isInstanceOfSettableOI(ObjectInspector oi) { switch (oi.getCategory()) { case PRIMITIVE: return isInstanceOfSettablePrimitiveOI((PrimitiveObjectInspector)oi); case STRUCT: return oi instanceof SettableStructObjectInspector; case LIST: return oi instanceof SettableListObjectInspector; case MAP: return oi instanceof SettableMapObjectInspector; case UNION: return oi instanceof SettableUnionObjectInspector; default: throw new RuntimeException("Hive internal error inside isAssignableFromSettableOI : " + oi.getTypeName() + " not supported yet."); } }