Search in sources :

Example 1 with TimestampMergePolicyConfiguration

use of org.apache.rya.export.TimestampMergePolicyConfiguration 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();
}
Also used : TimestampMergePolicyConfiguration(org.apache.rya.export.TimestampMergePolicyConfiguration) MergeConfiguration(org.apache.rya.export.api.conf.MergeConfiguration) TimestampPolicyBuilder(org.apache.rya.export.api.conf.policy.TimestampPolicyMergeConfiguration.TimestampPolicyBuilder)

Aggregations

TimestampMergePolicyConfiguration (org.apache.rya.export.TimestampMergePolicyConfiguration)1 MergeConfiguration (org.apache.rya.export.api.conf.MergeConfiguration)1 TimestampPolicyBuilder (org.apache.rya.export.api.conf.policy.TimestampPolicyMergeConfiguration.TimestampPolicyBuilder)1