Schema implements ProtoObject<SchemaProto>, Cloneable, GsonObject { public Column getColumn(int id) { return fields.get(id); } Schema();  Schema(SchemaProto proto);  Schema(Schema schema);  Schema(Column [] columns);  Schema(Iterable<Column> columns); void setQualifier(String qualifier); int size(); Column getColumn(int id); Column getColumn(Column column); int getIndex(Column column); Column getColumn(String name); int getColumnId(String name); int getColumnIdByName(String colName); List<Column> getRootColumns(); List<Column> getAllColumns(); boolean contains(String name); boolean contains(Column column); boolean containsByQualifiedName(String qualifiedName); boolean containsByName(String colName); boolean containsAll(Collection<Column> columns); synchronized Schema addColumn(String name, TypeDesc typeDesc); synchronized Schema addColumn(String name, Type type); synchronized Schema addColumn(String name, Type type, int length); synchronized Schema addColumn(String name, DataType dataType); synchronized void addColumn(Column column); synchronized void addColumns(Schema schema); @Override int hashCode(); @Override boolean equals(Object o); @Override Object clone(); @Override SchemaProto getProto(); String toString(); @Override String toJson(); Column [] toArray();  }
@Test public final void testGetColumnString() { assertEquals(col1, schema.getColumn("name")); assertEquals(col2, schema.getColumn("age")); assertEquals(col3, schema.getColumn("addr")); }