public class PartitionKeyCodec extends ComparableCodec implements com.google.gson.JsonSerializer<PartitionKey>, com.google.gson.JsonDeserializer<PartitionKey>
PartitionKey
s.Constructor and Description |
---|
PartitionKeyCodec() |
Modifier and Type | Method and Description |
---|---|
PartitionKey |
deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
com.google.gson.JsonElement |
serialize(PartitionKey partitionKey,
Type type,
com.google.gson.JsonSerializationContext jsonSerializationContext) |
deserializeComparable, serializeComparable
public PartitionKey deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<PartitionKey>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(PartitionKey partitionKey, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
serialize
in interface com.google.gson.JsonSerializer<PartitionKey>
Copyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.