Examples of finish()


Examples of org.apache.lucene.codecs.TermsConsumer.finish()

        termsConsumer.finishTerm(term, new TermStats(postings.docFreq, doFreq ? totalTF : -1));
        sumTotalTF += totalTF;
        sumDF += postings.docFreq;
      }

      termsConsumer.finish(doFreq ? sumTotalTF : -1, sumDF, seenDocs.cardinality());
    }

    fieldsConsumer.close();

    if (VERBOSE) {
View Full Code Here

Examples of org.apache.lucene.util.packed.BlockPackedWriter.finish()

      final BlockPackedWriter writer = new BlockPackedWriter(data, BLOCK_SIZE);
      for (Number nv : values) {
        long value = nv == null ? 0 : nv.longValue();
        writer.add((value - minValue) / gcd);
      }
      writer.finish();
    } else {
      meta.writeByte(DELTA_COMPRESSED); // delta-compressed

      meta.writeVInt(PackedInts.VERSION_CURRENT);
      data.writeVInt(BLOCK_SIZE);
View Full Code Here

Examples of org.apache.lucene.util.packed.DirectWriter.finish()

        final DirectWriter quotientWriter = DirectWriter.getInstance(data, count, bits);
        for (Number nv : values) {
          long value = nv == null ? 0 : nv.longValue();
          quotientWriter.add((value - minValue) / gcd);
        }
        quotientWriter.finish();
        break;
      case DELTA_COMPRESSED:
        final long minDelta = delta < 0 ? 0 : minValue;
        meta.writeLong(minDelta);
        meta.writeVInt(deltaBitsRequired);
View Full Code Here

Examples of org.apache.lucene.util.packed.MonotonicBlockPackedWriter.finish()

        if (v != null) {
          addr += v.length;
        }
        writer.add(addr);
      }
      writer.finish();
    }
  }
 
  private void writeFST(FieldInfo field, Iterable<BytesRef> values) throws IOException {
    meta.writeVInt(field.number);
View Full Code Here

Examples of org.apache.pig.StoreFunc.finish()

        int[] input = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
        Tuple f1 = Util.loadFlatTuple(new Tuple(input.length), input);

        sfunc.putNext(f1);
        sfunc.finish();
       
        FakeFSInputStream is = new FakeFSInputStream(buf);
        LoadFunc lfunc = new PigStorage();
        lfunc.bindTo(null, new BufferedPositionedInputStream(is), 0, buf.length);
        Tuple f2 = lfunc.getNext();
View Full Code Here

Examples of org.apache.pig.penny.impl.harnesses.CoordinatorHarness.finish()

            throw new RuntimeException("Cannot find " + pennyJarFilename + " in working directory.");
        }
        pigServer.registerJar(pennyJarFilename);

        pigServer.runPlan(queryPlan, "penny");
        return coordHarness.finish();
    }
   
}
View Full Code Here

Examples of org.apache.pig.penny.impl.harnesses.MonitorAgentHarness.finish()

        }
        lastTuples = ((SimpleMonitorAgent)mah4.getMonitorAgent()).lastTuples;
        Assert.assertEquals(2, lastTuples.size());
        Assert.assertEquals(tuple1, lastTuples.remove(0));
        Assert.assertEquals(tuple2, lastTuples.remove(0));   
        mah4.finish();
        shutdown();
    }
}
View Full Code Here

Examples of org.apache.sis.internal.jaxb.Context.finish()

    public void marshal(final Object object, final Result output) throws JAXBException {
        final Context context = begin();
        try {
            marshaller.marshal(object, output);
        } finally {
            context.finish();
        }
    }

    /**
     * Delegates the marshalling to the wrapped marshaller.
View Full Code Here

Examples of org.apache.solr.update.processor.UpdateRequestProcessor.finish()

        RequestHandlerUtils.handleCommit(processor, params, false);
        RequestHandlerUtils.handleRollback(processor, params, false);
      }
    } finally {
      // finish the request
      processor.finish();
    }
  }

  protected abstract ContentStreamLoader newLoader(SolrQueryRequest req, UpdateRequestProcessor processor);
}
View Full Code Here

Examples of org.apache.tapestry.internal.services.InternalClassTransformation.finish()

        phaseTwoTraining.run();

        replay();

        transformation.finish();

        Instantiator instantiator = transformation.createInstantiator();

        Component component = instantiator.newInstance(resources);
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.