Skip to main content
Version: v1

SummaryTreeBuilder Class

Signature

export declare class SummaryTreeBuilder implements ISummaryTreeWithStats

Implements: ISummaryTreeWithStats

Constructors

ConstructorDescription
(constructor)()Constructs a new instance of the SummaryTreeBuilder class

Properties

PropertyTypeDescription
statsReadonly<ISummaryStats>
summaryISummaryTree

Methods

MethodReturn TypeDescription
addAttachment(id)void
addBlob(key, content)void
addHandle(key, handleType, handle)void
addWithStats(key, summarizeResult)void
getSummaryTree()ISummaryTreeWithStats

Constructor Details

(constructor)

Constructs a new instance of the SummaryTreeBuilder class

Signature

constructor();

Property Details

stats

Signature

get stats(): Readonly<ISummaryStats>;

Type: Readonly<ISummaryStats>

summary

Signature

get summary(): ISummaryTree;

Type: ISummaryTree

Method Details

addAttachment

Signature

addAttachment(id: string): void;

Parameters

ParameterTypeDescription
idstring

addBlob

Signature

addBlob(key: string, content: string | Uint8Array): void;

Parameters

ParameterTypeDescription
keystring
contentstring | Uint8Array

addHandle

Signature

addHandle(key: string, handleType: SummaryType.Tree | SummaryType.Blob | SummaryType.Attachment, handle: string): void;

Parameters

ParameterTypeDescription
keystring
handleTypeSummaryType.Tree | SummaryType.Blob | SummaryType.Attachment
handlestring

addWithStats

Signature

addWithStats(key: string, summarizeResult: ISummarizeResult): void;

Parameters

ParameterTypeDescription
keystring
summarizeResultISummarizeResult

getSummaryTree

Signature

getSummaryTree(): ISummaryTreeWithStats;

Returns

Return type: ISummaryTreeWithStats