Examples of Siren10BlockStreamFactory


Examples of org.sindice.siren.index.codecs.siren10.Siren10BlockStreamFactory

import org.sindice.siren.index.codecs.siren10.Siren10BlockStreamFactory;

public class TestVariableIntCodec extends CodecTestCase {

  private DocsFreqBlockIndexOutput getIndexOutput(final int blockSize) throws IOException {
    final Siren10BlockStreamFactory factory = new Siren10BlockStreamFactory(blockSize);
    factory.setDocsBlockCompressor(new VIntBlockCompressor());
    factory.setFreqBlockCompressor(new VIntBlockCompressor());
    return factory.createDocsFreqOutput(directory, "test", newIOContext(random()));
  }
View Full Code Here

Examples of org.sindice.siren.index.codecs.siren10.Siren10BlockStreamFactory

    factory.setFreqBlockCompressor(new VIntBlockCompressor());
    return factory.createDocsFreqOutput(directory, "test", newIOContext(random()));
  }

  private DocsFreqBlockIndexInput getIndexInput() throws IOException {
    final Siren10BlockStreamFactory factory = new Siren10BlockStreamFactory(0);
    factory.setDocsBlockDecompressor(new VIntBlockDecompressor());
    factory.setFreqBlockDecompressor(new VIntBlockDecompressor());
    return factory.openDocsFreqInput(directory, "test", newIOContext(random()));
  }
View Full Code Here

Examples of org.sindice.siren.index.codecs.siren10.Siren10BlockStreamFactory

import org.sindice.siren.index.codecs.siren10.Siren10BlockStreamFactory;

public class TestAForCodec extends CodecTestCase {

  private DocsFreqBlockIndexOutput getIndexOutput(final int blockSize) throws IOException {
    final Siren10BlockStreamFactory factory = new Siren10BlockStreamFactory(blockSize);
    factory.setDocsBlockCompressor(new AForBlockCompressor());
    factory.setFreqBlockCompressor(new AForBlockCompressor());
    return factory.createDocsFreqOutput(directory, "test", newIOContext(random()));
  }
View Full Code Here

Examples of org.sindice.siren.index.codecs.siren10.Siren10BlockStreamFactory

    factory.setFreqBlockCompressor(new AForBlockCompressor());
    return factory.createDocsFreqOutput(directory, "test", newIOContext(random()));
  }

  private DocsFreqBlockIndexInput getIndexInput() throws IOException {
    final Siren10BlockStreamFactory factory = new Siren10BlockStreamFactory(0);
    factory.setDocsBlockDecompressor(new AForBlockDecompressor());
    factory.setFreqBlockDecompressor(new AForBlockDecompressor());
    return factory.openDocsFreqInput(directory, "test", newIOContext(random()));
  }
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.