Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testSimpleIntBlocks() throws Exception
        public virtual void testSimpleIntBlocks()
        {
            Directory dir = newDirectory();

            IntStreamFactory f = (new MockFixedIntBlockPostingsFormat(128)).IntFactory;

            IntIndexOutput @out = f.createOutput(dir, "test", newIOContext(random()));

            for (int i = 0; i < 11777; i++)
            {
                @out.write(i);
            }
            @out.close();

            IntIndexInput @in = f.openInput(dir, "test", newIOContext(random()));

            IntIndexInput.Reader r = @in.reader();

            for (int i = 0; i < 11777; i++)
            {
                assertEquals(i, r.next());
            }
            @in.close();

            dir.close();
        }
 public BinaryDocValuesAnonymousInnerClassHelper(MemoryDocValuesProducer outerInstance,
                                                 IntIndexInput.Reader bytesReader, int fixedLength)
 {
     this.outerInstance = outerInstance;
     this.bytesReader   = bytesReader;
     this.fixedLength   = fixedLength;
 }
 public BinaryDocValuesAnonymousInnerClassHelper2(MemoryDocValuesProducer outerInstance,
                                                  IntIndexInput.Reader bytesReader, MonotonicBlockPackedReader addresses)
 {
     this.outerInstance = outerInstance;
     this.bytesReader   = bytesReader;
     this.addresses     = addresses;
 }
 public NumericDocValuesAnonymousInnerClassHelper(MemoryDocValuesProducer outerInstance, long[] decode,
                                                  IntIndexInput.Reader ordsReader)
 {
     this.outerInstance = outerInstance;
     this.decode        = decode;
     this.ordsReader    = ordsReader;
 }