OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HeavyDBUser.java
Go to the documentation of this file.
1 /*
2  * Copyright 2022 HEAVY.AI, 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 
17 package com.mapd.calcite.parser;
18 
20 
21 import java.util.List;
22 
23 public class HeavyDBUser {
24  private final String user;
25  private final String catalog;
26  private final int port;
27  private final String session;
28  private final List<Restriction> restrictions;
29 
30  public HeavyDBUser(String user,
31  String session,
32  String catalog,
33  int port,
34  List<Restriction> restrictions) {
35  this.user = user;
36  this.catalog = catalog;
37  this.port = port;
38  this.session = session;
39  this.restrictions = restrictions;
40  }
41 
42  public List<Restriction> getRestrictions() {
43  return restrictions;
44  }
45 
46  public String getDB() {
47  return catalog;
48  }
49 
50  public String getUser() {
51  return user;
52  }
53 
54  public int getPort() {
55  return port;
56  }
57 
58  public String getSession() {
59  return session;
60  }
61 }
HeavyDBUser(String user, String session, String catalog, int port, List< Restriction > restrictions)
final List< Restriction > restrictions
List< Restriction > getRestrictions()