Package sql.schema.parser.SchemaParser

Examples of sql.schema.parser.SchemaParser.TableInfo


   * There is no raising exception if column does not exist it might be called
   * from contains(), so each caller has to be aware that this method might
   * return null
   */
  private ColumnInfo getColumnInfo(String tableSchemaName, String columnName) {
    final TableInfo table = getTableInfo(tableSchemaName);
    final ColumnInfo column = table.getColumnInfos().get(columnName);
    return column;
  }
View Full Code Here


    return (double) secondSize / firstSize;
  }

  // helper methods, interface to Parser classes
  private TableInfo getTableInfo(String tableSchemaName) {
    final TableInfo table = _schemaInfo.get(tableSchemaName);
    if (table == null)
      throw new RuntimeException("Table " + tableSchemaName + " does not exist in Schema \n "
          + _path + " !");
    return table;
  }
View Full Code Here

  /********
   * CARDINALITY METHODS ******
   */
  public long getTableSize(String tableSchemaName) {
    final TableInfo table = getTableInfo(tableSchemaName);
    final long tableSize = table.getTableSize();
    if (tableSize == SchemaParser.INVALID)
      throw new RuntimeException(
          "No information about size for table "
              + tableSchemaName
              + "\n Either add required information to schema "
View Full Code Here

TOP

Related Classes of sql.schema.parser.SchemaParser.TableInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.