OmniSciDB  c07336695a
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, ExtensionFunctionextSigs
 
final int mapdPort
 
final SockTransportProperties socket_transport_properties
 

Detailed Description

Author
michael

Definition at line 31 of file CalciteParserFactory.java.

Constructor & Destructor Documentation

◆ CalciteParserFactory()

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

Member Function Documentation

◆ activateObject()

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  }

◆ destroyObject()

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  }

◆ makeObject()

Object com.mapd.parser.server.CalciteParserFactory.makeObject ( ) throws Exception
inline

Definition at line 50 of file CalciteParserFactory.java.

50  {
51  MapDParser obj =
53  return obj;
54  }
final Map< String, ExtensionFunction > extSigs
final SockTransportProperties socket_transport_properties

◆ passivateObject()

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  }

◆ validateObject()

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

◆ dataDir

final String com.mapd.parser.server.CalciteParserFactory.dataDir
private

◆ extSigs

final Map<String, ExtensionFunction> com.mapd.parser.server.CalciteParserFactory.extSigs
private

◆ MAPDLOGGER

final Logger com.mapd.parser.server.CalciteParserFactory.MAPDLOGGER = LoggerFactory.getLogger(CalciteParserFactory.class)
staticpackage

Definition at line 32 of file CalciteParserFactory.java.

◆ mapdPort

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

◆ socket_transport_properties

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

Definition at line 37 of file CalciteParserFactory.java.


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