Package io.tiledb.java.api
Class ConsolidationPlan
- java.lang.Object
-
- io.tiledb.java.api.ConsolidationPlan
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ConsolidationPlan extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ConsolidationPlan(Context ctx, java.math.BigInteger fragmentSize, Array array)
ConstructorConsolidationPlan(Context ctx, java.math.BigInteger fragmentSize, java.lang.String arrayURI)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String
dumpJSONString()
Dumps the consolidation plan in JSON format in a String.java.lang.String
getFragmentURI(java.math.BigInteger nodeIndex, java.math.BigInteger fragmentIndex)
Get the number of fragments for a specific node of a consolidation plan objectlong
getNumFragments(java.math.BigInteger nodeIndex)
Get the number of fragments for a specific node of a consolidation plan objectlong
getNumNodes()
Get the number of nodes of a consolidation plan object
-
-
-
Constructor Detail
-
ConsolidationPlan
public ConsolidationPlan(Context ctx, java.math.BigInteger fragmentSize, java.lang.String arrayURI) throws TileDBError
Constructor- Parameters:
fragmentSize
- The desired fragment sizectx
- TileDB contextarrayURI
- The array to create the plan for- Throws:
TileDBError
-
ConsolidationPlan
public ConsolidationPlan(Context ctx, java.math.BigInteger fragmentSize, Array array) throws TileDBError
Constructor- Parameters:
fragmentSize
- The desired fragment sizectx
- TileDB contextarray
- The array to create the plan for- Throws:
TileDBError
-
-
Method Detail
-
getNumFragments
public long getNumFragments(java.math.BigInteger nodeIndex) throws TileDBError
Get the number of fragments for a specific node of a consolidation plan object- Parameters:
nodeIndex
- The node index- Returns:
- The number of fragments to be retrieved
- Throws:
TileDBError
-
getFragmentURI
public java.lang.String getFragmentURI(java.math.BigInteger nodeIndex, java.math.BigInteger fragmentIndex) throws TileDBError
Get the number of fragments for a specific node of a consolidation plan object- Parameters:
nodeIndex
- The node indexfragmentIndex
- The fragment index- Returns:
- The fragment uri to be retrieved
- Throws:
TileDBError
-
dumpJSONString
public java.lang.String dumpJSONString() throws TileDBError
Dumps the consolidation plan in JSON format in a String.- Returns:
- The output string
- Throws:
TileDBError
-
getNumNodes
public long getNumNodes() throws TileDBError
Get the number of nodes of a consolidation plan object- Returns:
- The number of nodes to be retrieved
- Throws:
TileDBError
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-