Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
redactor.cc File Reference
#include "redactor.h"
#include <cerrno>
#include <cstring>
#include <ostream>
#include <sstream>
#include <sys/stat.h>
#include <vector>
#include <gutil/strings/substitute.h>
#include <rapidjson/document.h>
#include <rapidjson/filestream.h>
#include <rapidjson/rapidjson.h>
#include <rapidjson/reader.h>
#include <re2/re2.h>
#include <re2/stringpiece.h>
#include "common/logging.h"
Include dependency graph for redactor.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  impala::Rule
 
class  impala::RulesParser
 

Namespaces

 impala
 This file contains type definitions that are used throughout the code base.
 

Macros

#define EXTRACT_VALUE(json_type, cpp_type)
 

Typedefs

typedef re2::RE2 impala::Regex
 
typedef vector< Rule > impala::Rules
 

Functions

string impala::NameOfTypeOfJsonValue (const Value &value)
 
string impala::SetRedactionRulesFromFile (const string &rules_file_path)
 
void impala::Redact (string *value, bool *changed)
 

Variables

static Rules * impala::g_rules
 

Macro Definition Documentation

#define EXTRACT_VALUE (   json_type,
  cpp_type 
)
Value:
bool ValidateTypeAndExtractValue(const string& name, const Value& json_value, \
cpp_type* value) { \
if (!json_value.Is ## json_type()) { \
AddRuleParseError() << name << " property must be of type " #json_type \
<< " but is a " << NameOfTypeOfJsonValue(json_value); \
return false; \
} \
*value = json_value.Get ## json_type(); \
return true; \
}
string NameOfTypeOfJsonValue(const Value &value)
Definition: redactor.cc:95
string name
Definition: cpu-info.cc:50

Definition at line 233 of file redactor.cc.