Package com.aerospike.client
Class Bin
java.lang.Object
com.aerospike.client.Bin
Column name/value pair.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor, specifying bin name and boolean value.Constructor, specifying bin name and byte value.Constructor, specifying bin name and byte array value.Constructor, specifying bin name, byte array value and particle type.Constructor, specifying bin name and byte array segment value.Constructor, specifying bin name and double value.Constructor, specifying bin name and float value.Constructor, specifying bin name and integer value.Constructor, specifying bin name and long value.Constructor, specifying bin name and short value.Constructor, specifying bin name and value.Constructor, specifying bin name and string value.Create bin with a list value.Create a map bin from a list of key/value entries.Create bin with a map value.Deprecated.Create bin with a sorted map value. -
Method Summary
-
Field Details
-
name
Bin name. Current limit is 15 characters. -
value
Bin value.
-
-
Constructor Details
-
Bin
Constructor, specifying bin name and string value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name and byte array value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name, byte array value and particle type. For internal use only.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin valuetype
- bin type, seeParticleType
-
Bin
Constructor, specifying bin name and byte array segment value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- byte array valueoffset
- byte array segment offsetlength
- byte array segment length
-
Bin
Constructor, specifying bin name and byte value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name and short value. The server will convert all shorts to longs.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name and integer value. The server will convert all integers to longs.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name and long value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name and double value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name and float value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Constructor, specifying bin name and boolean value. Either a boolean or integer bin is sent to the server, depending on configurationValue.UseBoolBin
.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Create bin with a list value. The list value will be serialized as a server list type.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Create bin with a map value. The map value will be serialized as a server map type.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Create bin with a sorted map value. The map value will be serialized as a server ordered map type.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
Bin
Deprecated.This constructor is deprecated. UseBin(String, Map)
if the map is unsorted (like HashMap). UseBin(String, SortedMap)
if the map is sorted (like TreeMap).Create bin with a map value and order. The map value will be serialized as a server map type.
- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value, pass in aSortedMap
instance if map order is sorted.mapOrder
- map sorted order.
-
Bin
Create a map bin from a list of key/value entries. The value will be serialized as a server map type with specified mapOrder.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- list of key/value entries already in desired sorted ordermapOrder
- map sorted order
-
Bin
Constructor, specifying bin name and value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
-
Method Details
-
asNull
Create bin with a null value. This is useful for bin deletions within a record.- Parameters:
name
- bin name, current limit is 15 characters
-
asGeoJSON
Create bin with a GeoJSON value.- Parameters:
name
- bin name, current limit is 15 charactersvalue
- bin value
-
toString
Return string representation of bin. -
equals
Compare Bin for equality. -
hashCode
public int hashCode()Return hash code for Bin.
-