Package org.apache.wayang.core.util
Interface JsonSerializable
- All Known Implementing Classes:
CardinalityEstimate
,ExplainTreeNode
,GenericSqlToStreamOperator
,LoadEstimate
,LoadProfile
,SqlToRddOperator
,SqlToStreamOperator
public interface JsonSerializable
This interface prescribes implementing instances to be able to provide itself as a
WayangJsonObj
. To allow
for deserialization, implementing class should furthermore provide a static fromJson(JSONObject)
method.
Note that it is recommended to use the JsonSerializables
utility to class to handle serialization.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
JsonSerializable.Serializer<T extends JsonSerializable>
AJsonSerializer
implementation to serializeJsonSerializable
s. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonSerializable.Serializer<JsonSerializable>
AJsonSerializer
implementation to serializeJsonSerializable
s. -
Method Summary
Modifier and TypeMethodDescriptiontoJson()
Convert this instance to aWayangJsonObj
.static <T extends JsonSerializable>
JsonSerializable.Serializer<T>AJsonSerializer
implementation to serializeJsonSerializable
s.
-
Field Details
-
uncheckedSerializer
AJsonSerializer
implementation to serializeJsonSerializable
s.
-
-
Method Details
-
toJson
WayangJsonObj toJson()Convert this instance to aWayangJsonObj
.- Returns:
- the
WayangJsonObj
-
uncheckedSerializer
AJsonSerializer
implementation to serializeJsonSerializable
s.
-