Package org.moeaframework.analysis.store
Interface Container
public interface Container
A container of blobs.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
if the blob identified by this name exists within this container.void
create()
Creates the underlying, physical container.boolean
exists()
Returnstrue
if the underlying, physical container exists.Gets a reference to a blob with the given name.Gets the reference for this container.Returns all blobs stored in this container.
-
Method Details
-
getReference
Reference getReference()Gets the reference for this container.- Returns:
- the reference
-
getBlob
Gets a reference to a blob with the given name.- Parameters:
name
- the blob name- Returns:
- the blob reference
-
create
Creates the underlying, physical container. Containers are automatically created when writing a blob, so an explicit call to create the container is not required.- Throws:
IOException
- if an I/O error occurred
-
exists
Returnstrue
if the underlying, physical container exists.- Returns:
true
if the container exists;false
otherwise- Throws:
IOException
- if an I/O error occurred
-
listBlobs
Returns all blobs stored in this container.- Returns:
- the blobs in this container
- Throws:
IOException
- if an I/O error occurred
-
contains
Returnstrue
if the blob identified by this name exists within this container.- Parameters:
name
- the blob name- Returns:
true
if the blob exists;false
otherwise- Throws:
IOException
- if an I/O error occurred
-