public NumericDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed, bool trackDocsWithField)
 {
     Pending          = new AppendingDeltaPackedLongBuffer(PackedInts.COMPACT);
     DocsWithField    = trackDocsWithField ? new FixedBitSet(64) : null;
     BytesUsed        = Pending.RamBytesUsed() + DocsWithFieldBytesUsed();
     this.FieldInfo   = fieldInfo;
     this.IwBytesUsed = iwBytesUsed;
     iwBytesUsed.AddAndGet(BytesUsed);
 }
示例#2
0
 public SortedDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed)
 {
     this.FieldInfo   = fieldInfo;
     this.IwBytesUsed = iwBytesUsed;
     Hash             = new BytesRefHash(new ByteBlockPool(new ByteBlockPool.DirectTrackingAllocator(iwBytesUsed)), BytesRefHash.DEFAULT_CAPACITY, new BytesRefHash.DirectBytesStartArray(BytesRefHash.DEFAULT_CAPACITY, iwBytesUsed));
     Pending          = new AppendingDeltaPackedLongBuffer(PackedInts.COMPACT);
     BytesUsed        = Pending.RamBytesUsed();
     iwBytesUsed.AddAndGet(BytesUsed);
 }
 public SortedSetDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed)
 {
     this.FieldInfo = fieldInfo;
     this.IwBytesUsed = iwBytesUsed;
     Hash = new BytesRefHash(new ByteBlockPool(new ByteBlockPool.DirectTrackingAllocator(iwBytesUsed)), BytesRefHash.DEFAULT_CAPACITY, new DirectBytesStartArray(BytesRefHash.DEFAULT_CAPACITY, iwBytesUsed));
     Pending = new AppendingPackedLongBuffer(PackedInts.COMPACT);
     PendingCounts = new AppendingDeltaPackedLongBuffer(PackedInts.COMPACT);
     BytesUsed = Pending.RamBytesUsed() + PendingCounts.RamBytesUsed();
     iwBytesUsed.AddAndGet(BytesUsed);
 }
示例#4
0
 public BinaryDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed)
 {
     this.FieldInfo     = fieldInfo;
     this.Bytes         = new PagedBytes(BLOCK_BITS);
     this.BytesOut      = Bytes.DataOutput;
     this.Lengths       = new AppendingDeltaPackedLongBuffer(PackedInts.COMPACT);
     this.IwBytesUsed   = iwBytesUsed;
     this.DocsWithField = new FixedBitSet(64);
     this.BytesUsed     = DocsWithFieldBytesUsed();
     iwBytesUsed.AddAndGet(BytesUsed);
 }
 public BinaryDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed)
 {
     this.FieldInfo = fieldInfo;
     this.Bytes = new PagedBytes(BLOCK_BITS);
     this.BytesOut = Bytes.DataOutput;
     this.Lengths = new AppendingDeltaPackedLongBuffer(PackedInts.COMPACT);
     this.IwBytesUsed = iwBytesUsed;
     this.DocsWithField = new FixedBitSet(64);
     this.BytesUsed = DocsWithFieldBytesUsed();
     iwBytesUsed.AddAndGet(BytesUsed);
 }