Class BaseStructDataType

    • Field Detail

      • fieldIds

        protected java.util.Map<java.lang.Integer,​Field> fieldIds
      • fields

        protected java.util.Map<java.lang.String,​Field> fields
      • compressor

        protected com.yahoo.compress.Compressor compressor
    • Method Detail

      • addField

        public void addField​(Field field)
      • removeField

        public Field removeField​(java.lang.String fieldName)
      • clearFields

        public void clearFields()
      • getField

        public Field getField​(java.lang.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​(java.lang.String name)
      • getFieldCount

        public int getFieldCount()
      • getCompressor

        public com.yahoo.compress.Compressor getCompressor()
        Returns the compressor to use to compress data of this type
      • getCompressionConfig

        public CompressionConfig getCompressionConfig()
        Returns a view of the configuration of the compressor used to compress this type
      • setCompressionConfig

        public void setCompressionConfig​(CompressionConfig config)
        Set the config to the compressor used to compress data of this type