Package io.tiledb.java.api
Class FileStore
- java.lang.Object
-
- io.tiledb.java.api.FileStore
-
public class FileStore extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileStore()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
bufferExport(Context ctx, java.lang.String filestoreArrayURI, long offset, int bufferLength)
Dump the content of a filestore array into a bufferstatic void
bufferImport(Context ctx, java.lang.String arrayUri, NativeArray buffer, long bufferSize, MimeType mimeType)
Writes 'bufferSize' bytes starting at address buf into filestore arraystatic long
getSize(Context ctx, java.lang.String filestoreURI)
Get the uncompressed size of a filestore arraystatic ArraySchema
schemaCreate(Context ctx, java.lang.String uri)
Creates an array schema based on the properties of the provided URI or a default schema if no URI is providedstatic void
uriExport(Context ctx, java.lang.String filestoreArrayURI, java.lang.String fileURI)
Exports a filestore array into a bare filestatic void
uriImport(Context ctx, java.lang.String filestoreArrayURI, java.lang.String fileURI, MimeType mimeType)
Imports a file into a TileDB filestore array
-
-
-
Method Detail
-
schemaCreate
public static ArraySchema schemaCreate(Context ctx, java.lang.String uri) throws TileDBError
Creates an array schema based on the properties of the provided URI or a default schema if no URI is provided- Parameters:
ctx
- The TileDB context.uri
- The file URI.- Returns:
- The created TileDB array schema.
- Throws:
TileDBError
-
uriImport
public static void uriImport(Context ctx, java.lang.String filestoreArrayURI, java.lang.String fileURI, MimeType mimeType) throws TileDBError
Imports a file into a TileDB filestore array- Parameters:
ctx
- The TileDB Context.filestoreArrayURI
- The array URI.fileURI
- The file URI.mimeType
- The mime type of the file.- Throws:
TileDBError
-
uriExport
public static void uriExport(Context ctx, java.lang.String filestoreArrayURI, java.lang.String fileURI) throws TileDBError
Exports a filestore array into a bare file- Parameters:
ctx
- The TileDB contextfilestoreArrayURI
- The array URIfileURI
- The file URI.- Throws:
TileDBError
-
bufferImport
public static void bufferImport(Context ctx, java.lang.String arrayUri, NativeArray buffer, long bufferSize, MimeType mimeType) throws TileDBError
Writes 'bufferSize' bytes starting at address buf into filestore array- Parameters:
ctx
- The TileDB context.arrayUri
- The array URI.buffer
- The input buffer.bufferSize
- NUmber of bytes to be imported.mimeType
- The mime type of the data.- Throws:
TileDBError
-
bufferExport
public static java.lang.Object bufferExport(Context ctx, java.lang.String filestoreArrayURI, long offset, int bufferLength) throws TileDBError
Dump the content of a filestore array into a buffer- Parameters:
ctx
- The TileDB context.filestoreArrayURI
- The array URI.offset
- The offset at which we should start exporting from the array.bufferLength
- The number of bytes to be exported into the buffer.- Returns:
- Throws:
TileDBError
-
getSize
public static long getSize(Context ctx, java.lang.String filestoreURI) throws TileDBError
Get the uncompressed size of a filestore array- Parameters:
ctx
- The TileDB contect.filestoreURI
- The array URI.- Returns:
- The uncompressed size of the filestore array.
- Throws:
TileDBError
-
-