[ 
https://issues.apache.org/jira/browse/FLINK-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882749#comment-15882749
 ] 

ASF GitHub Bot commented on FLINK-5133:
---------------------------------------

Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3303#discussion_r102942657
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/api/common/operators/Operator.java ---
    @@ -45,6 +45,10 @@
                
        private int parallelism = ExecutionConfig.PARALLELISM_DEFAULT;  // the 
number of parallel instances to use
     
    +   private ResourceSpec minResource;                       // the minimum 
resource of the contract instance. optional
    --- End diff --
    
    In the newer code changes, we started using annotations like `@Nullable` 
(javax.annotation.Nullable) to mark fields that may be null. We found that this 
helps in code readability and in automatic bug detection in IntelliJ.
    
    I would encourage you to use that as well, if this field can be null.


> Support to set resource for operator in DataStream and DataSet
> --------------------------------------------------------------
>
>                 Key: FLINK-5133
>                 URL: https://issues.apache.org/jira/browse/FLINK-5133
>             Project: Flink
>          Issue Type: Sub-task
>          Components: DataSet API, DataStream API
>            Reporter: zhijiang
>            Assignee: zhijiang
>
> This is part of the fine-grained resource configuration.
> For *DataStream*, the *setResource* API will be setted onto 
> *SingleOutputStreamOperator* similar with other existing properties like 
> parallelism, name, etc.
> For *DataSet*, the *setResource* API will be setted onto *Operator* in the 
> similar way.
> There are two parameters described with minimum *ResourceSpec* and maximum 
> *ResourceSpec* separately in the API for considering resource resize in 
> future improvements.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to