Examples of index()


Examples of org.apache.mahout.math.Vector.Element.index()

      Vector updateVector = dataPoint.times(1 / this.promotionStep);
      log.info("Winnow update positive: {}", updateVector);
      Iterator<Element> iter = updateVector.iterateNonZero();
      while (iter.hasNext()) {
        Element element = iter.next();
        model.timesDelta(element.index(), element.get());
      }
    } else {
      // case two
      Vector updateVector = dataPoint.times(1 / this.promotionStep);
      log.info("Winnow update negative: {}", updateVector);
View Full Code Here

Examples of org.apache.nutch.indexer.Indexer.index()

            fs.delete(index, true);
          }
        }
       
        Indexer indexer = new Indexer(conf);
        indexer.index(indexes, crawlDb, linkDb,
            Arrays.asList(HadoopFSUtil.getPaths(fstats)));
       
        IndexMerger merger = new IndexMerger(conf);
        if(indexes != null) {
          dedup.dedup(new Path[] { indexes });
View Full Code Here

Examples of org.apache.nutch.indexer.IndexingJob.index()

      if (solrUrl != null) {
        // index, dedup & merge
        FileStatus[] fstats = fs.listStatus(segments, HadoopFSUtil.getPassDirectoriesFilter(fs));
       
        IndexingJob indexer = new IndexingJob(getConf());
        indexer.index(crawlDb, linkDb,
                Arrays.asList(HadoopFSUtil.getPaths(fstats)));

        SolrDeleteDuplicates dedup = new SolrDeleteDuplicates();
        dedup.setConf(getConf());
        dedup.dedup(solrUrl);
View Full Code Here

Examples of org.apache.nutch.indexer.solr.SolrIndexer.index()

            fs.delete(index, true);
          }
        }
       
        Indexer indexer = new Indexer(conf);
        indexer.index(indexes, crawlDb, linkDb,
            Arrays.asList(HadoopFSUtil.getPaths(fstats)));
       
        IndexMerger merger = new IndexMerger(conf);
        if(indexes != null) {
          dedup.dedup(new Path[] { indexes });
View Full Code Here

Examples of org.apache.openjpa.persistence.query.DomainObject.index()

    }

    public void testIndex() {
        DomainObject c = qb.createQueryDefinition(Course.class);
        DomainObject w = c.join("studentWaitList");
        c.where(c.get("name").equal("Calculus").and(w.index().equal(0)))
         .select(w.get("name"));
       
        String jpql = "select s.name" +
                      " from Course c join c.studentWaitList s" +
                      " where c.name = 'Calculus' and INDEX(s) = 0";
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.core.Indexer.index()

            if(line.hasOption('c')){
                int cunckSize = Integer.parseInt(line.getOptionValue('c'));
                indexer.setChunkSize(cunckSize);
            }
            if("index".equalsIgnoreCase(args[0])){
                indexer.index();
            } else if("postprocess".equalsIgnoreCase(args[0])){
                indexer.initialiseIndexing();
                indexer.skipIndexEntities();
                indexer.postProcessEntities();
                indexer.finaliseIndexing();
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.geonames.GeoNamesIndexer.index()

            log.warn("Negative number parsed for option \"chunkSize\". Use '1000' as default.");
            chunkSize = 1000;
        }
        indexingConfig.put(KEY_CHUNK_SIZE, chunkSize);
        GeoNamesIndexer indexer = new GeoNamesIndexer(indexingConfig);
        indexer.index();
    }



}
View Full Code Here

Examples of org.apache.tapestry5.annotations.PageActivationContext.index()

        for (int i = 0; i < sortedFields.size(); ++i) {
            PlasticField field = sortedFields.get(i);
            PageActivationContext annotation = field.getAnnotation(PageActivationContext.class);
            expectedIndexes.add(i);
            actualIndexes.add(annotation.index());
            activates.add(annotation.activate());
            passivates.add(annotation.passivate());
        }

        List<String> errors = CollectionFactory.newList();
View Full Code Here

Examples of org.asciidoctor.ast.Section.index()

    @Test
    public void should_return_section_blocks() {
        Document document = asciidoctor.load(DOCUMENT, new HashMap<String, Object>());
        Section section = (Section) document.blocks().get(1);
        assertThat(section.index(), is(0));
        assertThat(section.sectname(), is("sect1"));
        assertThat(section.special(), is(false));
    }
   
    @Test
View Full Code Here

Examples of org.atomojo.app.client.Entry.index()

               public void onFeed(Document feedDoc) {
               }

               public void onEntry(Document entryDoc) {
                  Entry entry = new Entry(entryDoc);
                  entry.index();
                  if (entry.getTerm(HOST_TERM) == null) {
                     return;
                  }
                  Text text = entry.getContent();
                  if (text == null || !text.isXML()) {
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.