MCPcopy Create free account
hub / github.com/apache/arrow / isOrdered

Function isOrdered

cpp/src/generated/Schema_generated.h:1983–1985  ·  view source on GitHub ↗

By default, dictionaries are not ordered, or the order does not have semantic meaning. In some statistical, applications, dictionary-encoding is used to represent ordered categorical data, and we provide a way to preserve that metadata here

Source from the content-addressed store, hash-verified

1981 /// is used to represent ordered categorical data, and we provide a way to
1982 /// preserve that metadata here
1983 bool isOrdered() const {
1984 return GetField<uint8_t>(VT_ISORDERED, 0) != 0;
1985 }
1986 org::apache::arrow::flatbuf::DictionaryKind dictionaryKind() const {
1987 return static_cast<org::apache::arrow::flatbuf::DictionaryKind>(GetField<int16_t>(VT_DICTIONARYKIND, 0));
1988 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected