T- is the type of the deserialized object that is passed to
toValueand returned by
toObject. The specific type depends on the particular binding that is used.
public interface ValueBinding<T>
Values (stored byte arrays) and typed objects representing that value. In other words, this interface is used for serialization and deserialization of
AvroBinding, which is a
ValueBinding subtype, may
be obtained from the
AvroCatalog. Or, the
interface may be implemented directly by the application to create custom
bindings, when the Avro data format is not used.
WARNING: We strongly recommend using an
DB will leverage Avro in the future to provide additional features and
T toObject(Value value) throws RuntimeException
KVStoremethod, the user calls
Valueobtained from the read operation.
Value toValue(T object) throws RuntimeException
toValuepassing an object she wishes to store. The resulting
Valueis then passed to the write operation method in
Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.