this.datasetStatesByUrns = Optional.of(computeDatasetStatesByUrns()); final boolean shouldCommitDataInJob = shouldCommitDataInJob(this.jobState); final DeliverySemantics deliverySemantics = DeliverySemantics.parse(this.jobState); final int numCommitThreads = numCommitThreads();
/** * Get the devliery semantics type from {@link ConfigurationKeys#DELIVERY_SEMANTICS}. * The default value is {@link Type#AT_LEAST_ONCE}. */ public static DeliverySemantics parse(State state) { String value = state.getProp(ConfigurationKeys.GOBBLIN_RUNTIME_DELIVERY_SEMANTICS, AT_LEAST_ONCE.toString()).toUpperCase(); Optional<DeliverySemantics> semantics = Enums.getIfPresent(DeliverySemantics.class, value); Preconditions.checkState(semantics.isPresent(), value + " is not a valid delivery semantics"); return semantics.get(); } }
this.semantics = DeliverySemantics.parse(this.jobState); this.commitSequenceStore = createCommitSequenceStore();
/** * Get the devliery semantics type from {@link ConfigurationKeys#DELIVERY_SEMANTICS}. * The default value is {@link Type#AT_LEAST_ONCE}. */ public static DeliverySemantics parse(State state) { String value = state.getProp(ConfigurationKeys.GOBBLIN_RUNTIME_DELIVERY_SEMANTICS, AT_LEAST_ONCE.toString()).toUpperCase(); Optional<DeliverySemantics> semantics = Enums.getIfPresent(DeliverySemantics.class, value); Preconditions.checkState(semantics.isPresent(), value + " is not a valid delivery semantics"); return semantics.get(); } }
this.datasetStatesByUrns = Optional.of(computeDatasetStatesByUrns()); final boolean shouldCommitDataInJob = shouldCommitDataInJob(this.jobState); final DeliverySemantics deliverySemantics = DeliverySemantics.parse(this.jobState); final int numCommitThreads = numCommitThreads();
this.semantics = DeliverySemantics.parse(this.jobState); this.commitSequenceStore = createCommitSequenceStore();