public OperatorSubtaskState( @Nonnull StateObjectCollection<OperatorStateHandle> managedOperatorState, @Nonnull StateObjectCollection<OperatorStateHandle> rawOperatorState, @Nonnull StateObjectCollection<KeyedStateHandle> managedKeyedState, @Nonnull StateObjectCollection<KeyedStateHandle> rawKeyedState) { this.managedOperatorState = Preconditions.checkNotNull(managedOperatorState); this.rawOperatorState = Preconditions.checkNotNull(rawOperatorState); this.managedKeyedState = Preconditions.checkNotNull(managedKeyedState); this.rawKeyedState = Preconditions.checkNotNull(rawKeyedState); long calculateStateSize = managedOperatorState.getStateSize(); calculateStateSize += rawOperatorState.getStateSize(); calculateStateSize += managedKeyedState.getStateSize(); calculateStateSize += rawKeyedState.getStateSize(); stateSize = calculateStateSize; }
public OperatorSubtaskState( @Nonnull StateObjectCollection<OperatorStateHandle> managedOperatorState, @Nonnull StateObjectCollection<OperatorStateHandle> rawOperatorState, @Nonnull StateObjectCollection<KeyedStateHandle> managedKeyedState, @Nonnull StateObjectCollection<KeyedStateHandle> rawKeyedState) { this.managedOperatorState = Preconditions.checkNotNull(managedOperatorState); this.rawOperatorState = Preconditions.checkNotNull(rawOperatorState); this.managedKeyedState = Preconditions.checkNotNull(managedKeyedState); this.rawKeyedState = Preconditions.checkNotNull(rawKeyedState); long calculateStateSize = managedOperatorState.getStateSize(); calculateStateSize += rawOperatorState.getStateSize(); calculateStateSize += managedKeyedState.getStateSize(); calculateStateSize += rawKeyedState.getStateSize(); stateSize = calculateStateSize; }
public OperatorSubtaskState( @Nonnull StateObjectCollection<OperatorStateHandle> managedOperatorState, @Nonnull StateObjectCollection<OperatorStateHandle> rawOperatorState, @Nonnull StateObjectCollection<KeyedStateHandle> managedKeyedState, @Nonnull StateObjectCollection<KeyedStateHandle> rawKeyedState) { this.managedOperatorState = Preconditions.checkNotNull(managedOperatorState); this.rawOperatorState = Preconditions.checkNotNull(rawOperatorState); this.managedKeyedState = Preconditions.checkNotNull(managedKeyedState); this.rawKeyedState = Preconditions.checkNotNull(rawKeyedState); long calculateStateSize = managedOperatorState.getStateSize(); calculateStateSize += rawOperatorState.getStateSize(); calculateStateSize += managedKeyedState.getStateSize(); calculateStateSize += rawKeyedState.getStateSize(); stateSize = calculateStateSize; }