* @param partitionFilter Partition filter, or null if no filter used
* @param additionalOptions Additional options, in the form "option=value"
*/
public void addVertexInput(Class<? extends HiveToVertex> hiveToVertexClass,
String tableName, String partitionFilter, String ... additionalOptions) {
VertexInputFormatDescription description =
new VertexInputFormatDescription(HiveVertexInputFormat.class);
description.addParameter(
HIVE_VERTEX_INPUT.getClassOpt().getKey(), hiveToVertexClass.getName());
description.addParameter(HIVE_VERTEX_INPUT.getProfileIdOpt().getKey(),
"vertex_input_profile_" + vertexInputDescriptions.size());
description.addParameter(
HIVE_VERTEX_INPUT.getTableOpt().getKey(), tableName);
if (partitionFilter != null && !partitionFilter.isEmpty()) {
description.addParameter(
HIVE_VERTEX_INPUT.getPartitionOpt().getKey(), partitionFilter);
}
addAdditionalOptions(description, additionalOptions);
vertexInputDescriptions.add(description);
}