struct ContextPackPlanner::Plan

Defined in:

context_pack_planner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(budget : Int64, included : Array(ContextPackPlanner::Included), skipped : Array(ContextPackPlanner::Skipped)) #

[View source]

Instance Method Detail

def budget : Int64 #

[View source]
def highest_skipped : Doc | Nil #

The first skipped document in packing order has the highest priority.


[View source]
def included : Array(Included) #

[View source]
def left : Int64 #

[View source]
def share_used : Float64 #

[View source]
def skipped : Array(Skipped) #

[View source]
def used : Int64 #

[View source]