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

binary object builder. Provides ability to build binary objects dynamically without having class definitions. More...

Public Member Functions

GetField< T > (string fieldName)
 Get object field value. If value is another binary object, then builder for this object will be returned. If value is a container for other objects (array, ICollection, IDictionary), then container will be returned with primitive types in deserialized form and binary objects as builders. Any change in builder or collection returned through this method will be reflected in the resulting binary object after build. More...
 
IBinaryObjectBuilder SetField< T > (string fieldName, T val)
 Set object field value. Value can be of any type including other IBinaryObject and other builders. More...
 
IBinaryObjectBuilder RemoveField (string fieldName)
 Remove object field. More...
 
IBinaryObjectBuilder SetHashCode (int hashCode)
 Set explicit hash code. If builder creating object from scratch, then hash code initially set to 0. If builder is created from existing binary object, then hash code of that object is used as initial value. More...
 
IBinaryObject Build ()
 Build the object. More...
 
IBinaryObjectBuilder SetArrayField< T > (string fieldName, T[] val)
 Sets the array field. More...
 
IBinaryObjectBuilder SetBooleanField (string fieldName, bool val)
 Sets the boolean field. More...
 
IBinaryObjectBuilder SetBooleanArrayField (string fieldName, bool[] val)
 Sets the boolean array field. More...
 
IBinaryObjectBuilder SetByteField (string fieldName, byte val)
 Sets the byte field. More...
 
IBinaryObjectBuilder SetByteArrayField (string fieldName, byte[] val)
 Sets the byte array field. More...
 
IBinaryObjectBuilder SetCharField (string fieldName, char val)
 Sets the char field. More...
 
IBinaryObjectBuilder SetCharArrayField (string fieldName, char[] val)
 Sets the char array field. More...
 
IBinaryObjectBuilder SetCollectionField (string fieldName, ICollection val)
 Sets the collection field. More...
 
IBinaryObjectBuilder SetDecimalField (string fieldName, decimal?val)
 Sets the decimal field. More...
 
IBinaryObjectBuilder SetDecimalArrayField (string fieldName, decimal?[] val)
 Sets the decimal array field. More...
 
IBinaryObjectBuilder SetDictionaryField (string fieldName, IDictionary val)
 Sets the dictionary field. More...
 
IBinaryObjectBuilder SetDoubleField (string fieldName, double val)
 Sets the double field. More...
 
IBinaryObjectBuilder SetDoubleArrayField (string fieldName, double[] val)
 Sets the double array field. More...
 
IBinaryObjectBuilder SetEnumField< T > (string fieldName, T val)
 Sets the enum field. More...
 
IBinaryObjectBuilder SetEnumArrayField< T > (string fieldName, T[] val)
 Sets the enum array field. More...
 
IBinaryObjectBuilder SetFloatField (string fieldName, float val)
 Sets the float field. More...
 
IBinaryObjectBuilder SetFloatArrayField (string fieldName, float[] val)
 Sets the float array field. More...
 
IBinaryObjectBuilder SetGuidField (string fieldName, Guid?val)
 Sets the guid field. More...
 
IBinaryObjectBuilder SetGuidArrayField (string fieldName, Guid?[] val)
 Sets the guid array field. More...
 
IBinaryObjectBuilder SetIntField (string fieldName, int val)
 Sets the int field. More...
 
IBinaryObjectBuilder SetIntArrayField (string fieldName, int[] val)
 Sets the int array field. More...
 
IBinaryObjectBuilder SetLongField (string fieldName, long val)
 Sets the long field. More...
 
IBinaryObjectBuilder SetLongArrayField (string fieldName, long[] val)
 Sets the long array field. More...
 
IBinaryObjectBuilder SetShortField (string fieldName, short val)
 Sets the short field. More...
 
IBinaryObjectBuilder SetShortArrayField (string fieldName, short[] val)
 Sets the short array field. More...
 
IBinaryObjectBuilder SetStringField (string fieldName, string val)
 Sets the string field. More...
 
IBinaryObjectBuilder SetStringArrayField (string fieldName, string[] val)
 Sets the string array field. More...
 
IBinaryObjectBuilder SetTimestampField (string fieldName, DateTime?val)
 Sets the timestamp field. More...
 
IBinaryObjectBuilder SetTimestampArrayField (string fieldName, DateTime?[] val)
 Sets the timestamp array field. More...
 

Detailed Description

Note that type ID is required in order to build binary object. Usually it is enough to provide a simple type name and Ignite will generate the type ID automatically.

Member Function Documentation

IBinaryObject Apache.Ignite.Core.Binary.IBinaryObjectBuilder.Build ( )
Returns
Resulting binary object.
T Apache.Ignite.Core.Binary.IBinaryObjectBuilder.GetField< T > ( string  fieldName)
Parameters
fieldNameField name.
Returns
Field value.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.RemoveField ( string  fieldName)
Parameters
fieldNameField name.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetArrayField< T > ( string  fieldName,
T[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetBooleanArrayField ( string  fieldName,
bool[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetBooleanField ( string  fieldName,
bool  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetByteArrayField ( string  fieldName,
byte[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetByteField ( string  fieldName,
byte  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetCharArrayField ( string  fieldName,
char[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetCharField ( string  fieldName,
char  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetCollectionField ( string  fieldName,
ICollection  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetDecimalArrayField ( string  fieldName,
decimal?[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetDecimalField ( string  fieldName,
decimal?  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetDictionaryField ( string  fieldName,
IDictionary  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetDoubleArrayField ( string  fieldName,
double[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetDoubleField ( string  fieldName,
double  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetEnumArrayField< T > ( string  fieldName,
T[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetEnumField< T > ( string  fieldName,
val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetField< T > ( string  fieldName,
val 
)
Parameters
fieldNameField name.
valField value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetFloatArrayField ( string  fieldName,
float[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetFloatField ( string  fieldName,
float  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetGuidArrayField ( string  fieldName,
Guid?[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetGuidField ( string  fieldName,
Guid?  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetHashCode ( int  hashCode)
Parameters
hashCodeHash code.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetIntArrayField ( string  fieldName,
int[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetIntField ( string  fieldName,
int  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetLongArrayField ( string  fieldName,
long[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetLongField ( string  fieldName,
long  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetShortArrayField ( string  fieldName,
short[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetShortField ( string  fieldName,
short  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetStringArrayField ( string  fieldName,
string[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetStringField ( string  fieldName,
string  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetTimestampArrayField ( string  fieldName,
DateTime?[]  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.
IBinaryObjectBuilder Apache.Ignite.Core.Binary.IBinaryObjectBuilder.SetTimestampField ( string  fieldName,
DateTime?  val 
)
Parameters
fieldNameName of the field.
valThe value.
Returns
Current builder instance.