class D4::SumIndex

Defined in:

d4/index.cr

Constant Summary

MAX_CACHED_BYTES = 1048576_i64
UNCACHED_SUM = Int64::MIN

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : Source, entry : Format::Entry, chromosomes : Array(Chromosome)) #

[View source]

Instance Method Detail

def full_blocks(chromosome : String, start : Int64, stop : Int64, *, cancelled : Proc(Bool) | Nil = nil) : Int64 | Nil #

Returns nil when the precision of every stored block cannot be proved.

cancelled is evaluated between index I/O chunks. It cannot interrupt an in-flight source read, but lets callers abandon a long-running query before the next chunk is processed.


[View source]
def granularity : Int64 #

[View source]