@Test public void testParseSchema() throws DDFException { String columns = "row Int, \n\tprice double, \n\t lotsize int, \n\t bedrooms int,\n\tbathrms int"; Schema schema = new Schema(null, columns); for(Schema.Column column: schema.getColumns()) { assert(column.getName() != null); assert(column.getType().toString() != null); } }
public List<Column> getColumns() { List<Column> columns = new ArrayList<Column>(); for (Column column : mColumns) { columns.add(column.clone()); } return columns; }
Schema implements Serializable { public List<Column> getColumns() { List<Column> columns = new ArrayList<Column>(); for (Column column : mColumns) { columns.add(column.clone()); } return columns; } }
Schema implements Serializable { public List<Column> getColumns() { List<Column> columns = new ArrayList<Column>(); for (Column column : mColumns) { columns.add(column.clone()); } return columns; } @Deprecated // Require tableName at all times, even null  Schema(String columns);  Schema(String tableName, String columns); @Deprecated // Require tableName at all times, even null  Schema(List<Column> columns);  Schema(String tableName, List<Column> columns); @SuppressWarnings("unchecked")  Schema(String tableName, Column[] columns); }
Schema implements Serializable { public List<Column> getColumns() { List<Column> columns = new ArrayList<Column>(); for (Column column : mColumns) { columns.add(column.clone()); } return columns; } @Deprecated // Require tableName at all times, even null  Schema(String columns);  Schema(String tableName, String columns); @Deprecated // Require tableName at all times, even null  Schema(List<Column> columns);  Schema(String tableName, List<Column> columns); @SuppressWarnings("unchecked")  Schema(String tableName, Column[] columns); String getTableName(); void setTableName(String mTableName); List<Column> getColumns(); void setColumns(List<Column> columns); List<String> getColumnNames(); void setColumnNames(List<String> names); Column getColumn(int i); String getColumnName(int i); Column getColumn(String name); int getColumnIndex(String name); void generateDummyCoding(); DummyCoding getDummyCoding(); void setDummyCoding(DummyCoding dummyCoding); int getNumColumns(); void addColumn(Column col); boolean removeColumn(String name); boolean removeColumn(int i); }
Schema implements Serializable { public List<Column> getColumns() { List<Column> columns = new ArrayList<Column>(); for (Column column : mColumns) { columns.add(column.clone()); } return columns; } @Deprecated // Require tableName at all times, even null  Schema(String columns);  Schema(String tableName, String columns); @Deprecated // Require tableName at all times, even null  Schema(List<Column> columns);  Schema(String tableName, List<Column> columns); @SuppressWarnings("unchecked")  Schema(String tableName, Column[] columns); String getTableName(); void setTableName(String mTableName); List<Column> getColumns(); void setColumns(List<Column> columns); List<String> getColumnNames(); void setColumnNames(List<String> names); Column getColumn(int i); String getColumnName(int i); Column getColumn(String name); int getColumnIndex(String name); void generateDummyCoding(); DummyCoding getDummyCoding(); void setDummyCoding(DummyCoding dummyCoding); int getNumColumns(); void addColumn(Column col); boolean removeColumn(String name); boolean removeColumn(int i);  }