Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
TestCase (int lineNum) | |
int | getStartingLineNum () |
ArrayList< String > | getSectionContents (Section section) |
ArrayList< String > | getSectionContents (Section section, boolean withComments) |
ArrayList< String > | getSectionContents (Section section, boolean withComments, String dbSuffix) |
String | getSectionAsString (Section section, boolean withComments, String delimiter) |
String | getSectionAsString (Section section, boolean withComments, String delimiter, String dbSuffix) |
String | getQuery () |
boolean | isValid () |
Protected Member Functions | |
void | addSection (Section section, ArrayList< String > contents) |
Private Attributes | |
final EnumMap< Section, ArrayList< String > > | expectedResultSections |
final int | startLineNum |
A container class for a single test case's sections. A section is a list of strings.
Definition at line 81 of file TestFileParser.java.
|
inline |
Definition at line 89 of file TestFileParser.java.
References com.cloudera.impala.testutil.TestFileParser.lineNum, and com.cloudera.impala.testutil.TestFileParser.TestCase.startLineNum.
|
inlineprotected |
Definition at line 97 of file TestFileParser.java.
|
inline |
Returns the QUERY section as a string, with each line separated by a " ".
Definition at line 172 of file TestFileParser.java.
References com.cloudera.impala.testutil.TestFileParser.TestCase.getSectionAsString(), and com.cloudera.impala.testutil.TestFileParser.Section.QUERY.
Referenced by com.cloudera.impala.testutil.TestFileParser.TestCase.isValid().
|
inline |
Definition at line 150 of file TestFileParser.java.
Referenced by com.cloudera.impala.testutil.TestFileParser.TestCase.getQuery().
|
inline |
Returns a section concatenated into a single string, with the supplied delimiter used to separate each line.
Definition at line 159 of file TestFileParser.java.
References com.cloudera.impala.testutil.TestFileParser.TestCase.getSectionContents().
|
inline |
Returns a section corresponding to the given key, or an empty list if one does not exist. Comments are not included.
Definition at line 105 of file TestFileParser.java.
Referenced by com.cloudera.impala.testutil.TestFileParser.TestCase.getSectionAsString(), com.cloudera.impala.testutil.TestFileParser.TestCase.getSectionContents(), and com.cloudera.impala.testutil.TestFileParser.TestCase.isValid().
|
inline |
Definition at line 109 of file TestFileParser.java.
References com.cloudera.impala.testutil.TestFileParser.TestCase.getSectionContents().
|
inline |
Returns a section corresponding to the given key, or an empty list if one does not exist.
section | The Section to get |
withComments | If set, all comment lines are included. |
dbSuffix | If set, table names that contain the string $DATABASE will be replaced with the specified table suffix |
Definition at line 125 of file TestFileParser.java.
|
inline |
Definition at line 93 of file TestFileParser.java.
References com.cloudera.impala.testutil.TestFileParser.TestCase.startLineNum.
|
inline |
Returns false if the current test case is invalid due to missing sections or query
Definition at line 179 of file TestFileParser.java.
References com.cloudera.impala.testutil.TestFileParser.Section.DISTRIBUTEDPLAN, com.cloudera.impala.testutil.TestFileParser.TestCase.getQuery(), com.cloudera.impala.testutil.TestFileParser.TestCase.getSectionContents(), com.cloudera.impala.testutil.TestFileParser.Section.LINEAGE, and com.cloudera.impala.testutil.TestFileParser.Section.PLAN.
|
private |
Definition at line 83 of file TestFileParser.java.
|
private |
Definition at line 87 of file TestFileParser.java.
Referenced by com.cloudera.impala.testutil.TestFileParser.TestCase.getStartingLineNum(), and com.cloudera.impala.testutil.TestFileParser.TestCase.TestCase().