Bin Class

Aerospike
Column name/value pair.
Inheritance Hierarchy

SystemObject
  Aerospike.ClientBin

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public sealed class Bin

The Bin type exposes the following members.

Constructors

  NameDescription
Public methodBin(String, Value)
Constructor, specifying bin name and value. For servers configured as "single-bin", enter a null or empty name.
Public methodBin(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.
Public methodBin(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.
Public methodBin(String, Byte)
Constructor, specifying bin name and byte array value. For servers configured as "single-bin", enter a null or empty name.
Public methodBin(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.
Public methodBin(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.
Public methodBin(String, Double)
Constructor, specifying bin name and double value.

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

Public methodBin(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.
Public methodBin(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.
Public methodBin(String, Int64)
Constructor, specifying bin name and long value. For servers configured as "single-bin", enter a null or empty name.
Public methodBin(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.

Public methodBin(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.
Public methodBin(String, Single)
Constructor, specifying bin name and float value.

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

Public methodBin(String, String)
Constructor, specifying bin name and string value. For servers configured as "single-bin", enter a null or empty name.
Public methodBin(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.
Public methodBin(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.
Public methodBin(String, UInt64)
Constructor, specifying bin name and unsigned long value. For servers configured as "single-bin", enter a null or empty name.
Public methodBin(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.
Public methodBin(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.
Top
Methods

  NameDescription
Public methodStatic memberAsBlob
Create bin with a blob value. The value will be serialized by BinaryFormatter. This method is faster than the bin object constructor because the blob is converted directly instead of using multiple "instanceof" type checks with a blob default.

To disable this method, set DisableSerializer to true.

Public methodStatic memberAsGeoJSON
Create bin with a GeoJSON value.
Public methodStatic memberAsNull
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.
Public methodToString
Return string representation of bin.
(Overrides ObjectToString.)
Top
Fields

  NameDescription
Public fieldname
Bin name. Current limit is 14 characters.
Public fieldvalue
Bin value.
Top
See Also

Reference