OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.parser.server.CalciteParserFactory Class Reference
+ Inheritance diagram for com.mapd.parser.server.CalciteParserFactory:
+ Collaboration diagram for com.mapd.parser.server.CalciteParserFactory:

Public Member Functions

 CalciteParserFactory (String dataDir, final Map< String, ExtensionFunction > extSigs, int mapdPort, SockTransportProperties skT)
 
Object makeObject () throws Exception
 
void destroyObject (Object obj) throws Exception
 
boolean validateObject (Object obj)
 
void activateObject (Object obj) throws Exception
 
void passivateObject (Object obj) throws Exception
 

Static Package Attributes

static final Logger MAPDLOGGER = LoggerFactory.getLogger(CalciteParserFactory.class)
 

Private Attributes

final String dataDir
 
final Map< String,
ExtensionFunction
extSigs
 
final int mapdPort
 
final SockTransportProperties socket_transport_properties
 

Detailed Description

Author
michael

Definition at line 31 of file CalciteParserFactory.java.

Constructor & Destructor Documentation

com.mapd.parser.server.CalciteParserFactory.CalciteParserFactory ( String  dataDir,
final Map< String, ExtensionFunction extSigs,
int  mapdPort,
SockTransportProperties  skT 
)
inline

Definition at line 39 of file CalciteParserFactory.java.

References com.mapd.parser.server.CalciteParserFactory.dataDir, com.mapd.parser.server.CalciteParserFactory.extSigs, and com.mapd.parser.server.CalciteParserFactory.mapdPort.

42  {
43  this.dataDir = dataDir;
44  this.extSigs = extSigs;
45  this.mapdPort = mapdPort;
46  this.socket_transport_properties = skT;
47  }
final Map< String, ExtensionFunction > extSigs

Member Function Documentation

void com.mapd.parser.server.CalciteParserFactory.activateObject ( Object  obj) throws Exception
inline

Definition at line 73 of file CalciteParserFactory.java.

73  {
74  // don't need to do anything
75  }
void com.mapd.parser.server.CalciteParserFactory.destroyObject ( Object  obj) throws Exception
inline

Definition at line 57 of file CalciteParserFactory.java.

57  {
58  // no need to do anything
59  }
void com.mapd.parser.server.CalciteParserFactory.passivateObject ( Object  obj) throws Exception
inline

Definition at line 78 of file CalciteParserFactory.java.

78  {
79  // nothing to currently do here
80  }
boolean com.mapd.parser.server.CalciteParserFactory.validateObject ( Object  obj)
inline

Definition at line 62 of file CalciteParserFactory.java.

References com.mapd.calcite.parser.MapDParser.getCallCount().

62  {
63  MapDParser mdp = (MapDParser) obj;
64  if (mdp.getCallCount() < 1000) {
65  return true;
66  } else {
67  MAPDLOGGER.debug(" invalidating object due to max use count");
68  return false;
69  }
70  }

+ Here is the call graph for this function:

Member Data Documentation

final String com.mapd.parser.server.CalciteParserFactory.dataDir
private
final Map<String, ExtensionFunction> com.mapd.parser.server.CalciteParserFactory.extSigs
private
final Logger com.mapd.parser.server.CalciteParserFactory.MAPDLOGGER = LoggerFactory.getLogger(CalciteParserFactory.class)
staticpackage

Definition at line 32 of file CalciteParserFactory.java.

final int com.mapd.parser.server.CalciteParserFactory.mapdPort
private
final SockTransportProperties com.mapd.parser.server.CalciteParserFactory.socket_transport_properties
private

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