public class IgnitePortablesImpl extends Object implements IgnitePortables
IgnitePortables implementation.| Constructor and Description |
|---|
IgnitePortablesImpl(GridKernalContext ctx,
CacheObjectPortableProcessor proc) |
| Modifier and Type | Method and Description |
|---|---|
PortableBuilder |
builder(int typeId)
Creates new portable builder.
|
PortableBuilder |
builder(PortableObject portableObj)
Creates portable builder initialized by existing portable object.
|
PortableBuilder |
builder(String typeName)
Creates new portable builder.
|
Collection<PortableMetadata> |
metadata()
Gets metadata for all known types.
|
PortableMetadata |
metadata(Class<?> cls)
Gets metadata for provided class.
|
PortableMetadata |
metadata(int typeId)
Gets metadata for provided type ID.
|
PortableMetadata |
metadata(String typeName)
Gets metadata for provided class name.
|
IgniteCacheObjectProcessor |
processor() |
<T> T |
toPortable(Object obj)
Converts provided object to instance of
PortableObject. |
int |
typeId(String typeName)
Gets type ID for given type name.
|
public IgnitePortablesImpl(GridKernalContext ctx, CacheObjectPortableProcessor proc)
ctx - Context.public int typeId(String typeName)
typeId in interface IgnitePortablestypeName - Type name.public <T> T toPortable(@Nullable Object obj) throws PortableException
PortableObject.toPortable in interface IgnitePortablesobj - Object to convert.PortableException - In case of error.public PortableBuilder builder(int typeId)
builder in interface IgnitePortablestypeId - ID of the type.public PortableBuilder builder(String typeName)
builder in interface IgnitePortablestypeName - Type name.public PortableBuilder builder(PortableObject portableObj)
builder in interface IgnitePortablesportableObj - Portable object to initialize builder.@Nullable public PortableMetadata metadata(Class<?> cls) throws PortableException
metadata in interface IgnitePortablescls - Class.PortableException - In case of error.@Nullable public PortableMetadata metadata(String typeName) throws PortableException
metadata in interface IgnitePortablestypeName - Type name.PortableException - In case of error.@Nullable public PortableMetadata metadata(int typeId) throws PortableException
metadata in interface IgnitePortablestypeId - Type ID.PortableException - In case of error.public Collection<PortableMetadata> metadata() throws PortableException
metadata in interface IgnitePortablesPortableException - In case of error.public IgniteCacheObjectProcessor processor()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015