Class DynamicSummaryTransformUtils

java.lang.Object
com.yahoo.schema.processing.DynamicSummaryTransformUtils

public class DynamicSummaryTransformUtils extends Object
This class contains utils used when handling summary fields with dynamic transforms during processing and deriving. Originally (before Vespa 8.52), dynamic transforms where only supported for string fields. Due to legacy functionality in the backend docsum framework, such summary fields are in some cases added as extra document fields and populated in indexing scripts. This is something we want to avoid in the future, but it might not be entirely possible before Vespa 9. With the introduction of dynamic transform for array of string fields, we move in the right direction and avoid adding extra document fields with indexing script population for this type. Instead, we configure the dynamic transform in the backend to use the original source field directly. See SummaryTransform.isDynamic() for which transforms this applies to.
  • Constructor Details

    • DynamicSummaryTransformUtils

      public DynamicSummaryTransformUtils()
  • Method Details

    • hasSupportedType

      public static boolean hasSupportedType(SummaryField field)
    • isSupportedType

      public static boolean isSupportedType(com.yahoo.document.DataType type)
    • summaryFieldIsPopulatedBySourceField

      public static boolean summaryFieldIsPopulatedBySourceField(com.yahoo.document.DataType sourceFieldType)
      Whether a summary field must be populated by the source field with the given type in an indexing script.
    • summaryFieldIsRequiredInDocumentType

      public static boolean summaryFieldIsRequiredInDocumentType(SummaryField summaryField)
      Whether a summary field is required as an extra field in the document type.
    • getSource

      public static String getSource(SummaryField summaryField, Schema schema)