Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
hash_kernels.h
Go to the documentation of this file.
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing,
12 // software distributed under the License is distributed on an
13 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 // KIND, either express or implied. See the License for the
15 // specific language governing permissions and limitations
16 // under the License.
17 
18 #ifndef ARROW_COMPUTE_HASH_KERNELS_H
19 #define ARROW_COMPUTE_HASH_KERNELS_H
20 
21 #include "arrow/status.h"
22 #include "arrow/util/visibility.h"
23 
24 namespace arrow {
25 
26 class Array;
27 class ChunkedArray;
28 class Column;
29 class DataType;
30 
31 namespace compute {
32 
33 class FunctionContext;
34 class UnaryKernel;
35 
38 ARROW_EXPORT
39 Status GetUniqueFunction(const DataType& in_type, std::unique_ptr<UnaryKernel>* kernel);
40 
48 ARROW_EXPORT
49 Status Unique(FunctionContext* context, const Array& array, std::shared_ptr<Array>* out);
50 
58 ARROW_EXPORT
59 Status Unique(FunctionContext* context, const ChunkedArray& array,
60  std::shared_ptr<Array>* out);
61 
69 ARROW_EXPORT
70 Status Unique(FunctionContext* context, const Column& array, std::shared_ptr<Array>* out);
71 
72 } // compute
73 } // arrow
74 
75 #endif
Status Unique(FunctionContext *context, const Array &array, std::shared_ptr< Array > *out)
Unique elements of an array.
Status GetUniqueFunction(const DataType &in_type, std::unique_ptr< UnaryKernel > *kernel)
Top-level namespace for Apache Arrow C++ API.
Definition: allocator.h:29