Package dev.morphia.annotations
Annotation Type ShardOptions
-
@Documented @Retention(RUNTIME) @Target(ANNOTATION_TYPE) @MorphiaExperimental public @interface ShardOptions
Specifies options to be applied when sharding.- Since:
- 2.3
Developer note.This is an experimental item. Its function and presence are subject to change. Feedback on features and usability extremely welcome.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intnumInitialChunksOptional.booleanpresplitHashedZonesOptional.booleanuniqueOptional.
-
-
-
-
presplitHashedZones
boolean presplitHashedZones
Optional. Specify true to perform initial chunk creation and distribution for an empty or non-existing collection based on the defined zones and zone ranges for the collection. For hashed sharding only.- Returns:
- true for presplits
- See Also:
ShardKeyType.HASHED
- Default:
- false
-
-