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
  • Integer
  • List
  • Map
  • String

When setting a value in Java, the Aerospike library automatically determines the best native Aerospike data type for storage:

  • Integers and longs are converted to an internal number format.
  • Strings are converted to UTF-8.
  • Byte arrays are stored as blobs.

Aerospike’s internal typing system automatically converts data types. Cross-language data type issues are handled internally by the Aerospike libraries. For example, an Aerospike String is stored internally in UTF-8 format, allowing Java and C#–which both use Unicode preferentially–applications to transparently interact with Python, which uses UTF-8, and C, which does not use standard internal character encoding.

For all other data types (including compound objects), we recommend using Aerospike collection data types (List/Map) or a higher level serialization system (like Google’s Protocol Buffers, MessagePack, JSON or XML). For binary serialization, the serialized value can be used to populate a blob (byte[]) bin.

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?