Private
_columnPrivate
_columnThe 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]
Private
_columnThe row that _columnOffsets[0] represents.
Private
_delayedPrivate
_delimiterPrivate
_donePrivate
_headerThe header strings.
Private
_initialThe number of rows to parse initially before doing a delayed parse of the entire data.
Private
_isPrivate
_maxThe maximum number of rows to parse when there is a cache miss.
Private
_parserPrivate
_quotePrivate
_quotePrivate
_rawPrivate
_readyPrivate
_rowPrivate
_rowPrivate
_rowThe index for the start of each row.
Private
_startedThe delimiter between entries on the same row.
A boolean determined by whether parsing has completed.
The header strings.
The initial chunk of rows to parse.
Whether this model has been disposed.
The string representation of the data.
The delimiter between rows.
Private
_computeCompute 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.
Private
_getPrivate
_resetProtected
emitEmit 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 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.
A data model implementation for in-memory delimiter-separated data.
Notes
This model handles data with up to 2**32 characters.