Class DocumentUtil

java.lang.Object
com.yahoo.document.DocumentUtil

@Deprecated(forRemoval=true) public class DocumentUtil extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Class containing static utility function related to documents.
Since:
5.1.9
Author:
Einar M Rosenvinge
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    calculateMaxPendingSize(double maxConcurrentFactor, double documentExpansionFactor, int containerCoreMemoryMb)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DocumentUtil

      public DocumentUtil()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • calculateMaxPendingSize

      public static int calculateMaxPendingSize(double maxConcurrentFactor, double documentExpansionFactor, int containerCoreMemoryMb)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.