public interface PhysicalGraph
Modifier and Type | Method and Description |
---|---|
Block |
loadBlock(java.lang.String blockPath)
Retrieves a
Block instance, given its path on disk. |
Metadata |
loadMetadata(java.lang.String blockPath)
|
java.lang.String |
storeBlock(Block block)
Stores a
Block on disk. |
void |
storeMetadata(Metadata metadata,
java.lang.String blockPath)
Inserts Metadata into the file system.
|
Block loadBlock(java.lang.String blockPath) throws java.io.IOException, galileo.serialization.SerializationException
Block
instance, given its path on disk.blockPath
- the physical (on-disk) location of the Block to load.java.io.IOException
galileo.serialization.SerializationException
Metadata loadMetadata(java.lang.String blockPath) throws java.io.IOException, galileo.serialization.SerializationException
blockPath
- the physical location of the Block to load metadata
from.java.io.IOException
galileo.serialization.SerializationException
java.lang.String storeBlock(Block block) throws FileSystemException, java.io.IOException
Block
on disk. The location of the Block will be
determined by the particular FileSystem implementation being used rather
than as a method parameter, so only the Block itself is provided.block
- the Block instance to persist to disk.FileSystemException
java.io.IOException
void storeMetadata(Metadata metadata, java.lang.String blockPath) throws FileSystemException, java.io.IOException
metadata
- the Metadata
to 'store,' which may just involve
updating index structures.blockPath
- the on-disk path of the Block the Metadata being stored
belongs to.FileSystemException
java.io.IOException