class D4::IndexBuilder

Overview

Builds embedded indexes by copying a local D4 to a temporary file in the same directory, then publishing the fully indexed result on success.

Defined in:

d4/index_builder.cr

Constant Summary

GRANULARITY = 65536_i64

Class Method Summary

Class Method Detail

def self.append(path : String | Path, *, track : String | Nil = nil, kinds : Array(IndexKind) = [IndexKind::SecondaryFrames, IndexKind::Sum], control : WriteControl = WriteControl.new) : Nil #

Appends in place. A failure can leave unreachable trailing bytes; use .build when the original file must remain byte-for-byte unchanged.


[View source]
def self.build(path : String | Path, *, track : String | Nil = nil, kinds : Array(IndexKind) = [IndexKind::SecondaryFrames, IndexKind::Sum], control : WriteControl = WriteControl.new) : Nil #

[View source]