Class ArrayStrategy


  • public final class ArrayStrategy
    extends java.lang.Object
    • Method Detail

      • getType

        public ArrayStrategyType getType()
        Returns:
        The strategy type for handling large array use cases. For most use cases this should be left null, or should be set to large_array_heuristics. If you're unsure of what your use case needs, reach out to the Extend team for help.
        • large_array_heuristics: Optimized for documents with very large arrays, but where latency matters.

          This strategy uses specialized heuristics around chunking, tables, and merging to handle large arrays efficiently over large documents.

        • large_array_max_context: Optimizes for accuracy over latency in documents with very large arrays.

          This strategy will do multiple passes through the entire document to ensure there is no context loss across any chunks/pages, maximizing accuracy for complex array extraction, but adding material latency.

        • large_array_overlap_context: Balances accuracy and latency in documents with very large arrays.

          This strategy will always maintain surrounding/overlapping page context for every chunk/page that is extracted, eliminating array failure modes from context loss across page boundaries.

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object