IFClite TypeScript API
    Preparing search index...

    Interface EffectiveEntitySource

    The parser's source index shape, without a parser dependency.

    interface EffectiveEntitySource {
        deferredEntityIndex?: { get(id: number): { type: string } | undefined };
        entities?: {
            expressId?: Iterable<number, any, any> & ArrayLike<number>;
            typeRevision?: number;
            getTypeName(id: number): string;
        };
        entityIndex: {
            byId: { get(id: number): { type: string } | undefined };
            byType: ReadonlyMap<string, readonly number[]>;
        };
        schemaVersion?: string;
        sourceKind?: "step"
        | "tabular";
    }

    Hierarchy (View Summary)

    Index
    deferredEntityIndex?: { get(id: number): { type: string } | undefined }

    Property atoms may live outside the primary ID index after parsing.

    entities?: {
        expressId?: Iterable<number, any, any> & ArrayLike<number>;
        typeRevision?: number;
        getTypeName(id: number): string;
    }

    Optional type fallback for a caller-supplied columnar source domain. expressId lists the table's rows: for a tabular source it is also the source domain when the caller supplies none.

    Type Declaration

    • Optional ReadonlyexpressId?: Iterable<number, any, any> & ArrayLike<number>
    • Optional ReadonlytypeRevision?: number

      See EntityTable.typeRevision: a retype invalidates the class buckets built over this table.

    • getTypeName: function
      • Parameters

        • id: number

        Returns string

    entityIndex: {
        byId: { get(id: number): { type: string } | undefined };
        byType: ReadonlyMap<string, readonly number[]>;
    }

    Type Declaration

    • ReadonlybyId: { get(id: number): { type: string } | undefined }
    • ReadonlybyType: ReadonlyMap<string, readonly number[]>

      Source ids keyed by UPPERCASE STEP class.

    schemaVersion?: string

    Read only as a fallback when sourceKind is absent (#9976). The schema label used to double as the "no STEP records" marker; sourceKind says that now, and an explicit sourceKind always wins over the label. A caller that still passes 'IFC5' alone keeps selecting the entity table, so the move to the marker is not a breaking change. TODO(remove-by: next major of @ifc-lite/data, #9890)

    sourceKind?: "step" | "tabular"

    A 'tabular' store (IFCX is one) has no STEP type index, so its entity table is the source.