Class BaseStructDataType

java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
All Implemented Interfaces:
Serializable, Cloneable, Comparable<DataType>
Direct Known Subclasses:
StructDataType

public abstract class BaseStructDataType extends StructuredDataType
Date: Apr 15, 2008
Author:
humbe
See Also:
  • Field Details

  • Method Details

    • assign

      protected void assign(BaseStructDataType type)
    • clone

      public BaseStructDataType clone()
      Overrides:
      clone in class DataType
    • 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)
    • getFields

      public Collection<Field> getFields()
      Specified by:
      getFields in class StructuredDataType
    • 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