Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
LikePredicateState () | |
void | SetSearchString (const std::string &search_string) |
Public Attributes | |
char | escape_char_ |
LikePredicateFunction | function_ |
std::string | search_string_ |
Holds the string the StringValue points to and is set any time StringValue is used. More... | |
StringValue | search_string_sv_ |
StringSearch | substring_pattern_ |
boost::scoped_ptr< re2::RE2 > | regex_ |
Used for RLIKE and REGEXP predicates if the pattern is a constant aruement. More... | |
Definition at line 47 of file like-predicate.h.
|
inline |
Definition at line 76 of file like-predicate.h.
|
inline |
Definition at line 79 of file like-predicate.h.
References search_string_, search_string_sv_, and substring_pattern_.
Referenced by impala::LikePredicate::LikePrepare(), and impala::LikePredicate::RegexPrepare().
char impala::LikePredicate::LikePredicateState::escape_char_ |
Definition at line 48 of file like-predicate.h.
Referenced by impala::LikePredicate::ConvertLikePattern().
LikePredicateFunction impala::LikePredicate::LikePredicateState::function_ |
This is the function, set in the prepare function, that will be used to determine the value of the predicate. It will be set depending on whether the expression is a LIKE, RLIKE or REGEXP predicate, whether the pattern is a constant arguement and whether the pattern has any constant substrings. If the pattern is not a constant arguement, none of the following fields can be set because we cannot know the format of the pattern in the prepare function and must deal with each pattern seperately.
Definition at line 57 of file like-predicate.h.
Referenced by impala::LikePredicate::Like(), impala::LikePredicate::LikePrepare(), impala::LikePredicate::Regex(), and impala::LikePredicate::RegexPrepare().
boost::scoped_ptr<re2::RE2> impala::LikePredicate::LikePredicateState::regex_ |
Used for RLIKE and REGEXP predicates if the pattern is a constant aruement.
Definition at line 74 of file like-predicate.h.
Referenced by impala::LikePredicate::ConstantRegexFn(), impala::LikePredicate::ConstantRegexFnPartial(), impala::LikePredicate::LikePrepare(), impala::LikePredicate::RegexMatch(), and impala::LikePredicate::RegexPrepare().
std::string impala::LikePredicate::LikePredicateState::search_string_ |
Holds the string the StringValue points to and is set any time StringValue is used.
Definition at line 60 of file like-predicate.h.
Referenced by SetSearchString().
StringValue impala::LikePredicate::LikePredicateState::search_string_sv_ |
Used for LIKE predicates if the pattern is a constant arguement, and is either a constant string or has a constant string at the beginning or end of the pattern. This will be set in order to check for that pattern in the corresponding part of the string.
Definition at line 66 of file like-predicate.h.
Referenced by impala::LikePredicate::ConstantEndsWithFn(), impala::LikePredicate::ConstantEqualsFn(), impala::LikePredicate::ConstantStartsWithFn(), impala::LikePredicate::ConstantSubstringFn(), and SetSearchString().
StringSearch impala::LikePredicate::LikePredicateState::substring_pattern_ |
Used for LIKE predicates if the pattern is a constant arguement and has a constant string in the middle of it. This will be use in order to check for the substring in the value.
Definition at line 71 of file like-predicate.h.
Referenced by impala::LikePredicate::ConstantSubstringFn(), and SetSearchString().