Interface IBinaryReader
Reader for binary objects.
Namespace: Apache.Ignite.Core.Binary
Assembly: Apache.Ignite.Core.dll
Syntax
public interface IBinaryReader
Methods
GetRawReader()
Get raw reader.
Declaration
IBinaryRawReader GetRawReader()
Returns
| Type | Description |
|---|---|
| IBinaryRawReader | Raw reader. |
ReadArray<T>(string)
Read named object array.
Declaration
T[] ReadArray<T>(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| T[] | Object array. |
Type Parameters
| Name | Description |
|---|---|
| T |
ReadBoolean(string)
Read named boolean value.
Declaration
bool ReadBoolean(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| bool | Boolean value. |
ReadBooleanArray(string)
Read named boolean array.
Declaration
bool[] ReadBooleanArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| bool[] | Boolean array. |
ReadByte(string)
Read named byte value.
Declaration
byte ReadByte(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| byte | Byte value. |
ReadByteArray(string)
Read named byte array.
Declaration
byte[] ReadByteArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName |
Returns
| Type | Description |
|---|---|
| byte[] | Byte array. |
ReadChar(string)
Read named char value.
Declaration
char ReadChar(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| char | Char value. |
ReadCharArray(string)
Read named char array.
Declaration
char[] ReadCharArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName |
Returns
| Type | Description |
|---|---|
| char[] | Char array. |
ReadCollection(string)
Read named collection.
Declaration
ICollection ReadCollection(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| ICollection | Collection. |
ReadCollection(string, Func<int, ICollection>, Action<ICollection, object>)
Read named collection.
Declaration
ICollection ReadCollection(string fieldName, Func<int, ICollection> factory, Action<ICollection, object> adder)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
| Func<int, ICollection> | factory | Factory. |
| Action<ICollection, object> | adder | Adder. |
Returns
| Type | Description |
|---|---|
| ICollection | Collection. |
ReadDecimal(string)
Read named decimal value.
Declaration
decimal? ReadDecimal(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| decimal? | Decimal value. |
ReadDecimalArray(string)
Read named decimal array.
Declaration
decimal?[] ReadDecimalArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| decimal?[] | Decimal array. |
ReadDictionary(string)
Read named dictionary.
Declaration
IDictionary ReadDictionary(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| IDictionary | Dictionary. |
ReadDictionary(string, Func<int, IDictionary>)
Read named dictionary.
Declaration
IDictionary ReadDictionary(string fieldName, Func<int, IDictionary> factory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
| Func<int, IDictionary> | factory | Factory. |
Returns
| Type | Description |
|---|---|
| IDictionary | Dictionary. |
ReadDouble(string)
Read named double value.
Declaration
double ReadDouble(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| double | Double value. |
ReadDoubleArray(string)
Read named double array.
Declaration
double[] ReadDoubleArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| double[] | Double array. |
ReadEnumArray<T>(string)
Read named enum array.
Declaration
T[] ReadEnumArray<T>(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| T[] | Enum array. |
Type Parameters
| Name | Description |
|---|---|
| T |
ReadEnum<T>(string)
Read named enum value.
Declaration
T ReadEnum<T>(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| T | Enum value. |
Type Parameters
| Name | Description |
|---|---|
| T |
ReadFloat(string)
Read named float value.
Declaration
float ReadFloat(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| float | Float value. |
ReadFloatArray(string)
Read named float array.
Declaration
float[] ReadFloatArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| float[] | Float array. |
ReadGuid(string)
Read named GUID value.
Declaration
Guid? ReadGuid(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| Guid? | GUID value. |
ReadGuidArray(string)
Read named GUID array.
Declaration
Guid?[] ReadGuidArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| Guid?[] | GUID array. |
ReadInt(string)
Read named int value.
Declaration
int ReadInt(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| int | Int value. |
ReadIntArray(string)
Read named int array.
Declaration
int[] ReadIntArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| int[] | Int array. |
ReadLong(string)
Read named long value.
Declaration
long ReadLong(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| long | Long value. |
ReadLongArray(string)
Read named long array.
Declaration
long[] ReadLongArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| long[] | Long array. |
ReadObject<T>(string)
Read named object.
Declaration
T ReadObject<T>(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| T | Object. |
Type Parameters
| Name | Description |
|---|---|
| T |
ReadShort(string)
Read named short value.
Declaration
short ReadShort(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| short | Short value. |
ReadShortArray(string)
Read named short array.
Declaration
short[] ReadShortArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName |
Returns
| Type | Description |
|---|---|
| short[] | Short array. |
ReadString(string)
Read named string value.
Declaration
string ReadString(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| string | String value. |
ReadStringArray(string)
Read named string array.
Declaration
string[] ReadStringArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| string[] | String array. |
ReadTimestamp(string)
Read named date value in UTC form.
Declaration
DateTime? ReadTimestamp(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| DateTime? | Date value. |
ReadTimestampArray(string)
Read named date array in UTC form.
Declaration
DateTime?[] ReadTimestampArray(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| DateTime?[] | Date array. |