* @param partitionFilter Partition filter, or null if no filter used
* @param additionalOptions Additional options, in the form "option=value"
*/
public void addEdgeInput(Class<? extends HiveToEdge> hiveToEdgeClass,
String tableName, String partitionFilter, String ... additionalOptions) {
EdgeInputFormatDescription description =
new EdgeInputFormatDescription(HiveEdgeInputFormat.class);
description.addParameter(
HIVE_EDGE_INPUT.getClassOpt().getKey(), hiveToEdgeClass.getName());
description.addParameter(HIVE_EDGE_INPUT.getProfileIdOpt().getKey(),
"edge_input_profile_" + edgeInputDescriptions.size());
description.addParameter(
HIVE_EDGE_INPUT.getTableOpt().getKey(), tableName);
if (partitionFilter != null && !partitionFilter.isEmpty()) {
description.addParameter(
HIVE_EDGE_INPUT.getPartitionOpt().getKey(), partitionFilter);
}
addAdditionalOptions(description, additionalOptions);
edgeInputDescriptions.add(description);
}