Package ai.konduit.serving.config
Interface TextConfig
-
- All Known Subinterfaces:
MetricsConfig
- All Known Implementing Classes:
ClassificationMetricsConfig,ColumnDistribution,MemMapConfig,MultiLabelMetricsConfig,NoOpMetricsConfig,RegressionMetricsConfig
public interface TextConfigTextConfig is an interface for any configuration in Konduit Serving that should be convertable to/from JSON and YAML This interface does two things: (a) Adds default toJson() and toYaml() methods to the class, using Jackson (b) Is used in testing to provide coverage tracking for to/from JSON/YAML testing- Author:
- Alex Black
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringtoJson()Convert a configuration to a JSON stringdefault io.vertx.core.json.JsonObjecttoJsonObject()Convert a configuration to aJsonObjectdefault java.lang.StringtoYaml()Convert a configuration to a YAML string
-
-
-
Method Detail
-
toJson
default java.lang.String toJson()
Convert a configuration to a JSON string- Returns:
- convert this object to a string
-
toYaml
default java.lang.String toYaml()
Convert a configuration to a YAML string- Returns:
- the yaml representation of this configuration
-
toJsonObject
default io.vertx.core.json.JsonObject toJsonObject()
Convert a configuration to aJsonObject- Returns:
- the
JsonObjectrepresentation of this configuration
-
-