Package io.tiledb.java.api
Class ArraySchemaEvolution
- java.lang.Object
-
- io.tiledb.java.api.ArraySchemaEvolution
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ArraySchemaEvolution extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ArraySchemaEvolution(Context ctx)ArraySchemaEvolution(Context ctx, SWIGTYPE_p_p_tiledb_array_schema_evolution_t evolutionpp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(Attribute att)Adds an Attribute to the array schema evolution.voidclose()voiddropAttribute(Attribute att)Drops an Attribute from the array schema evolution.voiddropAttribute(java.lang.String attName)Drops an Attribute from the array schema evolution.voidevolveArray(java.lang.String uri)Evolves the schema of an array.protected ContextgetCtx()SWIGTYPE_p_tiledb_array_schema_evolution_tgetEvolutionp()voidsetTimeStampRange(java.math.BigInteger high, java.math.BigInteger low)Sets timestamp range in an array schema evolution.
-
-
-
Constructor Detail
-
ArraySchemaEvolution
public ArraySchemaEvolution(Context ctx, SWIGTYPE_p_p_tiledb_array_schema_evolution_t evolutionpp)
-
ArraySchemaEvolution
public ArraySchemaEvolution(Context ctx) throws TileDBError
- Throws:
TileDBError
-
-
Method Detail
-
getEvolutionp
public SWIGTYPE_p_tiledb_array_schema_evolution_t getEvolutionp()
-
getCtx
protected Context getCtx()
-
close
public void close()
- Specified by:
closein interfacejava.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 TileDBErrorDrops 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 TileDBErrorSets timestamp range in an array schema evolution.- Parameters:
high- high value of rangelow- low value of range- Throws:
TileDBError
-
evolveArray
public void evolveArray(java.lang.String uri) throws TileDBErrorEvolves the schema of an array.**Example:** ArraySchemaEvolution schemaEvolution = new ArraySchemaEvolution(ctx); schemaEvolution.dropAttribute("attName"); schemaEvolution.evolveArray("testUri")
- Parameters:
uri-- Throws:
TileDBError
-
-