vibhatha commented on code in PR #13700:
URL: https://github.com/apache/arrow/pull/13700#discussion_r937891973


##########
cpp/src/arrow/compute/api_vector.h:
##########
@@ -174,6 +174,23 @@ class ARROW_EXPORT SelectKOptions : public FunctionOptions 
{
   std::vector<SortKey> sort_keys;
 };
 
+/// \brief Fetch options
+class ARROW_EXPORT FetchOptions : public FunctionOptions {
+ public:
+  explicit FetchOptions(int64_t offset = 0, int64_t count = 0,
+                        std::vector<SortKey> sort_keys = {}, bool sort_first = 
true);
+  static constexpr char const kTypeName[] = "FetchOptions";
+
+  /// The number of `offset` elements to skip.
+  int64_t offset;
+  /// The number of `count` elements to select.
+  int64_t count;
+  /// Column key(s) to order by and how to order by these sort keys.

Review Comment:
   Btw, the default is no sort_keys. You specify it only if you need sorting. 
By default it is not sorted if the keys are not provided.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to