20 namespace Lucene.Net.Index
25 private void InitBlock()
30 public int[][] buffers =
new int[10][];
32 internal int bufferUpto = - 1;
39 internal bool trackAllocations;
44 this.docWriter = docWriter;
45 this.trackAllocations = trackAllocations;
50 if (bufferUpto != - 1)
54 docWriter.RecycleIntBlocks(buffers, 1, 1 + bufferUpto);
64 public void NextBuffer()
66 if (1 + bufferUpto == buffers.Length)
68 int[][] newBuffers =
new int[(int) (buffers.Length * 1.5)][];
69 Array.Copy(buffers, 0, newBuffers, 0, buffers.Length);
72 buffer = buffers[1 + bufferUpto] = docWriter.GetIntBlock(trackAllocations);