public interface MarshallerContext
Modifier and Type | Method and Description |
---|---|
IgnitePredicate<String> |
classNameFilter()
Returns class name filter.
|
Class |
getClass(int typeId,
ClassLoader ldr)
Gets class for provided type ID.
|
String |
getClassName(byte platformId,
int typeId)
Gets class name for provided (platformId, typeId) pair.
|
boolean |
isSystemType(String typeName)
Checks whether the given type is a system one - JDK class or Ignite class.
|
JdkMarshaller |
jdkMarshaller()
Returns JDK marshaller instance.
|
boolean |
registerClassName(byte platformId,
int typeId,
String clsName)
Method to register typeId->class name mapping in marshaller context cluster-wide.
|
boolean |
registerClassNameLocally(byte platformId,
int typeId,
String clsName)
Method to register typeId->class name mapping in marshaller context on local node only.
|
boolean registerClassName(byte platformId, int typeId, String clsName) throws IgniteCheckedException
platformId
- Id of a platform (java, .NET, etc.) to register mapping for.typeId
- Type ID.clsName
- Class name.True
if mapping was registered successfully.IgniteCheckedException
- In case of error.boolean registerClassNameLocally(byte platformId, int typeId, String clsName) throws IgniteCheckedException
platformId
- Id of a platform (java, .NET, etc.) to register mapping for.typeId
- Type id.clsName
- Class name.True
if class mapping was registered successfully.IgniteCheckedException
- In case of error.Class getClass(int typeId, ClassLoader ldr) throws ClassNotFoundException, IgniteCheckedException
typeId
- Type ID.ldr
- Class loader.ClassNotFoundException
- If class was not found.IgniteCheckedException
- In case of any other error.String getClassName(byte platformId, int typeId) throws ClassNotFoundException, IgniteCheckedException
platformId
- id of a platform the class was registered for.typeId
- Type ID.ClassNotFoundException
- If class was not found.IgniteCheckedException
- In case of any other error.boolean isSystemType(String typeName)
typeName
- Type name.true
if the type is a system one, false
otherwise.IgnitePredicate<String> classNameFilter()
JdkMarshaller jdkMarshaller()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019