A type alias for the data model cell regions.
A type alias for the args objects of the changed
signal.
A type alias for the data model column regions.
The metadata for a column in a data model.
A type alias for the data model row regions.
The column offset cache, starting with row _columnOffsetsStartingRow
The index of the first character in the data string for row r, column c is columnOffsets[(r-this.columnOffsetsStartingRow)*numColumns+c]
The row that _columnOffsets[0] represents.
The header strings.
The number of rows to parse initially before doing a delayed parse of the entire data.
The maximum number of rows to parse when there is a cache miss.
The index for the start of each row.
A signal emitted when the data model has changed.
A singleton empty metadata object.
Whether this model has been disposed.
A promise that resolves when the model has parsed all of its data.
Compute the row offsets and initialize the column offset cache.
The last row to parse, from the start of the data (first row is row 1).
This method supports parsing the data incrementally by calling it with incrementally higher endRow. Rows that have already been parsed will not be parsed again.
Get the parsed string field for a row and column.
The row number of the data item.
The column number of the data item.
The parsed string for the data item.
Get the index in the data string for the first character of a row and column.
The row of the data item.
The column of the data item.
Parse the data string asynchronously.
It can take several seconds to parse a several hundred megabyte string, so we parse the first 500 rows to get something up on the screen, then we parse the full data string asynchronously.
Reset the parser state.
Get the column count for a region in the data model.
The column region of interest.
Get the data value for a cell in the data model.
The cell region of interest.
The row index of the cell of interest.
The column index of the cell of interest.
Dispose the resources held by this model.
Emit the changed
signal for the data model.
Subclass should call this method whenever the data model has changed so that attached data grids can update themselves.
Get the metadata for a column in the data model.
The cell region of interest.
The index of the column of interest.
The metadata for the column.
The returned metadata should be treated as immutable.
Models which support columnar data may reimplement this method to return the metadata for a column.
The metadata can be used by custom cell renderers and cell editors to customize handling of specific cell data types.
This method is called often, and so should be efficient.
The default implementation returns {}
.
Get the row count for a region in the data model.
The row region of interest.
Generated using TypeDoc
A data model implementation for in-memory delimiter-separated data. The namespace for the
DSVModel
class statics.Notes
This model handles data with up to 2**32 characters.