Iterator(int size, PagedGrowableWriter offsets, PagedGrowableWriter lengths, PagedMutable docs, BytesRef values) { this.offsets = offsets; this.size = size; this.lengths = lengths; this.docs = docs; value = values.clone(); }
public BinaryDocValuesFieldUpdates(String field, int maxDoc) { super(field, FieldInfo.DocValuesType.BINARY); bitsPerValue = PackedInts.bitsRequired(maxDoc - 1); docs = new PagedMutable(1, PAGE_SIZE, bitsPerValue, PackedInts.COMPACT); offsets = new PagedGrowableWriter(1, PAGE_SIZE, 1, PackedInts.FAST); lengths = new PagedGrowableWriter(1, PAGE_SIZE, 1, PackedInts.FAST); values = new BytesRefBuilder(); size = 0; }
public NumericDocValuesFieldUpdates(String field, int maxDoc) { super(field, FieldInfo.DocValuesType.NUMERIC); bitsPerValue = PackedInts.bitsRequired(maxDoc - 1); docs = new PagedMutable(1, PAGE_SIZE, bitsPerValue, PackedInts.COMPACT); values = new PagedGrowableWriter(1, PAGE_SIZE, 1, PackedInts.FAST); size = 0; }
Iterator(int size, PagedGrowableWriter values, PagedMutable docs) { this.size = size; this.values = values; this.docs = docs; }
public PackedNumericFieldUpdates(int maxDoc) { docsWithField = new FixedBitSet(64); docs = new PagedMutable(1, 1024, PackedInts.bitsRequired(maxDoc - 1), PackedInts.COMPACT); values = new PagedGrowableWriter(1, 1024, 1, PackedInts.FAST); size = 0; }