public class FragmentInfo
extends java.lang.Object
Constructor and Description |
---|
FragmentInfo(Context ctx,
java.lang.String uri) |
FragmentInfo(Context ctx,
java.lang.String uri,
EncryptionType encryptionType,
java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dump()
Gets the URI of the fragment to vacuum with the given index.
|
long |
getCellNum(long fragmentID)
In the case of sparse fragments, this is the number of non-empty cells in the fragment.
|
boolean |
getDense(long fragmentID)
Returns true if the fragment with the given index is dense.
|
long |
getFragmentNum()
Returns the number of fragments.
|
long |
getFragmentSize(long fragmentID)
Returns the size of the fragment with the given index.
|
java.lang.String |
getFragmentURI(long fragmentID)
Returns the URI of the fragment with the given index.
|
Pair |
getNonEmptyDomainFromIndex(long fragmentID,
long dimensionID)
Retrieves the non-empty domain from a given fragment for a given dimension name.
|
Pair |
getNonEmptyDomainFromName(long fragmentID,
java.lang.String dimensionName)
Retrieves the non-empty domain from a given fragment for a given dimension name.
|
Pair |
getNonEmptyDomainVarFromIndex(long fragmentID,
long dimensionID)
Retrieves the non-empty domain from a fragment for a given dimension index.
|
Pair |
getNonEmptyDomainVarFromName(long fragmentID,
java.lang.String dimensionName)
Retrieves the non-empty domain from a fragment for a given dimension name.
|
Pair<java.lang.Long,java.lang.Long> |
getNonEmptyDomainVarSizeFromIndex(long fragmentID,
long dimensionID)
Retrieves the non-empty domain range sizes from a fragment for a given dimension index.
|
Pair<java.lang.Long,java.lang.Long> |
getNonEmptyDomainVarSizeFromName(long fragmentID,
java.lang.String dimensionName)
Retrieves the non-empty domain range sizes from a fragment for a given dimension name.
|
boolean |
getSparse(long fragmentID)
Returns true if the fragment with the given index is sparse.
|
Pair<java.lang.Long,java.lang.Long> |
getTimestampRange(long fragmentID)
Returns the timestamp range of the fragment with the given index.
|
long |
getToVacuumNum()
Gets the number of fragments to vacuum.
|
java.lang.String |
getToVacuumUri(long fragmentID)
Gets the URI of the fragment to vacuum with the given index.
|
long |
getUnconsolidatedMetadataNum()
Gets the number of fragments with unconsolidated metadata.
|
long |
getVersion(long fragmentID)
Retrieves the format version of a fragment.
|
boolean |
hasConsolidatedMetadata(long fragmentID)
Checks if a fragment has consolidated metadata.
|
public FragmentInfo(Context ctx, java.lang.String uri) throws TileDBError
ctx
- uri
- TileDBError
public FragmentInfo(Context ctx, java.lang.String uri, EncryptionType encryptionType, java.lang.String key) throws TileDBError
ctx
- uri
- key
- The encryption keyTileDBError
public Pair<java.lang.Long,java.lang.Long> getNonEmptyDomainVarSizeFromIndex(long fragmentID, long dimensionID) throws TileDBError
fragmentID
- The fragment IDdimensionID
- The dimension nameTileDBError
public Pair<java.lang.Long,java.lang.Long> getNonEmptyDomainVarSizeFromName(long fragmentID, java.lang.String dimensionName) throws TileDBError
fragmentID
- The fragment IDdimensionName
- The dimension nameTileDBError
public long getFragmentNum() throws TileDBError
TileDBError
public java.lang.String getFragmentURI(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public long getFragmentSize(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public boolean getDense(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public boolean getSparse(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public Pair<java.lang.Long,java.lang.Long> getTimestampRange(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public Pair getNonEmptyDomainFromIndex(long fragmentID, long dimensionID) throws TileDBError
fragmentID
- The fragment IDdimensionID
- The dimension nameTileDBError
public Pair getNonEmptyDomainFromName(long fragmentID, java.lang.String dimensionName) throws TileDBError
fragmentID
- The fragment IDdimensionName
- The dimension nameTileDBError
public Pair getNonEmptyDomainVarFromIndex(long fragmentID, long dimensionID) throws TileDBError
fragmentID
- The fragment IDdimensionID
- The dimension IDTileDBError
public Pair getNonEmptyDomainVarFromName(long fragmentID, java.lang.String dimensionName) throws TileDBError
fragmentID
- The fragment IDdimensionName
- The dimension nameTileDBError
public long getCellNum(long fragmentID) throws TileDBError
In the case of dense fragments, TileDB may add fill values to populate partially populated tiles. Those fill values are counted in the returned number of cells. In other words, the cell number is derived from the number of *integral* tiles written in the file.
fragmentID
- The fragment IDTileDBError
public long getVersion(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public boolean hasConsolidatedMetadata(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public long getUnconsolidatedMetadataNum() throws TileDBError
TileDBError
public long getToVacuumNum() throws TileDBError
TileDBError
public java.lang.String getToVacuumUri(long fragmentID) throws TileDBError
fragmentID
- The fragment IDTileDBError
public java.lang.String dump() throws TileDBError
TileDBError