THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Built-in | Java | C# | C++ |
---|---|---|---|
Bitmask(n) | BitSet | ||
Int8 | byte (Byte if nullable) | sbyte | |
Uint8 | short with range constraints | byte | |
Int16 | short (Short if nullable) | short | |
Uint16 | int with range constratints | ushort | |
Int32 | int (Integer if nullable) | int | |
Uint32 | long with range constratints | uint | |
Int64 | long (Long if nullable) | long | |
Uint64 | BigInteger with range constratints | ulong | |
Float | float (Float if nullable) | float | |
Double | double (Double if nullable) | double | |
Number([n]) | BigInteger | BigInteger | |
Decimal | BigDecimal | decimal | |
UUID | UUID | Guid | |
String | String | string | |
Date | LocalDate | ||
Time | LocalTime | ||
Datetime | LocalDateTime | ||
Instant | Date (Instant?) | ||
BLOB | byte[] |
As Java has no native support for unsigned types. We still can introduce 'unsigned' flag to schema type and or separate binary type-codes, and allow to map to the closest types of wider range. E.g. map Uint8 → short and recheck constraints during serialization.
...