Examples of HiveTableName


Examples of com.facebook.giraph.hive.common.HiveTableName

    hapi.setMyProfileId(DEFAULT_PROFILE_ID);

    List<InputSplit> splits = hapi.getSplits(hiveConf, client);
    System.err.println("Have " + splits.size() + " splits to read");

    HiveTableName hiveTableName = new HiveTableName(opts.database, opts.table);
    HiveTableSchema schema = HiveTableSchemas.lookup(client, hiveTableName);

    Stats stats = new Stats();
    Context context = new Context(hapi, hiveConf, schema, hiveStats, opts, stats);
    long startNanos = System.nanoTime();
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

    hapi.setMyProfileId(DEFAULT_PROFILE_ID);

    List<InputSplit> splits = hapi.getSplits(hiveConf, client);
    LOG.info("Have " + splits.size() + " splits to read");

    HiveTableName hiveTableName = new HiveTableName(opts.database, opts.table);
    HiveTableSchema schema = HiveTableSchemas.lookup(client, hiveTableName);

    Stats stats = new Stats();
    Context context = new Context(hapi, hiveConf, schema, hiveStats, opts, stats);
    long startNanos = System.nanoTime();
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

  /**
   * Constructor
   */
  public HiveTableSchemaImpl() {
    tableName = new HiveTableName("_unknown_", "_unknown_");
    partitionPositions = Maps.newHashMap();
    columnPositions = Maps.newHashMap();
  }
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

    Map<String, Integer> partitionToIndex = Maps.newHashMap();
    for (String partitionName : partitionNames) {
      partitionToIndex.put(partitionName, index++);
    }

    HiveTableName hiveTableName = new HiveTableName(table.getDbName(), table.getTableName());
    return new HiveTableSchemaImpl(hiveTableName, partitionToIndex, columnToIndex);
  }
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

    Writables.readStrIntMap(in, partitionPositions);
    Writables.readStrIntMap(in, columnPositions);
    numColumns = computeNumColumns(columnPositions);
    String dbName = WritableUtils.readString(in);
    String tblName = WritableUtils.readString(in);
    tableName = new HiveTableName(dbName, tblName);
  }
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

  /**
   * Make hive table name from this
   * @return HiveTableName
   */
  public HiveTableName  hiveTableName() {
    return new HiveTableName(dbName, tableName);
  }
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

  /**
   * Make hive table name from this
   * @return HiveTableName
   */
  public HiveTableName hiveTableName() {
    return new HiveTableName(dbName, tableName);
  }
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

  /**
   * Constructor
   */
  public HiveTableSchemaImpl() {
    tableName = new HiveTableName("_unknown_", "_unknown_");
    partitionPositions = Maps.newHashMap();
    columnPositions = Maps.newHashMap();
  }
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

    Map<String, Integer> partitionToIndex = Maps.newHashMap();
    for (String partitionName : partitionNames) {
      partitionToIndex.put(partitionName, index++);
    }

    HiveTableName hiveTableName = new HiveTableName(table.getDbName(), table.getTableName());
    return new HiveTableSchemaImpl(hiveTableName, partitionToIndex, columnToIndex);
  }
View Full Code Here

Examples of com.facebook.giraph.hive.common.HiveTableName

    Writables.readStrIntMap(in, partitionPositions);
    Writables.readStrIntMap(in, columnPositions);
    numColumns = computeNumColumns(columnPositions);
    String dbName = WritableUtils.readString(in);
    String tblName = WritableUtils.readString(in);
    tableName = new HiveTableName(dbName, tblName);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.