Action
    Preparing search index...

    A bitset-like class that represents a collection of indices, typically a subset of the rows in a Spotfire.Dxp.Data.IDataColumn or similar.

    2.0

    Hierarchy (View Summary)

    Implements

    Index

    Methods

    • Returns Iterator<number>

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1 | null

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

    Default capability

    Item: PropertyGet<number | System.Int32, boolean> & PropertySet<
        number
        | System.Int32,
        boolean | System.Boolean,
    >

    Indexer. Returns a bool indicating if the index is a member of the set.

    2.0

    • get Capacity(): number

      Controls the total number of indexes that the IndexSet can hold (numbered 0 to Capacity-1) Setting capacity will clear the IndexSet.

      Returns number

      2.0

    • set Capacity(value: number): void

      Parameters

      • value: number

      Returns void

    • get Count(): number

      Number of indexes currently in the set.

      Returns number

      2.0

    • get First(): number

      Gets the first index in the IndexSet.

      Returns number

      2.0

    • get IsEmpty(): boolean

      True if the set has no indexes (Count == 0).

      Returns boolean

      2.0

    • get IsFull(): boolean

      True if the all indexes are in the set (Count == Capacity).

      Returns boolean

      2.0

    • get IsReadOnly(): boolean

      Tells if this IndexSet is read-only.

      Returns boolean

      2.0

    • get Last(): number

      Gets the last index in the IndexSet.

      Returns number

      2.0

    • Adds the index to the set. If the index is already in the set, nothing is changed.

      Parameters

      Returns void

      2.0

    • Determines whether this IndexSet contains all indexes of that IndexSet.

      Parameters

      Returns boolean

      true is that set is a sub set of this set; otherwise false.

      2.0

    • Deletes a range of index positions. Existing indexes from startIndex+count and above are moved down.

      Parameters

      • startIndex: number | System.Int32

        First index position to be deleted

      • count: number | System.Int32

        Number of index positions

      Returns void

      2.0

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Tests if this IndexSet and that IndexSet have the same Capacity and contain exactly the same indexes.

      Parameters

      Returns boolean

      True if the sets are equal

      2.0

    • Gets the index after the specified one.

      Parameters

      Returns number

      Next index, or -1.

      2.0

    • Gets the index before the specified one.

      Parameters

      Returns number

      Previous index, or -1.

      2.0

    • Gets the number of indexes in a subset defined by the startIndex and endIndex arguments.

      Parameters

      Returns number

      Number of indexes in subset.

      If an IndexSet is not filled, GetSubsetCount(0,index) can be used to retrieve the index (between 0 and Count - 1) for a particular index (between 0 and Capacity - 1).

      2.0

    • Returns a bool indicating if the index is a member of the set.

      Parameters

      Returns boolean

      True if the index is a member of the set

      2.0

    • Makes room for more indexes. Existing indexes from startIndex and above are moved up.

      Parameters

      • startIndex: number | System.Int32

        First new index position

      • count: number | System.Int32

        Number of new index positions

      • add: boolean | System.Boolean

        Add the new indexes to the set

      Returns void

      2.0

    • Determines whether this and that IndexSet have any indexes in common.

      Parameters

      Returns boolean

      true is the sets intersect; otherwise false.

      2.0

    • Inverts the set. Any index that was included in the set will be excluded and vice versa.

      Note: the method changes the internal state of this IndexSet

      Returns Spotfire.Dxp.Data.IndexSet

      This modified IndexSet

      2.0

    • Gets the Nth smallest index. Caution: This method is slow (linear time), so you must ensure that your algorithm (or the one using your algorithm) never calls this method many times, which could result in quadratic time.

      Parameters

      • indexOrdinalNumber: number | System.Int32

        Index ordinal number. The valid range is 1 to Count.

      Returns number

      The index with the specified ordinal number.

      2.0

    • Removes the index from the set. If the index is not in the set, nothing is changed.

      Parameters

      Returns void

      2.0