Examples of ReInit()


Examples of org.apache.hadoop.io.compress.Compressor.reinit()

      rawData = generate(BYTE_SIZE);
      try {
        for (int i = 0; i < tryNumber; i++)
          compressDecompressZlib(rawData, (ZlibCompressor) zlibCompressor,
              (ZlibDecompressor) zlibDecompressor);
        zlibCompressor.reinit(conf);
      } catch (Exception ex) {
        fail("testZlibCompressorDecompressorWithConfiguration ex error " + ex);
      }
    } else {
      assertTrue("ZlibFactory is using native libs against request",
View Full Code Here

Examples of org.apache.hadoop.io.compress.Compressor.reinit()

      rawData = generate(BYTE_SIZE);
      try {
        for (int i = 0; i < tryNumber; i++)
          compressDecompressZlib(rawData, (ZlibCompressor) zlibCompressor,
              (ZlibDecompressor) zlibDecompressor);
        zlibCompressor.reinit(conf);
      } catch (Exception ex) {
        fail("testZlibCompressorDecompressorWithConfiguration ex error " + ex);
      }
    } else {
      assertTrue("ZlibFactory is using native libs against request",
View Full Code Here

Examples of org.apache.lucene.analysis.Token.reinit()

                public final boolean incrementToken() throws IOException {
                  if (!it.hasNext()) {
                    return false;
                  }

                  reusableToken.reinit(it.next());
                  return true;
                }

                public void reset() throws IOException {
                  it = tokens.iterator();
View Full Code Here

Examples of org.apache.lucene.analysis.Token.reinit()

    tokenQueue = new LinkedList<Token>();
  }
 
  public void addToken(String val, int startOffset, int endOffset) {
    Token t = new Token();
    t.reinit(val, startOffset, endOffset);
    tokenQueue.add(t);
  }
 
  @Override
  public Token next(Token token) throws IOException {
View Full Code Here

Examples of org.apache.lucene.analysis.Token.reinit()

        Token res = new Token();
        if (null == t1) {
            return t2;
        }
        char[] text = (TokenUtil.termText(t1)+"_"+TokenUtil.termText(t2)).toCharArray();
        res.reinit(text, 0, text.length, t1.startOffset(), t2.endOffset());
        return res;
    }

    @Override
    @Deprecated
View Full Code Here

Examples of org.apache.lucene.analysis.Token.reinit()

  }

  private void offer(Token nextToken, String term, int freq) {
    for (int i = 0; i < freq; i++) {
      Token t = new Token();
      t.reinit(nextToken, term);
      queue.offer(t);
    }
  }

  public final Token next(final Token reusableToken)
View Full Code Here

Examples of org.apache.lucene.analysis.Token.reinit()

    String type = this.tree.getOEMap().get(nextToken.term());
    if (type != null) {
      for (int i = 0; i < tree.getWeightBase() - 1; i++) {
        Token t = new Token();
        t.reinit(nextToken);
        queue.offer(t);
      }
      String uri = this.tree.getOntModel().expandPrefix(
          ":" + nextToken.term());
      if (type.equals(OntologyElementTree.ONTCLASS)) {
View Full Code Here

Examples of org.apache.lucene.analysis.Token.reinit()

                public final boolean incrementToken() throws IOException {
                  if (!it.hasNext()) {
                    return false;
                  }

                  reusableToken.reinit(it.next());
                  return true;
                }

                public void reset() throws IOException {
                  it = tokens.iterator();
View Full Code Here

Examples of org.apache.lucene.util.UnsafeByteArrayInputStream.reInit()

    byte[] buffer2 = new byte[length2];
    for (int i = 0; i < length2; ++i) {
      buffer2[i] = (byte) (90 + i);
    }
    byte[] result2 = new byte[buffer2.length];
    ubais.reInit(buffer2);

    int index2 = 0;
    int by2 = ubais.read();
    while (by2 >= 0) {
      result2[index2++] = (byte) (by2);
View Full Code Here

Examples of org.apache.lucene.util.UnsafeByteArrayOutputStream.reInit()

    byte[] buffer2 = new byte[length2];
    for (int i = 0; i < length2; i++) {
      buffer2[i] = (byte) (8 + i);
    }

    ubaos.reInit(buffer2);
    for (int i = 0; i < length2; i++) {
      ubaos.write(7 + i);
    }

    byte[] result2 = ubaos.toByteArray();
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.