@Override
	public void initialize(Configuration conf, Properties prop, Properties partitionProperties) throws SerDeException {
		LOG.debug("Initializing Excel Hive Serde");
		// copy hadoopoffice options
		LOG.debug("Configuring HadoopOffice Format");
		Set<Entry<Object, Object>> entries = prop.entrySet();
		for (Entry<Object, Object> entry : entries) {
			if ((entry.getKey() instanceof String) && ((String) entry.getKey()).startsWith(ExcelSerde.HOSUFFIX)) {
				if (("TRUE".equalsIgnoreCase((String) entry.getValue()))
						|| ("FALSE".equalsIgnoreCase(((String) entry.getValue())))) {
					conf.setBoolean((String) entry.getKey(), Boolean.valueOf((String) entry.getValue()));
				} else {
					conf.set((String) entry.getKey(), (String) entry.getValue());
				}
			}
		}
		LOG.debug("Configuring Object inspector");
		final List<ObjectInspector> columnOIs = new ArrayList<ObjectInspector>(ExcelSpreadSheetCellDAOSerde.columnNames.length);
		for (int i=0;i<ExcelSpreadSheetCellDAOSerde.columnNames.length;i++) {
			columnOIs.add(PrimitiveObjectInspectorFactory.javaStringObjectInspector);
		}
		this.oi = ObjectInspectorFactory.getStandardStructObjectInspector(Arrays.asList(ExcelSpreadSheetCellDAOSerde.columnNames), columnOIs);
		LOG.debug("Finished Initialization");
	}
@ Override public void initialize ( Configuration conf , Properties prop , Properties partitionProperties ) throws SerDeException { LOG . debug ( "Initializing Excel Hive Serde" ) ; LOG . debug ( "Configuring HadoopOffice Format" ) ; Set < Entry < Object , Object > > entries = prop . entrySet ( ) ; for ( Entry < Object , Object > entry : entries ) { if ( ( entry . getKey ( ) instanceof String ) && ( ( String ) entry . getKey ( ) ) . startsWith ( ExcelSerde . HOSUFFIX ) ) { if ( ( "TRUE" . equalsIgnoreCase ( ( String ) entry . getValue ( ) ) ) || ( "FALSE" . equalsIgnoreCase ( ( ( String ) entry . getValue ( ) ) ) ) ) { conf . setBoolean ( ( String ) entry . getKey ( ) , Boolean . valueOf ( ( String ) entry . getValue ( ) ) ) ; } else { conf . set ( ( String ) entry . getKey ( ) , ( String ) entry . getValue ( ) ) ; } } } LOG . debug ( "Configuring Object inspector" ) ; final List < ObjectInspector > columnOIs = new ArrayList < ObjectInspector > ( ExcelSpreadSheetCellDAOSerde . columnNames . length ) ; for ( int i = 0 ; i < ExcelSpreadSheetCellDAOSerde . columnNames . length ; i ++ ) { columnOIs . add ( PrimitiveObjectInspectorFactory . javaStringObjectInspector ) ; } this . oi = ObjectInspectorFactory . getStandardStructObjectInspector ( Arrays . asList ( ExcelSpreadSheetCellDAOSerde . columnNames ) , columnOIs ) ; LOG . debug ( "Finished Initialization" ) ; }
Initializes the SerDe \n You can define in the table properties (additionally
to the standard Hive properties) the following options \n Any of the
HadoopOffice options (hadoopoffice.*), such as encryption, signing, low
footprint mode, linked workbooks, can be defined in the table properties @see
<a href=
"https://github.com/ZuInnoTe/hadoopoffice/wiki/Hadoop-File-Format">HadoopOffice
configuration</a>\n

@param conf                Hadoop Configuration
@param prop                table properties.
@param partitionProperties ignored. Partitions are not supported.