public static String getIndexColumnsHeader() { StringBuilder indexCols = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); formatOutput(ShowIndexesDesc.getSchema().split("#")[0].split(","), indexCols); return indexCols.toString(); }
private void analyzeShowIndexes(ASTNode ast) throws SemanticException { ShowIndexesDesc showIndexesDesc; String tableName = getUnescapedName((ASTNode) ast.getChild(0)); showIndexesDesc = new ShowIndexesDesc(tableName, ctx.getResFile()); if (ast.getChildCount() == 2) { int descOptions = ast.getChild(1).getType(); showIndexesDesc.setFormatted(descOptions == HiveParser.KW_FORMATTED); } rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), showIndexesDesc), conf)); setFetchTask(createFetchTask(showIndexesDesc.getSchema())); }
public static String getIndexColumnsHeader() { StringBuilder indexCols = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); formatOutput(ShowIndexesDesc.getSchema().split("#")[0].split(","), indexCols); return indexCols.toString(); } public static MetaDataFormatter getFormatter(HiveConf conf) {
public static String getIndexColumnsHeader() { StringBuilder indexCols = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); formatOutput(ShowIndexesDesc.getSchema().split("#")[0].split(","), indexCols); return indexCols.toString(); } }
private void analyzeShowIndexes(ASTNode ast) throws SemanticException { ShowIndexesDesc showIndexesDesc; String tableName = getUnescapedName((ASTNode)ast.getChild(0)); showIndexesDesc = new ShowIndexesDesc(tableName, ctx.getResFile()); if (ast.getChildCount() == 2) { int descOptions = ast.getChild(1).getType(); showIndexesDesc.setFormatted(descOptions == HiveParser.KW_FORMATTED); } rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), showIndexesDesc), conf)); setFetchTask(createFetchTask(showIndexesDesc.getSchema())); }
private void analyzeShowIndexes(ASTNode ast) throws SemanticException { ShowIndexesDesc showIndexesDesc; String tableName = getUnescapedName((ASTNode) ast.getChild(0)); showIndexesDesc = new ShowIndexesDesc(tableName, ctx.getResFile()); if (ast.getChildCount() == 2) { int descOptions = ast.getChild(1).getType(); showIndexesDesc.setFormatted(descOptions == HiveParser.KW_FORMATTED); } rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), showIndexesDesc), conf)); setFetchTask(createFetchTask(showIndexesDesc.getSchema())); }