Definition at line 56 of file Locator.h. References Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetString(), mDataSet, mHost, and mProtocol. 00057 { 00058 mDataSet = dataSet; 00059 00060 String dataServer = options.GetString("dataServer"); 00061 String dataServer2 = options.GetString("dataServer::"+mDataSet, ""); 00062 if (!dataServer2.empty()) 00063 dataServer = dataServer2; 00064 if (!dataServer.empty()) 00065 { 00066 mProtocol = "dataServer"; 00067 mHost = dataServer; 00068 return; 00069 } 00070 00071 String mapi = options.GetString("mapi"); 00072 String mapi2 = options.GetString("mapi::"+mDataSet, ""); 00073 if (!mapi2.empty()) 00074 mapi = mapi2; 00075 if (!mapi.empty()) 00076 { 00077 mProtocol = "mapi"; 00078 mHost = mapi; 00079 return; 00080 } 00081 00082 bool inMem = options.GetBool("inMem", false); 00083 bool inMem2 = options.GetBool("inMem::"+mDataSet, false); 00084 if (inMem2) 00085 inMem = inMem2; 00086 if (inMem) 00087 { 00088 mProtocol = "inMem"; 00089 mHost = ""; 00090 return; 00091 } 00092 00093 mProtocol = "file"; 00094 }
Here is the call graph for this function: ![]()
|