public class NamespacedIdCodec extends AbstractSpecificationCodec<Id.NamespacedId>
Id.NamespacedId. Currently only supports
Id.Application, Id.Artifact,
Id.Program, Id.DatasetInstance,
Id.Stream and Id.Stream.View.
Support for other Id.NamespacedId objects will be added later.| Constructor and Description |
|---|
NamespacedIdCodec() |
| Modifier and Type | Method and Description |
|---|---|
Id.NamespacedId |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(Id.NamespacedId src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
deserializeList, deserializeMap, deserializeSet, serializeList, serializeMap, serializeSetpublic com.google.gson.JsonElement serialize(Id.NamespacedId src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
public Id.NamespacedId deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
com.google.gson.JsonParseExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.