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๏
duplicate_keys() const |
|
get_column() const |
|
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.
Returns whether the index was built in unique mode.