Refine search
public T addCol(String name, String type, String comment) { if (cols == null) cols = new ArrayList<>(); cols.add(new FieldSchema(name, type, comment)); return child; }
@Override public void apply(List<FieldSchema> t, Object[] fields) { t.add(new FieldSchema((String)fields[2], extractSqlClob(fields[3]), (String)fields[1])); }}); }
public ClientInfoPropertiesResultSet() throws SQLException { super(Arrays.asList(COLUMNS), Arrays.asList(COLUMN_TYPES), null); List<FieldSchema> fieldSchemas = new ArrayList<>(COLUMNS.length); for (int i = 0; i < COLUMNS.length; ++i) { fieldSchemas.add(new FieldSchema(COLUMNS[i], COLUMN_TYPES[i], null)); } setSchema(new TableSchema(fieldSchemas)); }
public List<FieldSchema> getResultSchema() { FieldSchema tmpFieldSchema = new FieldSchema(); List<FieldSchema> colList = new ArrayList<FieldSchema>(); tmpFieldSchema.setName(ExplainTask.EXPL_COLUMN_NAME); tmpFieldSchema.setType(STRING_TYPE_NAME); colList.add(tmpFieldSchema); return colList; }
public static List<FieldSchema> getResultSchema() { FieldSchema tmpFieldSchema = new FieldSchema(); List<FieldSchema> colList = new ArrayList<FieldSchema>(); tmpFieldSchema.setName(EXPL_COLUMN_NAME); tmpFieldSchema.setType(STRING_TYPE_NAME); colList.add(tmpFieldSchema); return colList; }
private static List<FieldSchema> getTableColumns(String[] colNames, String[] colTypes) { List<FieldSchema> fields = new ArrayList<FieldSchema>(); for (int i = 0; i < colNames.length; ++i) { fields.add(new FieldSchema(colNames[i], colTypes[i], "")); } return fields; }
private static List<FieldSchema> getPartitionKeys(String[] partNames) { List<FieldSchema> fields = new ArrayList<FieldSchema>(); for (int i = 0; i < partNames.length; ++i) { fields.add(new FieldSchema(partNames[i], serdeConstants.STRING_TYPE_NAME, "")); } return fields; }
private static List<FieldSchema> getYearMonthAndDayPartCols() { List<FieldSchema> cols = new ArrayList<>(); cols.add(new FieldSchema(YEAR_COL_NAME, STRING_COL_TYPE, "year part col")); cols.add(new FieldSchema(MONTH_COL_NAME, STRING_COL_TYPE, "month part col")); cols.add(new FieldSchema(DAY_COL_NAME, STRING_COL_TYPE, "day part col")); return cols; } }
private List<FieldSchema> convertToFieldSchemas(List<MFieldSchema> mkeys) { List<FieldSchema> keys = null; if (mkeys != null) { keys = new ArrayList<>(mkeys.size()); for (MFieldSchema part : mkeys) { keys.add(new FieldSchema(part.getName(), part.getType(), part .getComment())); } } return keys; }
@Override protected List<FieldSchema> getTableColumns() { List<FieldSchema> fields = new ArrayList<FieldSchema>(); fields.add(new FieldSchema("c1", serdeConstants.INT_TYPE_NAME, "")); fields.add(new FieldSchema("c2", serdeConstants.STRING_TYPE_NAME, "")); return fields; }
private static List<FieldSchema> getYearAndMonthPartCols() { List<FieldSchema> cols = new ArrayList<>(); cols.add(new FieldSchema("year", "string", "year part col")); cols.add(new FieldSchema("month", "string", "month part col")); return cols; }
@Override protected List<FieldSchema> getTableColumns() { List<FieldSchema> fields = new ArrayList<FieldSchema>(); fields.add(new FieldSchema("c1", serdeConstants.INT_TYPE_NAME, "")); fields.add(new FieldSchema("c2", serdeConstants.STRING_TYPE_NAME, "")); return fields; }
private static List<FieldSchema> getPartitionKeys() { List<FieldSchema> fields = new ArrayList<FieldSchema>(); // Defining partition names in unsorted order fields.add(new FieldSchema("continent", serdeConstants.STRING_TYPE_NAME, "")); fields.add(new FieldSchema("country", serdeConstants.STRING_TYPE_NAME, "")); return fields; }
private static List<FieldSchema> getYearAndMonthPartCols() { List<FieldSchema> cols = new ArrayList<>(); cols.add(new FieldSchema(YEAR_COL_NAME, DEFAULT_COL_TYPE, "year part col")); cols.add(new FieldSchema(MONTH_COL_NAME, DEFAULT_COL_TYPE, "month part col")); return cols; }
protected List<FieldSchema> getTableColumns() { List<FieldSchema> fields = new ArrayList<FieldSchema>(); fields.add(new FieldSchema("c1", serdeConstants.INT_TYPE_NAME, "")); fields.add(new FieldSchema("c2", serdeConstants.STRING_TYPE_NAME, "")); return fields; }
private static List<FieldSchema> getYearAndMonthPartCols() { List<FieldSchema> cols = new ArrayList<>(); cols.add(new FieldSchema(YEAR_COL_NAME, DEFAULT_COL_TYPE, "year part col")); cols.add(new FieldSchema(MONTH_COL_NAME, DEFAULT_COL_TYPE, "month part col")); return cols; }
private static List<FieldSchema> getYearAndMonthPartCols() { List<FieldSchema> cols = new ArrayList<>(); cols.add(new FieldSchema(YEAR_COL_NAME, DEFAULT_COL_TYPE, "year part col")); cols.add(new FieldSchema(MONTH_COL_NAME, DEFAULT_COL_TYPE, "month part col")); return cols; }
protected List<FieldSchema> getPartitionKeys() { List<FieldSchema> fields = new ArrayList<FieldSchema>(); // Defining partition names in unsorted order fields.add(new FieldSchema("PaRT1", serdeConstants.STRING_TYPE_NAME, "")); fields.add(new FieldSchema("part0", serdeConstants.STRING_TYPE_NAME, "")); return fields; }
private static List<FieldSchema> getYearPartCol() { List<FieldSchema> cols = new ArrayList<>(); cols.add(new FieldSchema(YEAR_COL_NAME, DEFAULT_COL_TYPE, "year part col")); return cols; }
@Override protected List<FieldSchema> getPartitionKeys() { List<FieldSchema> fields = new ArrayList<FieldSchema>(); fields.add(new FieldSchema("p1", serdeConstants.STRING_TYPE_NAME, "")); return fields; }