Apache Ignite.NET
Apache.Ignite.Core.Binary.IBinary Interface Reference

Defines binary objects functionality. With binary objects you are able to:

More...

Public Member Functions

ToBinary< T > (object obj)
 Converts provided object to binary form. More...
 
IBinaryObjectBuilder GetBuilder (Type type)
 Create builder for the given binary object type. Note that this type must be specified in BinaryConfiguration. More...
 
IBinaryObjectBuilder GetBuilder (string typeName)
 Create builder for the given binary object type name. More...
 
IBinaryObjectBuilder GetBuilder (IBinaryObject obj)
 Create builder over existing binary object. More...
 
int GetTypeId (string typeName)
 Gets type id for the given type name. More...
 
ICollection< IBinaryTypeGetBinaryTypes ()
 Gets metadata for all known types. More...
 
IBinaryType GetBinaryType (int typeId)
 Gets metadata for specified type id. More...
 
IBinaryType GetBinaryType (string typeName)
 Gets metadata for specified type name. More...
 
IBinaryType GetBinaryType (Type type)
 Gets metadata for specified type. More...
 
IBinaryObject BuildEnum (string typeName, int value)
 Converts enum to a binary form. More...
 
IBinaryObject BuildEnum (Type type, int value)
 Converts enum to a binary form. More...
 
IBinaryObject BuildEnum (string typeName, string valueName)
 Converts enum to a binary form. More...
 
IBinaryObject BuildEnum (Type type, string valueName)
 Converts enum to a binary form. More...
 
IBinaryType RegisterEnum (string typeName, IEnumerable< KeyValuePair< string, int >> values)
 Registers enum type. More...
 

Detailed Description

Member Function Documentation

IBinaryObject Apache.Ignite.Core.Binary.IBinary.BuildEnum ( string  typeName,
int  value 
)
Parameters
typeNameEnum type name.
valueEnum int value.
Returns
Binary representation of the specified enum value.
IBinaryObject Apache.Ignite.Core.Binary.IBinary.BuildEnum ( Type  type,
int  value 
)
Parameters
typeEnum type.
valueEnum int value.
Returns
Binary representation of the specified enum value.
IBinaryObject Apache.Ignite.Core.Binary.IBinary.BuildEnum ( string  typeName,
string  valueName 
)
Parameters
typeNameEnum type name.
valueNameEnum value name.
Returns
Binary representation of the specified enum value.
IBinaryObject Apache.Ignite.Core.Binary.IBinary.BuildEnum ( Type  type,
string  valueName 
)
Parameters
typeEnum type.
valueNameEnum value name.
Returns
Binary representation of the specified enum value.
IBinaryType Apache.Ignite.Core.Binary.IBinary.GetBinaryType ( int  typeId)
Returns
Metadata.
IBinaryType Apache.Ignite.Core.Binary.IBinary.GetBinaryType ( string  typeName)
Returns
Metadata.
IBinaryType Apache.Ignite.Core.Binary.IBinary.GetBinaryType ( Type  type)
Returns
Metadata.
ICollection<IBinaryType> Apache.Ignite.Core.Binary.IBinary.GetBinaryTypes ( )
Returns
Metadata.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinary.GetBuilder ( Type  type)
Parameters
type
Returns
Builder.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinary.GetBuilder ( string  typeName)
Parameters
typeNameType name.
Returns
Builder.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinary.GetBuilder ( IBinaryObject  obj)
Parameters
obj
Returns
Builder.
int Apache.Ignite.Core.Binary.IBinary.GetTypeId ( string  typeName)
Parameters
typeNameType name.
Returns
Type id.
IBinaryType Apache.Ignite.Core.Binary.IBinary.RegisterEnum ( string  typeName,
IEnumerable< KeyValuePair< string, int >>  values 
)
Parameters
typeNameName of the type.
valuesMapping of enum value names to int values.
Returns
Binary type for registered enum.
T Apache.Ignite.Core.Binary.IBinary.ToBinary< T > ( object  obj)

Note that object's type needs to be configured in BinaryConfiguration.

Parameters
objObject to convert.
Returns
Converted object.