Examples of KeyValueTable


Examples of co.cask.cdap.api.dataset.lib.KeyValueTable

  @Override
  public ObjectStoreDataset<?> getDataset(DatasetSpecification spec,
                                          Map<String, String> arguments, ClassLoader classLoader) throws IOException {
    DatasetSpecification kvTableSpec = spec.getSpecification("objects");
    KeyValueTable table = tableDef.getDataset(kvTableSpec, arguments, classLoader);

    TypeRepresentation typeRep = GSON.fromJson(spec.getProperty("type"), TypeRepresentation.class);
    Schema schema = GSON.fromJson(spec.getProperty("schema"), Schema.class);
    return new ObjectStoreDataset(spec.getName(), table, typeRep, schema, classLoader);
  }
View Full Code Here

Examples of com.palmergames.util.KeyValueTable

    table.put(0, 3);
    table.put(3, 0);
    table.put(2, 2);
    table.put(4, 1);
   
    KeyValueTable kvTable = new KeyValueTable(table);
    print(kvTable);
    kvTable.sortByKey();print(kvTable);
    kvTable.sortByValue();print(kvTable);
  }
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.