Annotation Type ShardKeys


  • @Documented
    @Inherited
    @Retention(RUNTIME)
    @Target(TYPE)
    @MorphiaExperimental
    public @interface ShardKeys
    Defines the properties used in the shard key.
    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.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      ShardKey[] value
      The shard keys
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      ShardOptions options
      The sharding options to apply.
    • Element Detail

      • value

        ShardKey[] value
        The shard keys
        Returns:
        the keys
      • options

        ShardOptions options
        The sharding options to apply.
        Returns:
        the options
        Default:
        @dev.morphia.annotations.ShardOptions