Record storage
Aerospike record storage data expressions allow you to access and retrieve values stored in bins and keys within records.
This guide covers expressions like bin_blob, bin_exists, bin_float, bin_geo, bin_int, bin_list, bin_map, bin_str, key_blob, key_int, and key_str, which enable efficient data retrieval based on bin type or record key. Code examples demonstrate how to use them effectively in queries.
Ops
bin_blob(name)Retrieve the bin with the name indicated by name as a blob_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
blob_bin bin_exists(name)Returns true if a bin exists on the record with the name indicated by name, otherwise returns unknown.
| Name | Type |
|---|---|
name | string_value |
boolean_value bin_float(name)Retrieve the bin with the name indicated by name as a float_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
float_bin bin_geo(name)Retrieve the bin with the name indicated by name as a geojson_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
geojson_bin bin_hll(name)Retrieve the bin with the name indicated by name as a hll_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
hll_bin bin_int(name)Retrieve the bin with the name indicated by name as a integer_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
integer_bin bin_list(name)Retrieve the bin with the name indicated by name as a list_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
list_bin bin_map(name)Retrieve the bin with the name indicated by name as a map_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
map_bin bin_str(name)Retrieve the bin with the name indicated by name as a string_bin. Return unknown if the bin does not exist or the bin is a different type.
| Name | Type |
|---|---|
name | string_value |
string_bin bin_type(name)Retrieve the data type of the bin with the name indicated by name in ParticleType format. Return unknown if the bin does not exist.
The following list shows each bin ParticleType and its associated integer value:
NULL: 0
INTEGER: 1
DOUBLE: 2
STRING: 3
BLOB: 4
JBLOB: 7
BOOL: 17
HLL: 18
MAP: 19
LIST: 20
GEOJSON: 23
| Name | Type |
|---|---|
name | string_value |
ParticleType key_blob()Retrieve the key as a blob/bytes. Return unknown if the key does not exist or the key is a different type.
blob_value key_int()Retrieve the key as a integer. Return unknown if the key does not exist or the key is a different type.
integer_value