OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MapDUser.java
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.mapd.calcite.parser;
17 
19 
24 public class MapDUser {
25  private final String user;
26  private final String catalog;
27  private final int mapDPort;
28  private final String session;
29  private final Restriction restriction;
30 
31  public MapDUser(String user,
32  String session,
33  String catalog,
34  int mapDPort,
36  this.user = user;
37  this.catalog = catalog;
38  this.mapDPort = mapDPort;
39  this.session = session;
40  this.restriction = restriction;
41  }
42 
44  return restriction;
45  }
46 
47  public String getDB() {
48  return catalog;
49  }
50 
51  public String getUser() {
52  return user;
53  }
54 
55  public int getMapDPort() {
56  return mapDPort;
57  }
58 
59  public String getSession() {
60  return session;
61  }
62 }
MapDUser(String user, String session, String catalog, int mapDPort, Restriction restriction)
Definition: MapDUser.java:31
final Restriction restriction
Definition: MapDUser.java:29