Class ColumnModel

java.lang.Object
com.google.refine.model.ColumnModel

public class ColumnModel extends Object
  • Field Details

  • Constructor Details

    • ColumnModel

      public ColumnModel()
  • Method Details

    • setMaxCellIndex

      public void setMaxCellIndex(int maxCellIndex)
    • getMaxCellIndex

      public int getMaxCellIndex()
    • allocateNewCellIndex

      public int allocateNewCellIndex()
      Returns:
      the next available cell index
    • setKeyColumnIndex

      public void setKeyColumnIndex(int keyColumnIndex)
    • getKeyColumnIndex

      public int getKeyColumnIndex()
    • addColumnGroup

      public void addColumnGroup(int startColumnIndex, int span, int keyColumnIndex)
    • update

      public void update()
    • addColumn

      public void addColumn(int index, Column column, boolean avoidNameCollision) throws ModelException
      Throws:
      ModelException
    • getUnduplicatedColumnName

      public String getUnduplicatedColumnName(String baseName)
    • getColumnByName

      public Column getColumnByName(String name)
    • getColumnIndexByName

      public int getColumnIndexByName(String name)
      Return the index of the column with the given name.
      Parameters:
      name - column name to look up
      Returns:
      index of column with given name or -1 if not found.
    • getColumnByCellIndex

      public Column getColumnByCellIndex(int cellIndex)
    • getColumnNames

      public List<String> getColumnNames()
    • getJsonKeyCellIndex

      public Integer getJsonKeyCellIndex()
    • getKeyColumnName

      public String getKeyColumnName()
    • save

      public void save(Writer writer, Properties options) throws IOException
      Throws:
      IOException
    • load

      public void load(LineNumberReader reader) throws IOException
      Throws:
      IOException
    • internalInitialize

      protected void internalInitialize()
    • generateMaps

      protected void generateMaps()
    • clearPrecomputes

      public void clearPrecomputes()
      Clear cached value computations for all columns