Initializes a new instance of the RamUsageEstimator class

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public RamUsageEstimator(
	MemoryModel memoryModel,
	bool checkInterned
)
Visual Basic
Public Sub New ( _
	memoryModel As MemoryModel, _
	checkInterned As Boolean _
)
Visual C++
public:
RamUsageEstimator(
	MemoryModel^ memoryModel, 
	bool checkInterned
)

Parameters

memoryModel
Type: Lucene.Net.Util..::..MemoryModel
MemoryModel to use for primitive object sizes.
checkInterned
Type: System..::..Boolean
check if Strings are interned and don't add to size if they are. Defaults to true but if you know the objects you are checking won't likely contain many interned Strings, it will be faster to turn off intern checking.

See Also