Skip to content
Visit booth 3171 at Google Cloud Next to see how to unlock real-time decisions at scaleMore info

Supported data types

The Aerospike database supports these native types:

Click to view data types
  • Blob
  • Boolean
  • Double
  • Float
  • GeoJSON
  • HyperLogLog
  • Integer
  • List
  • Map
  • String

When a value is set in Ruby, the Aerospike Ruby client library automatically determines the best Aerospike native type for storage. All FixedNum numbers fitting 64 bits convert to an internal number format. Strings are stored with UTF-8 encoding.

The Aerospike internal typing system automatically converts data types. Cross-language data type issues are handled internally by the Aerospike Ruby client library. For example, an Aerospike string is stored internally in UTF-8 format. This allows Java and C#, which both use Unicode preferentially, to interact transparently with Ruby (which uses UTF-8).

The Aerospike Ruby client does not automatically serialize other data types such as arbitrary object instances. To do this, serialize the object into a byte array and pass it to the library. These blobs must be manually deserialized on retrieval. If these objects are retrieved by another language, they appear as a regular blob. Objects serialized using another languages serialization system appear to Ruby as blobs.

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?