public SortedDocValuesWriter ( Lucene.Net.Index.FieldInfo fieldInfo, Lucene.Net.Util.Counter iwBytesUsed ) : Lucene.Net.Codecs | ||
fieldInfo | Lucene.Net.Index.FieldInfo | |
iwBytesUsed | Lucene.Net.Util.Counter | |
Результат | Lucene.Net.Codecs |
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);
}