Class NaruCachePlanView.None

java.lang.Object
net.thevpc.naru.api.model.NaruCachePlanView.None
Record Components:
segments - ignored; a plan with no segmentation has none
All Implemented Interfaces:
NaruCachePlanView
Enclosing interface:
NaruCachePlanView

public static final class NaruCachePlanView.None extends Object implements NaruCachePlanView
  • Method Details

    • segments

      public List<NaruContextSegment> segments()
      Description copied from interface: NaruCachePlanView
      The segments in emission order.
      Specified by:
      segments in interface NaruCachePlanView
    • isCacheHit

      public boolean isCacheHit(int i)
      Description copied from interface: NaruCachePlanView
      Whether segment i is a continuation of the previously cached prefix and the caller marked it cacheable. A segment past the divergence point is never a hit, whatever the caller claimed, because its position in the prefix changed.
      Specified by:
      isCacheHit in interface NaruCachePlanView
    • cacheBreakpoints

      public List<Integer> cacheBreakpoints(int maxBreakpoints)
      Description copied from interface: NaruCachePlanView
      Segment indices after which a marker should be placed, capped at maxBreakpoints. May return fewer than the cap when fewer segments qualify; never returns more.
      Specified by:
      cacheBreakpoints in interface NaruCachePlanView
    • mode

      public NaruCachingMode mode()
      Specified by:
      mode in interface NaruCachePlanView