public static class SubindexOptions.CapturedSubindexOptions extends java.lang.Object implements SubindexOptions.Impl
SubindexOptions.CapturedSubindexOptions, SubindexOptions.Impl
Constructor and Description |
---|
CapturedSubindexOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSizeTracked() |
SubindexOptions.Impl |
withoutSizeTracking()
Disable automatic size tracking on this subindexed data structure.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, withoutSizeTracking
public SubindexOptions.Impl withoutSizeTracking()
SubindexOptions.Impl
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.withoutSizeTracking
in interface SubindexOptions.Impl
public boolean isSizeTracked()