Skip to main content
Version: v1

LocalReferenceCollection Class

Represents a collection of ReferencePositions associated with one segment in a merge-tree.

Signature​

export declare class LocalReferenceCollection

Remarks​

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the LocalReferenceCollection class.

Static Methods​

MethodReturn TypeDescription
append(seg1, seg2)void

Methods​

MethodReturn TypeDescription
addAfterTombstones(refs)void
addBeforeTombstones(refs)void

Method Details​

addAfterTombstones​

Signature​

addAfterTombstones(...refs: Iterable<LocalReference | ReferencePosition>[]): void;

Parameters​

ParameterTypeDescription
refsIterable<LocalReference | ReferencePosition>[]

addBeforeTombstones​

Signature​

addBeforeTombstones(...refs: Iterable<LocalReference | ReferencePosition>[]): void;

Parameters​

ParameterTypeDescription
refsIterable<LocalReference | ReferencePosition>[]

append​

Signature​

static append(seg1: ISegment, seg2: ISegment): void;

Parameters​

ParameterTypeDescription
seg1ISegment
seg2ISegment