diff --git a/main/src/com/google/refine/model/ColumnModel.java b/main/src/com/google/refine/model/ColumnModel.java index 1fa3069fb..d13b1a560 100644 --- a/main/src/com/google/refine/model/ColumnModel.java +++ b/main/src/com/google/refine/model/ColumnModel.java @@ -143,6 +143,12 @@ public class ColumnModel implements Jsonizable { return _nameToColumn.get(name); } + /** + * Return the index of the column with the given name. + * + * @param name column name to look up + * @return index of column with given name or -1 if not found. + */ synchronized public int getColumnIndexByName(String name) { for (int i = 0; i < _columnNames.size(); i++) { String s = _columnNames.get(i);