public virtual void TestSimpleIntBlocks() { Directory dir = NewDirectory(); IntStreamFactory f = (new MockFixedIntBlockPostingsFormat(128)).getIntFactory(); IntIndexOutput @out = f.CreateOutput(dir, "test", NewIOContext(Random())); for (int i = 0; i < 11777; i++) { @out.Write(i); } @out.Dispose(); IntIndexInput @in = f.OpenInput(dir, "test", NewIOContext(Random())); IntIndexInputReader r = @in.Reader(); for (int i = 0; i < 11777; i++) { assertEquals(i, r.Next()); } @in.Dispose(); dir.Dispose(); }
public override void Seek(IntIndexInputReader other) { ((IntBlockIndexReader)other).Seek(_fp, _upto); }
public override void Seek(IntIndexInputReader other) { ((InputReader)other).Seek(fp, upto); }
public override void Seek(IntIndexInputReader other) { ((MockReader)other)[email protected](fp); }