Package org.apache.spark.resource
Class ResourceInformationJson
Object
org.apache.spark.resource.ResourceInformationJson
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product,scala.Serializable
A case class to simplify JSON serialization of
ResourceInformation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResourceInformationJson(String name, scala.collection.Seq<String> addresses) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
ResourceInformationJson
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2) -
toString
-
name
-
addresses
-
toJValue
public org.json4s.JsonAST.JValue toJValue() -
toResourceInformation
-