Package com.rpl.rama

Class SubindexOptions.CapturedSubindexOptions

java.lang.Object
com.rpl.rama.SubindexOptions.CapturedSubindexOptions
All Implemented Interfaces:
SubindexOptions, SubindexOptions.Impl
Enclosing interface:
SubindexOptions

public static class SubindexOptions.CapturedSubindexOptions extends Object implements SubindexOptions.Impl
  • Constructor Details

    • CapturedSubindexOptions

      public CapturedSubindexOptions()
  • Method Details

    • withoutSizeTracking

      public SubindexOptions.Impl withoutSizeTracking()
      Description copied from interface: SubindexOptions.Impl
      Disable automatic size tracking on this subindexed data structure. Automatic size tracking, enabled by default, makes querying the size of a subindexed structure (e.g. with Ops.SIZE O(1). The tradeoff is increased cost per write to the subindexed structure. Turning size tracking off makes writes faster but makes computing the size an expensive O(N) operation. Size tracking cannot be disabled for a list schema since Rama needs the size to efficiently compute the index for a newly appended element.
      Specified by:
      withoutSizeTracking in interface SubindexOptions.Impl
    • isSizeTracked

      public boolean isSizeTracked()