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
      • 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