Skip to main content
Version: v1

SnapshotLegacy Class

Signature

export declare class SnapshotLegacy

Constructors

ConstructorDescription
(constructor)(mergeTree, logger, filename, onCompletion)Constructs a new instance of the SnapshotLegacy class

Static Properties

PropertyTypeDescription
body
header
sizeOfFirstChunknumber

Properties

PropertyModifiersTypeDescription
filenameoptionalstring | undefined
mergeTreeMergeTree
onCompletionoptional(() => void) | undefined

Methods

MethodReturn TypeDescription
emit(catchUpMsgs, serializer, bind)ISummaryTreeWithStatsEmits the snapshot to an ISummarizeResult. If provided the optional IFluidSerializer will be used when serializing the summary data rather than JSON.stringify.
extractSync()IJSONSegment[]

Constructor Details

(constructor)

Constructs a new instance of the SnapshotLegacy class

Signature

constructor(mergeTree: MergeTree, logger: ITelemetryLogger, filename?: string | undefined, onCompletion?: (() => void) | undefined);

Parameters

ParameterModifiersTypeDescription
mergeTreeMergeTree
loggerITelemetryLogger
filenameoptionalstring | undefined
onCompletionoptional(() => void) | undefined

Property Details

body

Signature

static readonly body = "body";

filename

Signature

filename?: string | undefined;

Type: string | undefined

header

Signature

static readonly header = "header";

mergeTree

Signature

mergeTree: MergeTree;

Type: MergeTree

onCompletion

Signature

onCompletion?: (() => void) | undefined;

Type: (() => void) | undefined

sizeOfFirstChunk

Signature

static readonly sizeOfFirstChunk: number;

Type: number

Method Details

emit

Emits the snapshot to an ISummarizeResult. If provided the optional IFluidSerializer will be used when serializing the summary data rather than JSON.stringify.

Signature

emit(catchUpMsgs: ISequencedDocumentMessage[], serializer: IFluidSerializer, bind: IFluidHandle): ISummaryTreeWithStats;

Parameters

ParameterTypeDescription
catchUpMsgsISequencedDocumentMessage[]
serializerIFluidSerializer
bindIFluidHandle

Returns

Return type: ISummaryTreeWithStats

extractSync

Signature

extractSync(): IJSONSegment[];

Returns

Return type: IJSONSegment[]