Bin Structure

Column name/value pair.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public struct Bin
Inheritance
Object    ValueType    Bin

Constructors

Bin(String, Value) Constructor, specifying bin name and value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Boolean) Constructor, specifying bin name and boolean value. For servers configured as "single-bin", enter a null or empty name. Either a boolean or integer bin is sent to the server, depending on configuration UseBoolBin.
Bin(String, Byte) Constructor, specifying bin name and byte value. The server will convert all byte integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Byte) Constructor, specifying bin name and byte array value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, IDictionary) Create bin with a map value. The map value will be serialized as a server map type. For servers configured as "single-bin", enter a null or empty name.
Bin(String, IList) Create bin with a list value. The list value will be serialized as a server list type. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Double) Constructor, specifying bin name and double value.

For servers configured as "single-bin", enter a null or empty name.

Bin(String, Int16) Constructor, specifying bin name and short value. The server will convert all shorts to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Int32) Constructor, specifying bin name and integer value. The server will convert all integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Int64) Constructor, specifying bin name and long value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Object) Create bin with an object value. This is the slowest of the Bin constructors because the type must be determined using multiple "instanceof" checks. If the object type is unrecognized, BinaryFormatter is used to serialize the object.

To disable this constructor, set DisableSerializer to true.

Bin(String, SByte) Constructor, specifying bin name and signed byte value. The server will convert all byte integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Single) Constructor, specifying bin name and float value.

For servers configured as "single-bin", enter a null or empty name.

Bin(String, String) Constructor, specifying bin name and string value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, UInt16) Constructor, specifying bin name and unsigned short value. The server will convert all shorts to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, UInt32) Constructor, specifying bin name and unsigned integer value. The server will convert all integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, UInt64) Constructor, specifying bin name and unsigned long value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, IDictionary, MapOrder) Create bin with a map value and order. The map value will be serialized as a server map type. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Byte, Int32, Int32) Constructor, specifying bin name and byte array segment value. For servers configured as "single-bin", enter a null or empty name.

Properties

name Bin name. Current limit is 15 characters.
value Bin value.

Methods

AsGeoJSON Create bin with a GeoJSON value.
AsNull Create bin with a null value. This is useful for bin deletions within a record. For servers configured as "single-bin", enter a null or empty name.
EqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
ToString Return string representation of bin.
(Overrides ValueTypeToString)

See Also