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

Method CharFilter

cpp/src/arrow/csv/lexing_internal.h:107–109  ·  view source on GitHub ↗

A given character value will set/test one bit in the 64-bit filter, whose bit number is taken from low bits of the character value. For example 'b' (ASCII value 98) will set/test bit #34 in the filter. If the bit is set in the filter, the given character *may* be part of the matched characters. If the bit is unset in the filter, the given character *cannot* be part of the matched characters.

Source from the content-addressed store, hash-verified

105 // of the matched characters. If the bit is unset in the filter,
106 // the given character *cannot* be part of the matched characters.
107 FilterType CharFilter(uint8_t c) const {
108 return static_cast<FilterType>(1) << (c & kCharMask);
109 }
110
111 FilterType MatchChar(uint8_t c) const { return CharFilter(c) & filter_; }
112

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected