Examples of index()


Examples of org.sindice.siren.index.codecs.siren10.DocsFreqBlockIndexInput.index()

    out.close();

    final DocsFreqBlockIndexInput in = this.getIndexInput();
    final DocsFreqBlockReader reader = in.getBlockReader();

    reader.setNodeBlockIndex(in.index());
    reader.setPosBlockIndex(in.index());
    for (int i = 0; i < 11777; i++) {
      if (reader.isExhausted()) {
        reader.nextBlock();
      }
View Full Code Here

Examples of org.sindice.siren.index.codecs.siren10.DocsFreqBlockIndexOutput.index()

  public void testReadDoc() throws IOException {

    final DocsFreqBlockIndexOutput out = this.getIndexOutput(512);
    final DocsFreqBlockWriter writer = out.getBlockWriter();

    writer.setNodeBlockIndex(out.index());
    writer.setPosBlockIndex(out.index());
    for (int i = 0; i < 11777; i++) {
      if (writer.isFull()) {
        writer.flush();
      }
View Full Code Here

Examples of org.terrier.indexing.BasicSinglePassIndexer.index()

    BasicSinglePassIndexer _indexer;
    if (ApplicationSetup.BLOCK_INDEXING)
      _indexer = new BlockSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
    else
      _indexer = new BasicSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
    _indexer.index(new Collection[] {collectionTREC});
    long endTimestamp = System.currentTimeMillis();
    System.err.println("Finished building the inverted index...");
    double seconds = (endTimestamp - beginTimestamp) / 1000.0d;
    System.err.println("Time elapsed for inverted file: " + seconds);
    try{
View Full Code Here

Examples of org.terrier.indexing.Indexer.index()

          ? new BasicSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX)
          : new BasicIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
 
      SimpleFileCollection sfc = new SimpleFileCollection(folderList, true);
 
      indexer.index(new Collection[] { sfc });
 
     
      //load in the indexes
      if (loadIndices()) {
        //indices loaded
View Full Code Here

Examples of org.thechiselgroup.choosel.protovis.client.PVMark.index()

        PVPanel vis = graphWidget.getPVPanel().data(bullets).width(400).height(30)
                .margin(20).left(120).top(new JsDoubleFunction() {
                    public double f(JsArgs args) {
                        PVMark _this = args.getThis();
                        return 10 + _this.index() * 60;
                    }
                });

        PVBulletLayout bullet = vis.add(PV.Layout.Bullet()).orient(LEFT)
                .ranges(new JsFunction<JsArrayNumber>() {
View Full Code Here

Examples of pdfdb.indexing.plugins.Indexer.index()

     * @throws pdfdb.indexing.plugins.IndexingException If the file is
     * unindexable. */
    private static Region[] indexFile(String path) throws IndexingException
    {
        Indexer indexer = IndexingProvider.getIndexer(path);
        Region[] regions = indexer.index(path);
        if (regions == null)
            throw new IndexingException();
        else
            return regions;
    }
View Full Code Here

Examples of prefuse.visual.VisualTable.index()

    protected VisualTable getTable() {
        TupleSet ts = m_vis.getGroup(m_group);
        if ( ts == null ) {
            Schema s = PrefuseLib.getAxisLabelSchema();
            VisualTable vt = m_vis.addTable(m_group, s);
            vt.index(VALUE);
            return vt;
        } else if ( ts instanceof VisualTable ) {
            return (VisualTable)ts;
        } else {
            throw new IllegalStateException(
View Full Code Here

Examples of ptolemy.actor.util.SuperdenseTime.index()

        if (!_breakpoints.isEmpty()) {
            SuperdenseTime nextBreakpoint = (SuperdenseTime) _breakpoints
                    .first();
            Time breakpointTime = nextBreakpoint.timestamp();
            int comparison = breakpointTime.compareTo(_currentTime);
            if (comparison == 0 && nextBreakpoint.index() == _index) {
                if (_debugging) {
                    _debug("Removing breakpoint at " + nextBreakpoint);
                }
                _breakpoints.removeFirst();
            }
View Full Code Here

Examples of stallone.api.doubles.IDoubleElement.index()

        v.set(5, 2);
       
        for (IDoubleIterator it = v.nonzeroIterator(); it.hasNext();)
        {
            IDoubleElement de = it.next();
            System.out.println(de.index()+" "+de.row()+" "+de.column()+" "+de.get());
        }
    }

}
View Full Code Here

Examples of toxi.geom.PointQuadtree.index()

        assertEquals(points.size() == 3, true);
    }

    public void testQuadtree() {
        PointQuadtree t = new PointQuadtree(null, 0, 0, 100, 100);
        assertEquals(t.index(new Vec2D(0, 0)), true);
        assertEquals(t.index(new Vec2D(1, 1)), true);
        assertEquals(t.index(new Vec2D(4, 0)), true);
        PointQuadtree leaf1 = t.findNode(new Vec2D(0, 0));
        PointQuadtree leaf2 = t.findNode(new Vec2D(4, 0));
        assertNotSame(leaf1, leaf2);
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.