public static AbstractPrimitiveLazyObjectInspector<?> getLazyObjectInspector( PrimitiveTypeInfo typeInfo, LazyObjectInspectorParameters lazyParams) { PrimitiveCategory primitiveCategory = typeInfo.getPrimitiveCategory(); switch(primitiveCategory) { case STRING: return getLazyStringObjectInspector(lazyParams.isEscaped(), lazyParams.getEscapeChar()); case CHAR: return getLazyHiveCharObjectInspector((CharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case VARCHAR: return getLazyHiveVarcharObjectInspector((VarcharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case BOOLEAN: return getLazyBooleanObjectInspector(lazyParams.isExtendedBooleanLiteral()); case TIMESTAMP: return getLazyTimestampObjectInspector(lazyParams.getTimestampFormats()); default: return getLazyObjectInspector(typeInfo); } }
public static AbstractPrimitiveLazyObjectInspector<?> getLazyObjectInspector( PrimitiveTypeInfo typeInfo, LazyObjectInspectorParameters lazyParams) { PrimitiveCategory primitiveCategory = typeInfo.getPrimitiveCategory(); switch(primitiveCategory) { case STRING: return getLazyStringObjectInspector(lazyParams.isEscaped(), lazyParams.getEscapeChar()); case CHAR: return getLazyHiveCharObjectInspector((CharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case VARCHAR: return getLazyHiveVarcharObjectInspector((VarcharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case BOOLEAN: return getLazyBooleanObjectInspector(lazyParams.isExtendedBooleanLiteral()); case TIMESTAMP: return getLazyTimestampObjectInspector(lazyParams.getTimestampFormats()); default: return getLazyObjectInspector(typeInfo); } }
public static AbstractPrimitiveLazyObjectInspector<?> getLazyObjectInspector( PrimitiveTypeInfo typeInfo, LazyObjectInspectorParameters lazyParams) { PrimitiveCategory primitiveCategory = typeInfo.getPrimitiveCategory(); switch(primitiveCategory) { case STRING: return getLazyStringObjectInspector(lazyParams.isEscaped(), lazyParams.getEscapeChar()); case CHAR: return getLazyHiveCharObjectInspector((CharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case VARCHAR: return getLazyHiveVarcharObjectInspector((VarcharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case BOOLEAN: return getLazyBooleanObjectInspector(lazyParams.isExtendedBooleanLiteral()); case TIMESTAMP: return getLazyTimestampObjectInspector(lazyParams.getTimestampFormats()); default: return getLazyObjectInspector(typeInfo); } }
public static AbstractPrimitiveLazyObjectInspector<?> getLazyObjectInspector( PrimitiveTypeInfo typeInfo, LazyObjectInspectorParameters lazyParams) { PrimitiveCategory primitiveCategory = typeInfo.getPrimitiveCategory(); switch(primitiveCategory) { case STRING: return getLazyStringObjectInspector(lazyParams.isEscaped(), lazyParams.getEscapeChar()); case CHAR: return getLazyHiveCharObjectInspector((CharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case VARCHAR: return getLazyHiveVarcharObjectInspector((VarcharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case BOOLEAN: return getLazyBooleanObjectInspector(lazyParams.isExtendedBooleanLiteral()); case TIMESTAMP: return getLazyTimestampObjectInspector(lazyParams.getTimestampFormats()); default: return getLazyObjectInspector(typeInfo); } }
public static AbstractPrimitiveLazyObjectInspector<?> getLazyObjectInspector( PrimitiveTypeInfo typeInfo, LazyObjectInspectorParameters lazyParams) { PrimitiveCategory primitiveCategory = typeInfo.getPrimitiveCategory(); switch(primitiveCategory) { case STRING: return getLazyStringObjectInspector(lazyParams.isEscaped(), lazyParams.getEscapeChar()); case CHAR: return getLazyHiveCharObjectInspector((CharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case VARCHAR: return getLazyHiveVarcharObjectInspector((VarcharTypeInfo)typeInfo, lazyParams.isEscaped(), lazyParams.getEscapeChar()); case BOOLEAN: return getLazyBooleanObjectInspector(lazyParams.isExtendedBooleanLiteral()); case TIMESTAMP: return getLazyTimestampObjectInspector(lazyParams.getTimestampFormats()); default: return getLazyObjectInspector(typeInfo); } }