V3.6.0
-
Support for integer and floating point arrays: store
short[]
,char[]
,int[]
,long[]
andfloat[]
anddouble[]
(or their Kotlin counterparts, e.g.
FloatArray
) without a converter.A simple example is a shape entity that stores a palette of RGB colors:
@Entity public class Shape { @Id public long id; // An array of RGB color values that are used by this shape. public int[] palette; } // Find all shapes that use red in their palette try (Query<Shape> query = store.boxFor(Shape.class) .query(Shape_.palette.equal(0xFF0000)) .build()) { query.findIds(); }
This can also be useful to store vector embeddings produced by machine learning, e.g.:
@Entity public class ImageEmbedding { @Id public long id; // Link to the actual image, e.g. on Cloud storage public String url; // The coordinates computed for this image (vector embedding) public float[] coordinates; }
-
Fix incorrect Cursor code getting generated when using
@Convert
to convert to aString
array. -
The
io.objectbox.sync
plugin now also automatically adds a Sync-enabled JNI library on macOS and Windows (previously on Linux x64 only; still need to add manually for Linux on ARM).
We're hiring! 😎 We believe resource-efficient coding is still cool and are looking for a C / C++ developer who shares our sentiment.