Specialized Type Handlers
This is the manual for older MicroStream versions (Version < 5.0).
The new documentation (Version >= 5.0) is located at:
Although most types in the JDK or any other Java library will work with MicroStream, there is a bunch of specialized type handlers for the most commonly used types. They are optimized to reduce memory overhead and increase performance.
The following list describes all types for which special type handlers are implemented. All other types are analyzed generically.

Value Types

Primitive Types
All primitive types and arrays thereof
java.lang
Byte
Boolean
Short
Character
Integer
Float
Long
Double
Void
Object
String
java.math
java.util
java.util.regex
Pattern
java.io
File
java.nio.file
Path
java.net
java.sql
Date
Time
Timestamp

Collections

*) Most collections above are handled in a generic way. If you want a more optimized version of JDK collection handlers, you can utilize the provided module persistence.binary.jdk8.
pom.xml
1
<repositories>
2
<repository>
3
<id>microstream-releases</id>
4
<url>https://repo.microstream.one/repository/maven-public/</url>
5
</repository>
6
</repositories>
7
<dependencies>
8
<dependency>
9
<groupId>one.microstream</groupId>
10
<artifactId>persistence.binary.jdk8</artifactId>
11
<version>04.00.00-MS-GA</version>
12
</dependency>
13
</dependencies>
Copied!
1
final EmbeddedStorageFoundation<?> foundation = EmbeddedStorage.Foundation();
2
foundation.onConnectionFoundation(BinaryHandlersJDK8::registerJDK8TypeHandlers);
Copied!
Last modified 3mo ago
Export as PDF
Copy link