Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
CatalogServiceTestCatalog.java
Go to the documentation of this file.
1
// Copyright 2014 Cloudera Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
package
com.cloudera.impala.testutil;
16
17
import
com.cloudera.impala.authorization.SentryConfig
;
18
import
com.cloudera.impala.catalog.AuthorizationPolicy
;
19
import
com.cloudera.impala.catalog.CatalogException
;
20
import
com.cloudera.impala.catalog.CatalogServiceCatalog
;
21
import
com.cloudera.impala.thrift.TUniqueId;
22
27
public
class
CatalogServiceTestCatalog
extends
CatalogServiceCatalog
{
28
29
public
CatalogServiceTestCatalog
(
boolean
loadInBackground,
int
numLoadingThreads,
30
SentryConfig
sentryConfig, TUniqueId catalogServiceId) {
31
super(loadInBackground, numLoadingThreads, sentryConfig, catalogServiceId);
32
}
33
34
public
static
CatalogServiceCatalog
create
() {
35
return
createWithAuth
(null);
36
}
37
42
public
static
CatalogServiceCatalog
createWithAuth
(
SentryConfig
config) {
43
CatalogServiceCatalog
cs =
44
new
CatalogServiceTestCatalog
(
false
, 16, config,
new
TUniqueId());
45
try
{
46
cs.reset();
47
}
catch
(
CatalogException
e) {
48
throw
new
IllegalStateException(e.getMessage(), e);
49
}
50
return
cs;
51
}
52
53
public
AuthorizationPolicy
getAuthPolicy
() {
return
authPolicy_
; }
54
}
com.cloudera.impala.catalog.CatalogServiceCatalog
Definition:
CatalogServiceCatalog.java:81
com.cloudera.impala.testutil.CatalogServiceTestCatalog.CatalogServiceTestCatalog
CatalogServiceTestCatalog(boolean loadInBackground, int numLoadingThreads, SentryConfig sentryConfig, TUniqueId catalogServiceId)
Definition:
CatalogServiceTestCatalog.java:29
com.cloudera.impala.catalog.AuthorizationPolicy
Definition:
AuthorizationPolicy.java:55
com.cloudera.impala.authorization.SentryConfig
Definition:
SentryConfig.java:28
com.cloudera.impala.testutil.CatalogServiceTestCatalog
Definition:
CatalogServiceTestCatalog.java:27
com.cloudera.impala.catalog.Catalog.authPolicy_
AuthorizationPolicy authPolicy_
Definition:
Catalog.java:67
com.cloudera.impala.catalog.CatalogException
Definition:
CatalogException.java:22
com.cloudera.impala.testutil.CatalogServiceTestCatalog.createWithAuth
static CatalogServiceCatalog createWithAuth(SentryConfig config)
Definition:
CatalogServiceTestCatalog.java:42
com.cloudera.impala.testutil.CatalogServiceTestCatalog.create
static CatalogServiceCatalog create()
Definition:
CatalogServiceTestCatalog.java:34
com.cloudera.impala.testutil.CatalogServiceTestCatalog.getAuthPolicy
AuthorizationPolicy getAuthPolicy()
Definition:
CatalogServiceTestCatalog.java:53
fe
src
test
java
com
cloudera
impala
testutil
CatalogServiceTestCatalog.java
Generated on Thu May 7 2015 16:10:39 for Impala by
1.8.6