Package net.thevpc.naru.api.model
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.thevpc.naru.api.model.NaruCachePlanView
NaruCachePlanView.None -
Method Summary
Modifier and TypeMethodDescriptioncacheBreakpoints(int maxBreakpoints) Segment indices after which a marker should be placed, capped atmaxBreakpoints.booleanisCacheHit(int i) Whether segmentiis a continuation of the previously cached prefix and the caller marked it cacheable.mode()segments()The segments in emission order.
-
Method Details
-
segments
Description copied from interface:NaruCachePlanViewThe segments in emission order.- Specified by:
segmentsin interfaceNaruCachePlanView
-
isCacheHit
public boolean isCacheHit(int i) Description copied from interface:NaruCachePlanViewWhether segmentiis 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:
isCacheHitin interfaceNaruCachePlanView
-
cacheBreakpoints
Description copied from interface:NaruCachePlanViewSegment indices after which a marker should be placed, capped atmaxBreakpoints. May return fewer than the cap when fewer segments qualify; never returns more.- Specified by:
cacheBreakpointsin interfaceNaruCachePlanView
-
mode
- Specified by:
modein interfaceNaruCachePlanView
-