/** * Auto-generates the column struct * * @param serType serialization type * @param serClassName serialization class name * @param schemaLiteral schema string * @param colMap hbase column mapping * @param sb StringBuilder to hold the generated struct * @throws SerDeException if something goes wrong while generating the struct * */ private static void generateColumnStruct(String serType, String serClassName, String schemaLiteral, ColumnMapping colMap, StringBuilder sb) throws SerDeException { if (serType.equalsIgnoreCase(AVRO_SERIALIZATION_TYPE)) { if (serClassName != null) { generateAvroStructFromClass(serClassName, sb); } else { generateAvroStructFromSchema(schemaLiteral, sb); } } else { throw new SerDeException("Unknown " + HBaseSerDe.SERIALIZATION_TYPE + " found for column family [" + colMap.familyName + "]"); } }
/** * Auto-generates the column struct * * @param serType serialization type * @param serClassName serialization class name * @param schemaLiteral schema string * @param colMap hbase column mapping * @param sb StringBuilder to hold the generated struct * @throws SerDeException if something goes wrong while generating the struct * */ private static void generateColumnStruct(String serType, String serClassName, String schemaLiteral, ColumnMapping colMap, StringBuilder sb) throws SerDeException { if (serType.equalsIgnoreCase(AVRO_SERIALIZATION_TYPE)) { if (serClassName != null) { generateAvroStructFromClass(serClassName, sb); } else { generateAvroStructFromSchema(schemaLiteral, sb); } } else { throw new SerDeException("Unknown " + HBaseSerDe.SERIALIZATION_TYPE + " found for column family [" + colMap.familyName + "]"); } }