[MINOR] Remove unused method in DataSourceUtils (#3031)
This commit is contained in:
@@ -45,7 +45,6 @@ import org.apache.hudi.hive.HiveSyncConfig;
|
|||||||
import org.apache.hudi.hive.SlashEncodedDayPartitionValueExtractor;
|
import org.apache.hudi.hive.SlashEncodedDayPartitionValueExtractor;
|
||||||
import org.apache.hudi.index.HoodieIndex.IndexType;
|
import org.apache.hudi.index.HoodieIndex.IndexType;
|
||||||
import org.apache.hudi.keygen.KeyGenerator;
|
import org.apache.hudi.keygen.KeyGenerator;
|
||||||
import org.apache.hudi.keygen.parser.AbstractHoodieDateTimeParser;
|
|
||||||
import org.apache.hudi.table.BulkInsertPartitioner;
|
import org.apache.hudi.table.BulkInsertPartitioner;
|
||||||
import org.apache.log4j.LogManager;
|
import org.apache.log4j.LogManager;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
@@ -97,17 +96,6 @@ public class DataSourceUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a date time parser class for TimestampBasedKeyGenerator, passing in any configs needed.
|
|
||||||
*/
|
|
||||||
public static AbstractHoodieDateTimeParser createDateTimeParser(TypedProperties props, String parserClass) throws IOException {
|
|
||||||
try {
|
|
||||||
return (AbstractHoodieDateTimeParser) ReflectionUtils.loadClass(parserClass, props);
|
|
||||||
} catch (Throwable e) {
|
|
||||||
throw new IOException("Could not load date time parser class " + parserClass, e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a UserDefinedBulkInsertPartitioner class via reflection,
|
* Create a UserDefinedBulkInsertPartitioner class via reflection,
|
||||||
* <br>
|
* <br>
|
||||||
|
|||||||
Reference in New Issue
Block a user