Value Class

Polymorphic value classes used to efficiently serialize objects into the wire protocol.

Definition

Properties

AsNull Get null value instance.
Object Return original value as an Object.
Type Get wire protocol value type.

Methods

EstimateSize Calculate number of bytes necessary to serialize the fixed value in the wire protocol.
Get(Boolean) Get boolean value instance.
Get(Byte) Get boolean value instance.
Get(Byte) Get byte array or null value instance.
Get(Double) Get double value instance.
Get(IDictionary) Get map or null value instance.
Get(IList) Get list or null value instance.
Get(Int16) Get short value instance.
Get(Int32) Get integer value instance.
Get(Int64) Get long value instance.
Get(Object) Determine value given generic object. This is the slowest of the Value get() methods. Useful when copying records from one cluster to another.
Get(SByte) Get signed boolean value instance.
Get(Single) Get float value instance.
Get(String) Get string or null value instance.
Get(UInt16) Get short value instance.
Get(UInt32) Get unsigned integer value instance.
Get(UInt64) Get unsigned long value instance.
Get(Value) Get value array instance.
Get(IDictionary, MapOrder) Get map or null value instance.
Get(Byte, Int32, Int32) Get byte array segment or null value instance.
GetAsBlob Get blob or null value instance.
GetAsGeoJSON Get GeoJSON or null value instance.
GetAsHLL Get HyperLogLog or null value instance.
GetFromRecordObject Get value from Record object. Useful when copying records from one cluster to another.
Pack Serialize the value using MessagePack.
ToInteger Return value as an integer.
ToLong Return value as a long.
ToUnsignedInteger Return value as an unsigned integer.
ToUnsignedLong Return value as an unsigned long.
ValidateKeyType Validate if value type can be used as a key.
Write Serialize the fixed value in the wire protocol.

Fields

DisableDeserializer Should default object deserializer be disabled. If true, an exception will be thrown when a default object deserialization is attempted. Default object serialization is triggered when serialized data is read/parsed from the server. DisableDeserializer is separate from DisableSerializer because there may be cases when no new serialization is allowed, but existing serialized objects need to be supported.
DisableSerializer Should BinaryFormatter be disabled. If true, an exception will be thrown when BinaryFormatter is used. BinaryFormatter serialization is triggered when a bin constructed by Bin(String, Object) or [!:Bin.AsBlob(string, object)] is used in a write command with an unrecognized object type.
INFINITY Infinity value to be used in CDT range comparisons only.
NULL Null value.
UseBoolBin Should client send boolean particle type for a boolean bin. If false, an integer particle type (1 or 0) is sent instead. Must be false for server versions less than 5.6 which do not support boolean bins. Can set to true for server 5.6+.
WILDCARD Wildcard value to be used in CDT range comparisons only.

See Also