Index Annotation

Indicating an index is as easy as providing an annotation to the attribute. An index annotation must be accompanied by an @Attribute annotation. You cannot annotate a relationship.

Indexes can have the following properties:

Attribute Type Default Description
loadFactor Integer 5 (Value from 1-10) Load Factor indicates the scalability of the index. If you define 10, it is built to handle large data sets and not degrade over time. Alternatively 1 is for smallest data sets. The lower the load factor, the faster it will be for small amounts of records. This will also reduce the amount of disk space used.

Indexes can have the following types:

Type Description Min/Max

String

UTF-8 Encoded Text

Integer

Mutable Integer(can be null) -2147483648 to 2147483647

int

Immutable Integer(cannot be null) -2147483648 to 2147483647

Long

Mutable Long(can be null) -9223372036854775808 to 9223372036854775807

long

Immutable Long(cannot be null) -9223372036854775808 to 9223372036854775807

Double

Mutable Double(can be null) 4.9E-324 to 1.7976931348623157E308

double

Immutable Double(cannot be null) 4.9E-324 to 1.7976931348623157E308

Boolean

Mutable Boolean(can be null) true/false

boolean

Immutable Boolean(cannot be null) true/false

Date

Java Date Time Sun Dec 02 16:47:04 GMT 292269055 - Sun Aug 17 07:12:55 GMT 292278994

Float

Java Float primitive or mutable 0.0

Byte

Java Byte primitive or mutable 0

Short

Java Short primitive or mutable 0

Managed Entity

The entity must implement Comparable. null

Enum

Custom enum value. null
  1. Partition Annotation