Package com.yahoo.document
Class DocumentUtil
java.lang.Object
com.yahoo.document.DocumentUtil
Class containing static utility function related to documents.
- Since:
- 5.1.9
- Author:
- Einar M Rosenvinge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateMaxPendingSize
(double maxConcurrentFactor, double documentExpansionFactor, int containerCoreMemoryMb) A convenience method that can be used to calculate a max pending queue size given the number of threads processing the documents, their size, and the memory available.
-
Constructor Details
-
DocumentUtil
public DocumentUtil()
-
-
Method Details
-
calculateMaxPendingSize
public static int calculateMaxPendingSize(double maxConcurrentFactor, double documentExpansionFactor, int containerCoreMemoryMb) A convenience method that can be used to calculate a max pending queue size given the number of threads processing the documents, their size, and the memory available.- Returns:
- the max pending size (in bytes) that should be used.
-