The following prototype methods access data persisted in the row triple, triple, and lexicon indexes as well as literal row sets constructed in the program. These prototype methods can be used in conjuction with the Data Access Functions.
Function name | Description |
---|---|
AccessPlan.prototype.col | This method identifies a column, where the column name is unique. |
AccessPlan.prototype.except | This method restricts the left row set to rows where a row with the same columns and values doesn't exist in the right row set. |
AccessPlan.prototype.explain | This method returns a representation of the builtin execution plan. |
AccessPlan.prototype.export | This method generates a serialized representation of the Optic query to JSON so that it can be persisted as a file or used as a REST payload. |
AccessPlan.prototype.groupBy | This method collapses a group of rows into a single row. |
AccessPlan.prototype.intersect | This method restricts the left row set to rows where a row with the same columns and values exists in the right row set. |
AccessPlan.prototype.joinCrossProduct | This method yields one output row set that concatenates every left row with every right row. |
AccessPlan.prototype.joinDoc | This function specifies a document column to add to the rows by reading the documents for an existing source column having a value of a document uri (which can be used to read other documents) or a fragment id (which can be used to read the source documents for rows). |
AccessPlan.prototype.joinDocUri | This method adds a uri column to rows based on an existing fragment id column to identify the source document for each row. |
AccessPlan.prototype.joinInner | This method returns all rows from multiple tables where the join condition is met. |
AccessPlan.prototype.joinLeftOuter | This method yields one output row set with the rows from an inner join as well as rows from the left row set. |
AccessPlan.prototype.limit | This method specifies the maximum number of rows to be returned by this Plan. |
AccessPlan.prototype.map | This method applies the specified function to each row returned by the plan to produce a different result row. |
AccessPlan.prototype.offset | This method returns a subset of the rows in the result set. |
AccessPlan.prototype.offsetLimit | This method returns a subset of the rows in the result set by skipping the number of rows specified by start and returning the remaining rows up to the length limit. |
AccessPlan.prototype.orderBy | This method sorts the row set by the specified order definition. |
AccessPlan.prototype.prepare | This method prepares the specified plan for execution as an optional final step before execution. |
AccessPlan.prototype.reduce | This method applies a function or the builtin reducer to each row returned by the plan to produce a single result as with the reduce() method of JavaScript Array. |
AccessPlan.prototype.result | This method executes the plan (mapping or reducing, if specified) to generate the result, which is a plan, document plan, prepared plan, or map or reduce result plan. |
AccessPlan.prototype.select | This call projects the specified columns from the current row set and / or applies a qualifier to the columns in the row set. |
AccessPlan.prototype.union | This method yields all of the rows from the input row sets. |
AccessPlan.prototype.where | This method restricts the row set to rows matched by the boolean expression. |
AccessPlan.prototype.whereDistinct | This method removes duplicate rows from the row set. |