Beispiel #1
0
 public NumericDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed, bool trackDocsWithField)
 {
     pending          = new AppendingDeltaPackedInt64Buffer(PackedInt32s.COMPACT);
     docsWithField    = trackDocsWithField ? new FixedBitSet(64) : null;
     bytesUsed        = pending.RamBytesUsed() + DocsWithFieldBytesUsed();
     this.fieldInfo   = fieldInfo;
     this.iwBytesUsed = iwBytesUsed;
     iwBytesUsed.AddAndGet(bytesUsed);
 }
 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 AppendingDeltaPackedInt64Buffer(PackedInt32s.COMPACT);
     bytesUsed        = pending.RamBytesUsed();
     iwBytesUsed.AddAndGet(bytesUsed);
 }
Beispiel #3
0
 public BinaryDocValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed)
 {
     this.fieldInfo     = fieldInfo;
     this.bytes         = new PagedBytes(BLOCK_BITS);
     this.bytesOut      = bytes.GetDataOutput();
     this.lengths       = new AppendingDeltaPackedInt64Buffer(PackedInt32s.COMPACT);
     this.iwBytesUsed   = iwBytesUsed;
     this.docsWithField = new FixedBitSet(64);
     this.bytesUsed     = DocsWithFieldBytesUsed();
     iwBytesUsed.AddAndGet(bytesUsed);
 }