use of org.apache.flink.table.client.gateway.ResultDescriptor in project flink by apache.
the class CliClient method callSelect.
private void callSelect(QueryOperation operation) {
final ResultDescriptor resultDesc = executor.executeQuery(sessionId, operation);
if (resultDesc.isTableauMode()) {
try (CliTableauResultView tableauResultView = new CliTableauResultView(terminal, executor, sessionId, resultDesc)) {
tableauResultView.displayResults();
}
} else {
final CliResultView<?> view;
if (resultDesc.isMaterialized()) {
view = new CliTableResultView(this, resultDesc);
} else {
view = new CliChangelogResultView(this, resultDesc);
}
// enter view
view.open();
// view left
printInfo(CliStrings.MESSAGE_RESULT_QUIT);
}
}
Aggregations