Class ArraySchemaEvolution

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ArraySchemaEvolution
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Method Detail

      • getCtx

        protected Context getCtx()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • addAttribute

        public void addAttribute​(Attribute att)
                          throws TileDBError
        Adds an Attribute to the array schema evolution.

        **Example:** ArraySchemaEvolution schemaEvolution = new ArraySchemaEvolution(ctx); schemaEvolution.addAttribute(new Attribute(ctx, "newAtt", Float.class));

        Parameters:
        att - The Attribute to add
        Throws:
        TileDBError
      • dropAttribute

        public void dropAttribute​(java.lang.String attName)
                           throws TileDBError
        Drops an Attribute from the array schema evolution.

        **Example:** ArraySchemaEvolution schemaEvolution = new ArraySchemaEvolution(ctx); schemaEvolution.dropAttribute("attName");

        Parameters:
        attName - The name of the Attribute to drop
        Throws:
        TileDBError
      • dropAttribute

        public void dropAttribute​(Attribute att)
                           throws TileDBError
        Drops an Attribute from the array schema evolution.

        **Example:** ArraySchemaEvolution schemaEvolution = new ArraySchemaEvolution(ctx); schemaEvolution.dropAttribute("attName");

        Parameters:
        att - The Attribute to drop
        Throws:
        TileDBError
      • setTimeStampRange

        public void setTimeStampRange​(java.math.BigInteger high,
                                      java.math.BigInteger low)
                               throws TileDBError
        Sets timestamp range in an array schema evolution.
        Parameters:
        high - high value of range
        low - low value of range
        Throws:
        TileDBError
      • addEnumeration

        public void addEnumeration​(Enumeration e)
                            throws TileDBError
        Adds an enumeration to an array schema evolution
        Parameters:
        e - The enumeration to be added
        Throws:
        TileDBError
      • dropEnumeration

        public void dropEnumeration​(java.lang.String name)
                             throws TileDBError
        Drops an enumeration from an array schema evolution.
        Parameters:
        name - The name of the enumeration to be dropped
        Throws:
        TileDBError
      • extendEnumeration

        public void extendEnumeration​(Enumeration enumeration)
                               throws TileDBError
        Extends an Enumeration during array schema evolution.
        Parameters:
        enumeration - The Enumeration to extend.
        Throws:
        TileDBError
      • evolveArray

        public void evolveArray​(java.lang.String uri)
                         throws TileDBError
        Evolves the schema of an array.

        **Example:** ArraySchemaEvolution schemaEvolution = new ArraySchemaEvolution(ctx); schemaEvolution.dropAttribute("attName"); schemaEvolution.evolveArray("testUri")

        Parameters:
        uri -
        Throws:
        TileDBError