CSVIndex๏ƒ

Inherits: RefCounted < Object

Lookup index for CSV table rows.

Description๏ƒ

CSVIndex stores a column-based lookup table built by CSVTable.build_index(). It supports fast single-row and multi-row lookups and can report duplicate keys when built in unique mode.

Methods๏ƒ

PackedStringArray

duplicate_keys() const

Array

get_all(value: Variant) const

StringName

get_column() const

Variant

get_row(value: Variant) const

bool

has(value: Variant) const

bool

is_unique() const


Method Descriptions๏ƒ

PackedStringArray duplicate_keys() const ๐Ÿ”—

Returns keys that appeared more than once when the index was built in unique mode.


Array get_all(value: Variant) const ๐Ÿ”—

Returns all rows matching value.


StringName get_column() const ๐Ÿ”—

Returns the indexed column name.


Variant get_row(value: Variant) const ๐Ÿ”—

Returns the first row for value, or null when no row matches.


bool has(value: Variant) const ๐Ÿ”—

Returns true if at least one row matches value.


bool is_unique() const ๐Ÿ”—

Returns whether the index was built in unique mode.