use of org.apache.rya.export.api.conf.policy.TimestampPolicyMergeConfiguration.TimestampPolicyBuilder in project incubator-rya by apache.
the class TimestampPolicyConfigurationAdapter method createConfig.
/**
* @param jConfig - The JAXB generated configuration.
* @return The {@link MergeConfiguration} used in the application
* @throws MergeConfigurationException
*/
@Override
public MergeConfiguration createConfig(final MergeToolConfiguration jConfig) throws MergeConfigurationException {
final TimestampMergePolicyConfiguration timeConfig = (TimestampMergePolicyConfiguration) jConfig;
final MergeConfiguration.Builder configBuilder = super.getBuilder(jConfig);
final TimestampPolicyBuilder builder = new TimestampPolicyBuilder(configBuilder);
builder.setToolStartTime(timeConfig.getToolStartTime());
return builder.build();
}
Aggregations