Examples of Index


Examples of org.kie.uberfire.metadata.engine.Index

        ioService().write( path2,
                           drl2 );

        Thread.sleep( 5000 ); //wait for events to be consumed from jgit -> (notify changes -> watcher -> index) -> lucene index

        final Index index = getConfig().getIndexManager().get( org.kie.uberfire.metadata.io.KObjectUtil.toKCluster( basePath.getFileSystem() ) );

        {
            final IndexSearcher searcher = ( (LuceneIndex) index ).nrtSearcher();
            final TopScoreDocCollector collector = TopScoreDocCollector.create( 10,
                                                                                true );
View Full Code Here

Examples of org.lealone.dbobject.index.Index

        }
        boolean isSessionTemporary = isTemporary() && !isGlobalTemporary();
        if (!isSessionTemporary) {
            database.lockMeta(session);
        }
        Index index;
        if (indexType.isHash() && cols.length <= 1) {
            if (indexType.isUnique()) {
                index = new HashIndex(this, indexId, indexName, cols, indexType);
            } else {
                index = new NonUniqueHashIndex(this, indexId, indexName, cols, indexType);
            }
        } else {
            index = new TreeIndex(this, indexId, indexName, cols, indexType);
        }
        if (database.isMultiVersion()) {
            index = new MultiVersionIndex(index, this);
        }
        rebuildIfNeed(session, index, indexName);
        index.setTemporary(isTemporary());
        if (index.getCreateSQL() != null) {
            index.setComment(indexComment);
            if (isSessionTemporary) {
                session.addLocalTempTableIndex(index);
            } else {
                database.addSchemaObject(session, index);
            }
View Full Code Here

Examples of org.locationtech.geogig.repository.Index

    public GeogigTransaction(Context locator, UUID transactionId) {
        Preconditions.checkArgument(!(locator instanceof GeogigTransaction));
        this.injector = locator;
        this.transactionId = transactionId;

        transactionIndex = new TransactionStagingArea(new Index(this), transactionId);
        transactionWorkTree = new WorkingTree(this);
        transactionRefDatabase = new TransactionRefDatabase(locator.refDatabase(), transactionId);
    }
View Full Code Here

Examples of org.modeshape.jcr.spi.index.Index

        // Look up the index by name ...
        String providerName = indexPlan.getProviderName();
        IndexProvider provider = indexManager.getProvider(providerName);
        if (provider != null) {
            // Use the index to get a NodeSequence ...
            Index index = provider.getIndex(indexPlan.getName(), indexPlan.getWorkspaceName());
            if (index != null) {
                return sources.fromIndex(index, indexPlan.getConstraints(), context.getVariables(), indexPlan.getParameters(),
                                         context.getExecutionContext().getValueFactories(), 100);
            }
        }
View Full Code Here

Examples of org.molgenis.model.elements.Index

      NodeList index_elements = elem.getElementsByTagName("index");
      for (int k = 0; k < index_elements.getLength(); k++)
      {
        elem = (Element) index_elements.item(k);

        Index index = new Index(elem.getAttribute("name"));

        NodeList indexfield_elements = elem.getElementsByTagName("indexfield");
        for (int l = 0; l < indexfield_elements.getLength(); l++)
        {
          elem = (Element) indexfield_elements.item(l);

          Field f = entity.getField(elem.getAttribute("name"));
          if (f == null)
          {
            // System.err.println(String.format(Error.
            // MISSING_INDEX_FIELD.msg,
            // elem.getAttribute("name")));
            throw new MolgenisModelException("Missing index field: " + elem.getAttribute("name"));
            // return null;
          }

          try
          {
            index.addField(elem.getAttribute("name"));
          }
          catch (Exception e)
          {
            throw new MolgenisModelException(e.getMessage());
          }
View Full Code Here

Examples of org.msgpack.annotation.Index

      return FieldOption.OPTIONAL;
  }
    }

    private int getFieldIndex(final Field field, int maxIndex) {
  Index a = field.getAnnotation(Index.class);
  if (a == null) {
      return maxIndex + 1;
  } else {
      return a.value();
  }
    }
View Full Code Here

Examples of org.nasutekds.server.backends.jeb.Index

      {
        List<DatabaseContainer> databases = new ArrayList<DatabaseContainer>();
        ec.listDatabases(databases);
        for (DatabaseContainer dbContainer: databases) {
          if (dbContainer instanceof Index) {
            Index index = (Index)dbContainer;
            if (!index.isTrusted()) {
              originalSystemErr.println("ERROR:  The index " + index.toString() + " is no longer trusted.");
            }
          }
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of org.olat.search.service.indexer.Index

      spellChecker = new SearchSpellChecker();
      spellChecker.setIndexPath(searchModuleConfig.getFullIndexPath());
      spellChecker.setSpellDictionaryPath(searchModuleConfig.getSpellCheckDictionaryPath());
      spellChecker.setSpellCheckEnabled(searchModuleConfig.getSpellCheckEnabled());
     
      indexer = new Index(searchModuleConfig.getFullIndexPath(),
        searchModuleConfig.getFullTempIndexPath()
        searchModuleConfig.getRestartInterval(),
        searchModuleConfig.getIndexInterval(),
        spellChecker);
      indexUpdater = new IndexUpdater(searchModuleConfig.getFullIndexPath(), searchModuleConfig.getUpdateInterval());
View Full Code Here

Examples of org.openbel.framework.common.index.Index

                indexFile = resolvedResource.getCacheResourceCopy();
            }

            final ResourceIndex ri = ResourceIndex.INSTANCE;
            ri.loadIndex(indexFile);
            final Index index = ri.getIndex();


            final List<ResourceLocation> nsr = index.getNamespaceResources();
            final Map<String, NamespaceHeader> hvals;
            if (hasItems(nsr)) {
                hvals = new LinkedHashMap<String, NamespaceHeader>(index
                        .getNamespaceResources().size());
                for (ResourceLocation rl : index.getNamespaceResources()) {
                    String loc = rl.getResourceLocation();
                    ResolvedResource nsResource = c.resolveResource(
                            ResourceType.NAMESPACES, loc);
                    NamespaceHeader header = p.parseNamespace(loc,
                            nsResource.getCacheResourceCopy());
View Full Code Here

Examples of org.openengsb.core.edbi.api.Index

        boolean accessibleFlag = loadIndex.isAccessible();
        loadIndex.setAccessible(true);

        indexEngine.createIndex(TestModel.class);

        Index index = (Index) loadIndex.invoke(indexEngine, "org.openengsb.core.edbi.models.TestModel");

        assertEquals("org.openengsb.core.edbi.models.TestModel", index.getName());
        assertEquals(TestModel.class, index.getModelClass());
        assertEquals("INDEX_HEAD", index.getHeadTableName());
        assertEquals("INDEX_HISTORY", index.getHistoryTableName());

        loadIndex.setAccessible(accessibleFlag);
    }
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.