Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
ShowDataSrcsStmt.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.analysis;
16
17
import
com.cloudera.impala.common.AnalysisException
;
18
import
com.cloudera.impala.thrift.TShowDataSrcsParams;
19
28
public
class
ShowDataSrcsStmt
extends
StatementBase
{
29
// Pattern to match tables against. | denotes choice, * matches all strings
30
private
final
String
pattern_
;
31
36
public
ShowDataSrcsStmt
() {
37
this
(null);
38
}
39
44
public
ShowDataSrcsStmt
(String pattern) {
45
this.pattern_ = pattern;
46
}
47
48
public
String
getPattern
() {
return
pattern_
; }
49
50
@Override
51
public
String
toSql
() {
52
if
(
pattern_
== null) {
53
return
"SHOW DATA SOURCES"
;
54
}
else
{
55
return
"SHOW DATA SOURCES LIKE '"
+
pattern_
+
"'"
;
56
}
57
}
58
59
@Override
60
public
void
analyze
(
Analyzer
analyzer)
throws
AnalysisException
{
61
// Nothing to do here
62
}
63
64
public
TShowDataSrcsParams
toThrift
() {
65
TShowDataSrcsParams params =
new
TShowDataSrcsParams();
66
params.setShow_pattern(
getPattern
());
67
return
params;
68
}
69
}
com.cloudera.impala.analysis.ShowDataSrcsStmt.pattern_
final String pattern_
Definition:
ShowDataSrcsStmt.java:30
com.cloudera.impala.analysis.ShowDataSrcsStmt
Definition:
ShowDataSrcsStmt.java:28
com.cloudera.impala.analysis.ShowDataSrcsStmt.ShowDataSrcsStmt
ShowDataSrcsStmt()
Definition:
ShowDataSrcsStmt.java:36
com.cloudera.impala.analysis.ShowDataSrcsStmt.getPattern
String getPattern()
Definition:
ShowDataSrcsStmt.java:48
com.cloudera.impala.common.AnalysisException
Definition:
AnalysisException.java:21
com.cloudera.impala.analysis.StatementBase
Definition:
StatementBase.java:22
com.cloudera.impala.analysis.ShowDataSrcsStmt.ShowDataSrcsStmt
ShowDataSrcsStmt(String pattern)
Definition:
ShowDataSrcsStmt.java:44
com.cloudera.impala.analysis.Analyzer
Definition:
Analyzer.java:105
com.cloudera.impala.analysis.ShowDataSrcsStmt.analyze
void analyze(Analyzer analyzer)
Definition:
ShowDataSrcsStmt.java:60
com.cloudera.impala.analysis.ShowDataSrcsStmt.toSql
String toSql()
Definition:
ShowDataSrcsStmt.java:51
com.cloudera.impala.analysis.ShowDataSrcsStmt.toThrift
TShowDataSrcsParams toThrift()
Definition:
ShowDataSrcsStmt.java:64
fe
src
main
java
com
cloudera
impala
analysis
ShowDataSrcsStmt.java
Generated on Thu May 7 2015 16:10:38 for Impala by
1.8.6