Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::RulesParser Class Reference
Collaboration diagram for impala::RulesParser:

Public Member Functions

string Parse (const Document &rules_doc)
 

Private Member Functions

void ParseRules (const Value &rules)
 
void ParseRule (const Value &json_rule)
 
template<typename T >
bool ReadRuleProperty (const string &name, const Value &rule, T *value, bool required=true)
 
ostream & AddDocParseError ()
 
ostream & AddRuleParseError ()
 

Private Attributes

ostringstream error_message_
 
rapidjson::SizeType rule_idx_
 

Detailed Description

Definition at line 118 of file redactor.cc.

Member Function Documentation

ostream& impala::RulesParser::AddDocParseError ( )
inlineprivate

Definition at line 247 of file redactor.cc.

References error_message_.

Referenced by Parse(), and ParseRules().

ostream& impala::RulesParser::AddRuleParseError ( )
inlineprivate

Definition at line 253 of file redactor.cc.

References error_message_, and rule_idx_.

Referenced by ParseRule(), ParseRules(), and ReadRuleProperty().

string impala::RulesParser::Parse ( const Document &  rules_doc)
inline

Definition at line 122 of file redactor.cc.

References AddDocParseError(), error_message_, and ParseRules().

Referenced by impala::SetRedactionRulesFromFile().

void impala::RulesParser::ParseRule ( const Value &  json_rule)
inlineprivate
void impala::RulesParser::ParseRules ( const Value &  rules)
inlineprivate
template<typename T >
bool impala::RulesParser::ReadRuleProperty ( const string &  name,
const Value &  rule,
T *  value,
bool  required = true 
)
inlineprivate

Definition at line 217 of file redactor.cc.

References AddRuleParseError().

Referenced by ParseRule().

Member Data Documentation

ostringstream impala::RulesParser::error_message_
private

Definition at line 144 of file redactor.cc.

Referenced by AddDocParseError(), AddRuleParseError(), and Parse().

rapidjson::SizeType impala::RulesParser::rule_idx_
private

Definition at line 149 of file redactor.cc.

Referenced by AddRuleParseError(), and ParseRules().


The documentation for this class was generated from the following file: