Class BaseStructDataType

    • Method Detail

      • addField

        public void addField​(Field field)
      • removeField

        public Field removeField​(String fieldName)
      • clearFields

        public void clearFields()
      • getField

        public Field getField​(String fieldName)
        Description copied from class: StructuredDataType
        Gets the field matching a given name.
        Specified by:
        getField in class StructuredDataType
        Parameters:
        fieldName - The name of a field.
        Returns:
        Returns the matching field, or null if not found.
      • getField

        public Field getField​(int id)
        Description copied from class: StructuredDataType
        Gets the field with the specified id.
        Specified by:
        getField in class StructuredDataType
        Parameters:
        id - the id of the field to return.
        Returns:
        the matching field, or null if not found.
      • hasField

        public boolean hasField​(Field field)
      • hasField

        public boolean hasField​(String name)
      • getFieldCount

        public int getFieldCount()
      • getCompressor

        @Deprecated
        public com.yahoo.compress.Compressor getCompressor()
        Deprecated.
        Will go away on Vespa 8
        Returns the compressor to use to compress data of this type
      • getCompressionConfig

        @Deprecated
        public CompressionConfig getCompressionConfig()
        Deprecated.
        Will go away on Vespa 8
        Returns a view of the configuration of the compressor used to compress this type
      • setCompressionConfig

        @Deprecated
        public void setCompressionConfig​(CompressionConfig config)
        Deprecated.
        Ignored and will go away on Vespa 8
        Set the config to the compressor used to compress data of this type