Search in sources :

Example 1 with DatasetCollection

use of org.apache.hadoop.hive.ql.dataset.DatasetCollection in project hive by apache.

the class QTestUtil method initDataSetForTest.

private void initDataSetForTest(File file) {
    getCliDriver().processLine("set test.data.dir=" + testFiles + ";");
    DatasetParser parser = new DatasetParser();
    parser.parse(file);
    DatasetCollection datasets = parser.getDatasets();
    for (String table : datasets.getTables()) {
        initDataset(table);
    }
}
Also used : DatasetCollection(org.apache.hadoop.hive.ql.dataset.DatasetCollection) DatasetParser(org.apache.hadoop.hive.ql.dataset.DatasetParser)

Aggregations

DatasetCollection (org.apache.hadoop.hive.ql.dataset.DatasetCollection)1 DatasetParser (org.apache.hadoop.hive.ql.dataset.DatasetParser)1