spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiaqi Li (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-28915) The new keyword is not used when instantiating the WorkerOffer.
Date Thu, 29 Aug 2019 15:37:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-28915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jiaqi Li updated SPARK-28915:
-----------------------------
    Description: 
WorkerOffer is a case class, so we don't need to use new when instantiating it, which makes
code more concise.
{code:java}
private[spark]
case class WorkerOffer(
    executorId: String,
    host: String,
    cores: Int,
    address: Option[String] = None,
    resources: Map[String, Buffer[String]] = Map.empty)
{code}

  was:`WorkerOffer` is a case class, so we don't need to use `new` when instantiating it,
which makes code more concise.


> The new keyword is not used when instantiating the WorkerOffer.
> ---------------------------------------------------------------
>
>                 Key: SPARK-28915
>                 URL: https://issues.apache.org/jira/browse/SPARK-28915
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.4.3
>            Reporter: Jiaqi Li
>            Priority: Minor
>
> WorkerOffer is a case class, so we don't need to use new when instantiating it, which
makes code more concise.
> {code:java}
> private[spark]
> case class WorkerOffer(
>     executorId: String,
>     host: String,
>     cores: Int,
>     address: Option[String] = None,
>     resources: Map[String, Buffer[String]] = Map.empty)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message