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.
Compute the row offsets and initialize the column offset cache.
Get the parsed string field for a row and column.
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.
Reset the parser state.
The index for the start of each row.
A signal emitted when the data model has changed.
The delimiter between entries on the same row.
A boolean determined by whether parsing has completed.
The header strings.
The header strings.
The initial chunk of rows to parse.
The initial chunk of rows to parse.
Whether this model has been disposed.
The string representation of the data.
The string representation of the data.
A promise that resolves when the model has parsed all of its data.
The delimiter between rows.
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.
Subclasses should call this method whenever the data model has changed so that attached data grids can update themselves.
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.
Get the metadata 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.
The metadata for the specified cell.
The returned metadata should be treated as immutable.
This method is called often, and so should be efficient.
The default implementation returns {}
.
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.
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.
Notes
This model handles data with up to 2**32 characters.