3 #ifndef AWKWARD_VIRTUALARRAY_H_ 4 #define AWKWARD_VIRTUALARRAY_H_ 42 tojson_part(
ToJson& builder,
bool verbose)
const override;
45 shallow_copy()
const override;
48 with_form_key(
const FormKey& form_key)
const override;
51 purelist_parameter(
const std::string&
key)
const override;
54 purelist_isregular()
const override;
57 purelist_depth()
const override;
60 dimension_optiontype()
const override;
62 const std::pair<int64_t, int64_t>
63 minmax_depth()
const override;
65 const std::pair<bool, int64_t>
66 branch_depth()
const override;
69 numfields()
const override;
72 fieldindex(
const std::string& key)
const override;
75 key(int64_t fieldindex)
const override;
78 haskey(
const std::string& key)
const override;
80 const std::vector<std::string>
81 keys()
const override;
84 istuple()
const override;
88 bool check_identities,
89 bool check_parameters,
91 bool compatibility_check)
const override;
94 getitem_field(
const std::string& key)
const override;
97 getitem_fields(
const std::vector<std::string>& keys)
const override;
127 const std::string& cache_key,
170 classname()
const override;
173 setidentities()
override;
182 form(
bool materialize)
const override;
185 kernels()
const override;
188 caches(std::vector<ArrayCachePtr>& out)
const override;
191 tostring_part(
const std::string& indent,
192 const std::string& pre,
193 const std::string& post)
const override;
196 tojson_part(
ToJson& builder,
bool include_beginendlist)
const override;
203 nbytes_part(std::map<size_t, int64_t>& largest)
const override;
206 length()
const override;
209 shallow_copy()
const override;
212 deep_copy(
bool copyarrays,
214 bool copyidentities)
const override;
217 check_for_iteration()
const override;
220 getitem_nothing()
const override;
223 getitem_at(int64_t at)
const override;
226 getitem_at_nowrap(int64_t at)
const override;
229 getitem_range(int64_t start, int64_t stop)
const override;
232 getitem_range_nowrap(int64_t start, int64_t stop)
const override;
235 getitem_field(
const std::string&
key)
const override;
238 getitem_field(
const std::string& key,
239 const Slice& only_fields)
const override;
242 getitem_fields(
const std::vector<std::string>&
keys)
const override;
245 getitem_fields(
const std::vector<std::string>& keys,
246 const Slice& only_fields)
const override;
251 const Index64& advanced)
const override;
254 getitem_next_jagged(
const Index64& slicestarts,
257 const Slice& tail)
const override;
260 carry(
const Index64& carry,
bool allow_lazy)
const override;
263 purelist_depth()
const override;
265 const std::pair<int64_t, int64_t>
266 minmax_depth()
const override;
268 const std::pair<bool, int64_t>
269 branch_depth()
const override;
272 numfields()
const override;
275 fieldindex(
const std::string& key)
const override;
278 key(int64_t fieldindex)
const override;
281 haskey(
const std::string& key)
const override;
283 const std::vector<std::string>
284 keys()
const override;
287 istuple()
const override;
291 validityerror(
const std::string& path)
const override;
294 shallow_simplify()
const override;
297 num(int64_t axis, int64_t depth)
const override;
299 const std::pair<Index64, ContentPtr>
300 offsets_and_flattened(int64_t axis, int64_t depth)
const override;
303 mergeable(
const ContentPtr& other,
bool mergebool)
const override;
306 referentially_equal(
const ContentPtr& other)
const override;
312 asslice()
const override;
318 rpad(int64_t target, int64_t axis, int64_t depth)
const override;
321 rpad_and_clip(int64_t target,
323 int64_t depth)
const override;
326 reduce_next(
const Reducer& reducer,
333 bool keepdims)
const override;
336 sort_next(int64_t negaxis,
341 bool stable)
const override;
344 argsort_next(int64_t negaxis,
350 bool stable)
const override;
354 localindex(int64_t axis, int64_t depth)
const override;
362 int64_t depth)
const override;
365 getitem(
const Slice& where)
const override;
368 getitem_next(
const SliceAt& at,
370 const Index64& advanced)
const override;
375 const Index64& advanced)
const override;
380 const Index64& advanced)
const override;
385 const Index64& advanced)
const override;
390 const Index64& advanced)
const override;
395 const Index64& advanced)
const override;
398 getitem_next_jagged(
const Index64& slicestarts,
401 const Slice& tail)
const override;
404 getitem_next_jagged(
const Index64& slicestarts,
407 const Slice& tail)
const override;
410 getitem_next_jagged(
const Index64& slicestarts,
413 const Slice& tail)
const override;
419 numbers_to_type(
const std::string&
name)
const override;
423 is_unique()
const override;
431 is_subrange_equal(
const Index64& start,
const Index64& stop)
const override;
436 forward_parameters()
const;
446 set_cache_depths_from(
const FormPtr& form);
449 add_to_cache_depths(int64_t delta);
456 const std::string cache_key_;
462 std::vector<int64_t> cache_depths_;
467 #endif // AWKWARD_VIRTUALARRAY_H_ Represents an array that can be generated on demand.
Definition: VirtualArray.h:109
Represents a Python slice object (usual syntax: array[start:stop:step]).
Definition: Slice.h:93
#define LIBAWKWARD_EXPORT_SYMBOL
Definition: common.h:45
const std::string key(const RecordLookupPtr &recordlookup, int64_t fieldindex, int64_t numfields)
Returns the key associated with a field index, given a RecordLookup and a number of fields...
Abstract superclass of all array node types (flat hierarchy). Any Content can be nested within any ot...
Definition: Content.h:276
Definition: BitMaskedArray.h:15
A contiguous, one-dimensional array of integers used to represent data structures, rather than numerical data in the arrays themselves.
Definition: Index.h:16
std::string name(Mapping a, V value)
Definition: datetime_util.h:39
Represents a SliceArrayOf, SliceMissingOf, or SliceJaggedOf with missing values: None (no equivalent ...
Definition: Slice.h:431
Represents a single string in a slice tuple, indicating that a RecordArray should be replaced by one ...
Definition: Slice.h:340
Abstract class for all reducer algorithms.
Definition: Reducer.h:20
ERROR combinations(kernel::lib ptr_lib, T *toindex, int64_t n, bool replacement, int64_t singlelen)
const std::vector< std::string > keys(const RecordLookupPtr &recordlookup, int64_t numfields)
Returns a given RecordLookup as keys or generate anonymous ones form a number of fields.
std::shared_ptr< ArrayCache > ArrayCachePtr
Definition: Content.h:21
std::shared_ptr< std::string > FormKey
Definition: Content.h:19
ERROR unique(kernel::lib ptr_lib, T *toptr, int64_t length, int64_t *tolength)
Represents an array of integers in a slice (possibly converted from an array of booleans).
Definition: Slice.h:225
std::map< std::string, std::string > Parameters
Definition: util.h:165
ERROR copy_to(kernel::lib to_lib, kernel::lib from_lib, void *to_ptr, void *from_ptr, int64_t bytelength)
Internal Function an array buffer from library FROM to library TO, usually between main memory and a ...
std::shared_ptr< Form > FormPtr
Definition: Content.h:18
int64_t fieldindex(const RecordLookupPtr &recordlookup, const std::string &key, int64_t numfields)
Returns the field index associated with a key, given a RecordLookup and a number of fields...
Represents an array of nested lists, where the content may be SliceArrayOf, SliceMissingOf, or SliceJaggedOf (no equivalent in NumPy).
Definition: Slice.h:511
std::vector< std::shared_ptr< Content > > ContentPtrVec
Definition: Content.h:16
Mapping::value_type::value_type value(Mapping a, const std::string &name)
Definition: datetime_util.h:49
A sequence of SliceItem objects representing a tuple passed to Python's __getitem__.
Definition: Slice.h:585
bool haskey(const RecordLookupPtr &recordlookup, const std::string &key, int64_t numfields)
Returns true if a RecordLookup has a given key; false otherwise.
std::shared_ptr< Type > TypePtr
Definition: Content.h:23
std::shared_ptr< RecordLookup > RecordLookupPtr
Definition: util.h:130
Represents an integer in a tuple of slices passed to __getitem__ in Python.
Definition: Slice.h:58
std::map< std::string, std::string > TypeStrs
Definition: util.h:215
std::shared_ptr< ArrayGenerator > ArrayGeneratorPtr
Definition: ArrayGenerator.h:14
std::shared_ptr< Identities > IdentitiesPtr
Definition: Identities.h:16
std::shared_ptr< Content > ContentPtr
Definition: ArrayBuilder.h:16
std::shared_ptr< SliceItem > SliceItemPtr
Definition: Slice.h:15
lib
Definition: kernel-dispatch.h:20