DocumentsWriterPerThread
Constructors
Types
Properties
Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
Returns the last committed bytes for this DWPT. This method can be called without acquiring the DWPTs lock.
Returns the number of RAM resident documents in this DocumentsWriterPerThread
Functions
Commits the current .ramBytesUsed and stores its value for later reuse. The last committed bytes used can be retrieved via .getLastCommittedBytesUsed
Flush all pending docs to a new segment
Get current segment info we are writing.
Returns true iff this DWPT has been flushed
Returns true iff this DWPT is marked as flush pending
Acquires the lock unless the current thread is interrupted.
Returns a new Condition instance that is bound to this Lock instance.
Prepares this DWPT for flushing. This method will freeze and return the [ ]s global buffer and apply all pending deletes to this DWPT.
Return the memory usage of this object in bytes. Negative values are illegal.
Seals the SegmentInfo for the new flushed segment and persists the deleted documents FixedBitSet.
Sets this DWPT as flush pending. This can only be set once.