Package org.apache.tajo.catalog

Examples of org.apache.tajo.catalog.TableMetaImpl


  public Fragment deserialize(JsonElement json, Type type,
      JsonDeserializationContext ctx) throws JsonParseException {
    Gson gson = StorageGsonHelper.getInstance();
    JsonObject fragObj = json.getAsJsonObject();
    JsonObject metaObj = fragObj.get("meta").getAsJsonObject();
    TableMetaImpl meta = new TableMetaImpl(
        gson.fromJson(metaObj.get("schema"), Schema.class),
        gson.fromJson(metaObj.get("storeType"), StoreType.class),
        gson.fromJson(metaObj.get("options"), Options.class));
    Fragment fragment = new Fragment(fragObj.get("tabletId").getAsString(),
        gson.fromJson(fragObj.get("path"), Path.class),
View Full Code Here


    assertEquals(tupleNum, stat.getNumRows().longValue());

    FileStatus file = fs.getFileStatus(dataPath);
    TableProto proto = (TableProto) FileUtil.loadProto(
        cluster.getDefaultFileSystem(), metaPath, TableProto.getDefaultInstance());
    meta = new TableMetaImpl(proto);
    Fragment fragment = new Fragment("test.tbl", dataPath, meta, 0, file.getLen());

    int tupleCnt = 0;
    start = System.currentTimeMillis();
    Scanner scanner = StorageManagerFactory.getStorageManager(conf).getScanner(meta, fragment);
View Full Code Here

    FSDataInputStream tableMetaIn = fs.open(tableMetaPath);

    CatalogProtos.TableProto tableProto = (CatalogProtos.TableProto) FileUtil.loadProto(tableMetaIn,
        CatalogProtos.TableProto.getDefaultInstance());
    meta = new TableMetaImpl(tableProto);

    return meta;
  }
View Full Code Here

TOP

Related Classes of org.apache.tajo.catalog.TableMetaImpl

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.