Examples of updateCache()


Examples of edu.isi.karma.modeling.ontology.OntologyManager.updateCache()

            logger.error ("Error loading ontology: " + ontology.getAbsolutePath(), t);
          }
        }
      }
      // update the cache at the end when all files are added to the model
      mgr.updateCache();
      ModelLearningGraph.getInstance(mgr, ModelLearningGraphType.Sparse);

    } else {
      logger.info("No directory for preloading ontologies exists.");
    }
View Full Code Here

Examples of edu.isi.karma.modeling.ontology.OntologyManager.updateCache()

        } else {
          logger.error ("the file: " + ontology.getAbsolutePath() + " does not have proper format: xml/rdf/n3/ttl/owl");
        }
      }
      // update the cache at the end when all files are added to the model
      mgr.updateCache();
      Set<String> test = mgr.getPossibleUris("http://example.com/layout/C01_", "http://example.com/layout/C02_");
      for (String s : test) {
        System.out.println(s);
      }
      Alignment al = new Alignment(mgr);
View Full Code Here

Examples of edu.isi.karma.modeling.ontology.OntologyManager.updateCache()

    File ff = new File(Params.ONTOLOGY_DIR);
    File[] files = ff.listFiles();
    for (File f : files) {
      ontologyManager.doImport(f, "UTF-8");
    }
    ontologyManager.updateCache()

//    getStatistics1(semanticModels);
//
//    if (true)
//      return;
View Full Code Here

Examples of edu.isi.karma.modeling.ontology.OntologyManager.updateCache()

    File ff = new File(Params.ONTOLOGY_DIR);
    File[] files = ff.listFiles();
    for (File f : files) {
      ontologyManager.doImport(f, "UTF-8");
    }
    ontologyManager.updateCache()

//    getStatistics1(semanticModels);

//    if (true)
//      return;
View Full Code Here

Examples of edu.isi.karma.modeling.ontology.OntologyManager.updateCache()

        } else {
          logger.error ("the file: " + ontology.getAbsolutePath() + " does not have proper format: xml/rdf/n3/ttl/owl");
        }
      }
      // update the cache at the end when all files are added to the model
      mgr.updateCache();
    }
   
    GraphBuilderTopK gbtk = new GraphBuilderTopK(mgr, false);
   
    Node n1 = new InternalNode("n1", new Label("http://erlangen-crm.org/current/E55_Type"));
View Full Code Here

Examples of edu.isi.karma.modeling.ontology.OntologyManager.updateCache()

          logger.error ("the file: " + ontology.getAbsolutePath() + " does not have proper format: xml/rdf/n3/ttl/owl");
          uc.add(new TrivialErrorUpdate("Error loading ontology: " + ontology.getAbsolutePath() + ". The file does not have proper format: xml/rdf/n3/ttl/owl"));
        }
      }
      // update the cache at the end when all files are added to the model
      ontologyManager.updateCache();
    } else {
      logger.info("No directory for preloading ontologies exists.");
    }
    SemanticTypeUtil.setSemanticTypeTrainingStatus(true);
  }
View Full Code Here

Examples of org.apache.phoenix.schema.MetaDataClient.updateCache()

            long serverTimeStamp = tableRef.getTimeStamp();
            PTable table = tableRef.getTable();
            // If we're auto committing, we've already validated the schema when we got the ColumnResolver,
            // so no need to do it again here.
            if (!connection.getAutoCommit()) {
                MetaDataMutationResult result = client.updateCache(table.getSchemaName().getString(), table.getTableName().getString());
                long timestamp = result.getMutationTime();
                if (timestamp != QueryConstants.UNSET_TIMESTAMP) {
                    serverTimeStamp = timestamp;
                    if (result.wasUpdated()) {
                        // TODO: use bitset?
View Full Code Here

Examples of org.apache.phoenix.schema.MetaDataClient.updateCache()

        for (Map.Entry<TableRef, Map<ImmutableBytesPtr,Map<PColumn,byte[]>>> entry : mutations.entrySet()) {
            TableRef tableRef = entry.getKey();
            long serverTimeStamp = tableRef.getTimeStamp();
            PTable table = tableRef.getTable();
            if (!connection.getAutoCommit()) {
                serverTimeStamp = client.updateCache(table.getSchemaName().getString(), table.getTableName().getString());
                if (serverTimeStamp < 0) {
                    serverTimeStamp *= -1;
                    // TODO: use bitset?
                    PColumn[] columns = new PColumn[table.getColumns().size()];
                    for (Map.Entry<ImmutableBytesPtr,Map<PColumn,byte[]>> rowEntry : entry.getValue().entrySet()) {
View Full Code Here

Examples of org.apache.phoenix.schema.MetaDataClient.updateCache()

         * current time at execution time. In that case, we'll call MetaDataClient.updateCache
         * purely to bind the current time based on the server time.
         */
        PTable table = this.getResolver().getTables().get(0).getTable();
        MetaDataClient client = new MetaDataClient(connection);
        currentTime = Math.abs(client.updateCache(table.getSchemaName().getString(), table.getTableName().getString()));
        return currentTime;
    }

    /**
     * Get the key range derived from row value constructor usage in where clause. These are orthogonal to the ScanRanges
View Full Code Here

Examples of org.apache.phoenix.schema.MetaDataClient.updateCache()

        for (Map.Entry<TableRef, Map<ImmutableBytesPtr,Map<PColumn,byte[]>>> entry : mutations.entrySet()) {
            TableRef tableRef = entry.getKey();
            long serverTimeStamp = tableRef.getTimeStamp();
            PTable table = tableRef.getTable();
            if (!connection.getAutoCommit()) {
                MetaDataMutationResult result = client.updateCache(table.getSchemaName().getString(), table.getTableName().getString());
                long timestamp = result.getMutationTime();
                if (timestamp != QueryConstants.UNSET_TIMESTAMP) {
                    serverTimeStamp = timestamp;
                    if (result.wasUpdated()) {
                        // TODO: use bitset?
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.