Skip to content

Commit

Permalink
docs: Update docs and jsdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jheer committed Sep 17, 2024
1 parent 10ffbcb commit 3d98790
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ Format this table as an [Apache Arrow](https://arrow.apache.org/overview/) table
* *offset*: The row offset indicating how many initial rows to skip (default `0`).
* *types*: An optional object indicating the [Arrow data type](https://idl.uw.edu/flechette/api/data-types) to use for named columns. If specified, the input should be an object with column names for keys and Arrow data types for values. Type values must be instantiated Flechette [DataType](https://idl.uw.edu/flechette/api/data-types) instances (for example, `float64()`,`dateDay()`, `list(int32())` *etc.*). If a column's data type is not explicitly provided, type inference will be performed.
* *useBigInt*: Boolean flag (default `false`) to extract 64-bit integer types as JavaScript `BigInt` values. For Flechette tables, the default is to coerce 64-bit integers to JavaScript numbers and raise an error if the number is out of range. This option is only applied when parsing IPC binary data, otherwise the settings of the provided table instance are used.
* *useDecimalBigInt*: Boolean flag (default `false`) to extract Arrow decimal-type data as BigInt values, where fractional digits are scaled to integers. Otherwise, decimals are (sometimes lossily) converted to floating-point numbers (default). This option is only applied when parsing IPC binary data, otherwise the settings of the provided table instance are used.
* *useDate*: Boolean flag (default `true`) to convert Arrow date and timestamp values to JavaScript Date objects. Otherwise, numeric timestamps are used. This option is only applied when parsing IPC binary data, otherwise the settings of the provided table instance are used.
* *useDecimalBigInt*: Boolean flag (default `false`) to extract Arrow decimal-type data as BigInt values, where fractional digits are scaled to integers. Otherwise, decimals are (sometimes lossily) converted to floating-point numbers (default). This option is only applied when parsing IPC binary data, otherwise the settings of the provided table instance are used.
* *useMap*: Boolean flag (default `false`) to represent Arrow Map data as JavaScript `Map` values. For Flechette tables, the default is to produce an array of `[key, value]` arrays. This option is only applied when parsing IPC binary data, otherwise the settings of the provided table instance are used.
* *useProxy*: Boolean flag (default `false`) to extract Arrow Struct values and table row objects using zero-copy proxy objects that extract data from underlying Arrow batches. The proxy objects can improve performance and reduce memory usage, but do not support property enumeration (`Object.keys`, `Object.values`, `Object.entries`) or spreading (`{ ...object }`). This option is only applied when parsing IPC binary data, otherwise the settings of the provided table instance are used.

Expand Down
2 changes: 1 addition & 1 deletion src/table/ColumnTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ export class ColumnTable extends Table {
// -- Table Output Formats ------------------------------------------------

/**
* Format this table as an Flechette Arrow table.
* Format this table as a Flechette Arrow table.
* @param {import('../format/types.js').ArrowFormatOptions} [options]
* The Arrow formatting options.
* @return {import('@uwdata/flechette').Table} A Flechette Arrow table.
Expand Down
2 changes: 1 addition & 1 deletion src/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ export class Table {
* @param {boolean} [order=false] Indicates if the table should be
* scanned in the order determined by *orderby*. This
* argument has no effect if the table is unordered.
* @property {number} [limit=Infinity] The maximum number of row to scan.
* @property {number} [limit=Infinity] The maximum number of rows to scan.
* @property {number} [offset=0] The row offset indicating how many
* initial rows to skip.
*/
Expand Down

0 comments on commit 3d98790

Please sign in to comment.