Skip to content

Commit 1c5644a

Browse files
committed
Fix docs Query.R
1 parent 6d1a70c commit 1c5644a

10 files changed

Lines changed: 44 additions & 44 deletions

R/Query.R

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22
#
3-
# Copyright (c) 2017-2024 TileDB Inc.
3+
# Copyright (c) 2017-2025 TileDB Inc.
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -31,13 +31,13 @@ setClass("tiledb_query",
3131
## could add arr of type 'ANY' (using shortcut to not have to deal with collate order)
3232
## if array was needed for query object
3333

34-
#' Creates a 'tiledb_query' object
34+
#' Creates a `tiledb_query` object
3535
#'
3636
#' @param array A TileDB Array object
3737
#' @param type A character value that must be one of 'READ', 'WRITE', or
38-
#' 'DELETE' (for TileDB >= 2.12.0)
38+
#' 'DELETE', 'MODIFY_EXCLUSIVE' (for TileDB >= 2.12.0)
3939
#' @param ctx (optional) A TileDB Ctx object
40-
#' @return 'tiledb_query' object
40+
#' @return A `tiledb_query` object
4141
#' @export tiledb_query
4242
tiledb_query <- function(
4343
array,
@@ -59,7 +59,7 @@ tiledb_query <- function(
5959
#' Return TileDB Query type
6060
#'
6161
#' @param query A TileDB Query object
62-
#' @return A character value, either 'READ' or 'WRITE'
62+
#' @return A character value, either 'READ', 'WRITE', 'DELETE' or 'MODIFY_EXCLUSIVE'
6363
#' @export
6464
tiledb_query_type <- function(query) {
6565
stopifnot(`Argument 'query' must be a tiledb_query object` = is(query, "tiledb_query"))
@@ -74,7 +74,7 @@ tiledb_query_type <- function(query) {
7474
#' @return The modified query object, invisibly
7575
#' @export
7676
tiledb_query_set_layout <- function(
77-
query,
77+
query,
7878
layout = c(
7979
"COL_MAJOR", "ROW_MAJOR",
8080
"GLOBAL_ORDER", "UNORDERED"
@@ -99,7 +99,7 @@ tiledb_query_get_layout <- function(query) {
9999
#' Set subarray for TileDB Query object
100100
#'
101101
#' @param query A TileDB Query object
102-
#' @param subarray A subarry vector object
102+
#' @param subarray A subarray vector object
103103
#' @param type An optional type as a character, if missing type is
104104
#' inferred from the vector.
105105
#' @return The modified query object, invisibly
@@ -123,7 +123,7 @@ tiledb_query_set_subarray <- function(query, subarray, type) {
123123
#' @param query A TileDB Query object
124124
#' @param attr A character value containing the attribute
125125
#' @param buffer A vector providing the query buffer
126-
#' @return The modified query object, invisisibly
126+
#' @return The modified query object, invisibly
127127
#' @export
128128
tiledb_query_set_buffer <- function(query, attr, buffer) {
129129
stopifnot(
@@ -165,8 +165,8 @@ tiledb_query_create_buffer_ptr_char <- function(query, varvec) {
165165
#' @return An external pointer to the allocated buffer object
166166
#' @export
167167
tiledb_query_alloc_buffer_ptr_char <- function(
168-
sizeoffsets,
169-
sizedata,
168+
sizeoffsets,
169+
sizedata,
170170
nullable = FALSE
171171
) {
172172
stopifnot(
@@ -221,15 +221,15 @@ tiledb_query_set_buffer_ptr_char <- function(query, attr, bufptr) {
221221
#' @param ncells A number of elements (not bytes)
222222
#' @param nullable Optional boolean parameter indicating whether missing values
223223
#' are allowed (for which another column is allocated), default is FALSE
224-
#' @param varnum Option intgeter parameter for the number of elemements per variable,
224+
#' @param varnum Optional integer parameter for the number of elements per variable,
225225
#' default is one
226226
#' @return An external pointer to the allocated buffer object
227227
#' @export
228228
tiledb_query_buffer_alloc_ptr <- function(
229-
query,
230-
datatype,
231-
ncells,
232-
nullable = FALSE,
229+
query,
230+
datatype,
231+
ncells,
232+
nullable = FALSE,
233233
varnum = 1
234234
) {
235235
stopifnot(
@@ -303,7 +303,7 @@ tiledb_query_get_buffer_ptr <- function(bufptr) {
303303
#' @return An R object as resulting from the query
304304
#' @export
305305
tiledb_query_get_buffer_char <- function(
306-
bufptr,
306+
bufptr,
307307
sizeoffsets = 0,
308308
sizestring = 0
309309
) {
@@ -378,7 +378,7 @@ tiledb_query_status <- function(query) {
378378
#' @param attr A character value containing the attribute
379379
#' @return A integer with the number of elements in the results buffer
380380
#' for the given attribute
381-
#' @seealso tiledb_query_result_buffer_elements_vec
381+
#' @seealso [tiledb_query_result_buffer_elements_vec]
382382
#' @export
383383
tiledb_query_result_buffer_elements <- function(query, attr) {
384384
stopifnot(
@@ -407,11 +407,11 @@ tiledb_query_result_buffer_elements <- function(query, attr) {
407407
#' for fixed-size attribute or dimensions), the number elements in the results
408408
#' buffer for the given attribute, and (if nullable) a third element with the validity
409409
#' buffer size.
410-
#' @seealso tiledb_query_result_buffer_elements
410+
#' @seealso [tiledb_query_result_buffer_elements]
411411
#' @export
412412
tiledb_query_result_buffer_elements_vec <- function(
413-
query,
414-
attr,
413+
query,
414+
attr,
415415
nullable = FALSE
416416
) {
417417
stopifnot(
@@ -433,10 +433,10 @@ tiledb_query_result_buffer_elements_vec <- function(
433433
#' @return The query object, invisibly
434434
#' @export
435435
tiledb_query_add_range <- function(
436-
query,
437-
schema,
438-
attr, lowval,
439-
highval,
436+
query,
437+
schema,
438+
attr, lowval,
439+
highval,
440440
stride = NULL
441441
) {
442442
stopifnot(
@@ -465,11 +465,11 @@ tiledb_query_add_range <- function(
465465
#' @return The query object, invisibly
466466
#' @export
467467
tiledb_query_add_range_with_type <- function(
468-
query,
469-
idx,
470-
datatype,
471-
lowval,
472-
highval,
468+
query,
469+
idx,
470+
datatype,
471+
lowval,
472+
highval,
473473
stride = NULL
474474
) {
475475
stopifnot(
@@ -677,7 +677,7 @@ tiledb_query_ctx <- function(query) {
677677
# query@arr
678678
# }
679679

680-
##' Run an aggregate oprtation on the given query attribute
680+
##' Run an aggregate operation on the given query attribute
681681
##'
682682
##' @param query A TileDB Query object
683683
##' @param attrname The name of an attribute
@@ -686,7 +686,7 @@ tiledb_query_ctx <- function(query) {
686686
##' @return The value of the aggregation
687687
##' @export
688688
tiledb_query_apply_aggregate <- function(
689-
query,
689+
query,
690690
attrname,
691691
operation = c("Count", "NullCount", "Min", "Max", "Mean", "Sum"),
692692
nullable = TRUE

man/query_layout-set-tiledb_array-method.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query_apply_aggregate.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query_buffer_alloc_ptr.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query_result_buffer_elements.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query_result_buffer_elements_vec.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query_set_buffer.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query_set_subarray.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tiledb_query_type.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)