| java.lang.Object com.mckoi.store.ScatteringStoreDataAccessor
ScatteringStoreDataAccessor | public class ScatteringStoreDataAccessor implements StoreDataAccessor(Code) | | An implementation of StoreDataAccessor that scatters the addressible
data resource across multiple files in the file system. When one store
data resource reaches a certain threshold size, the content 'flows' over
to the next file.
author: Tobias Downer |
Method Summary | |
public void | close() | public void | convertToScatteringStore(File f) Given a file, this will convert to a scattering file store with files
no larger than the maximum slice size. | public boolean | delete() | public boolean | exists() | public long | getSize() | public void | open(boolean read_only) | public void | read(long position, byte[] buf, int off, int len) | public void | setSize(long length) | public void | synch() | public void | write(long position, byte[] buf, int off, int len) |
ScatteringStoreDataAccessor | public ScatteringStoreDataAccessor(File path, String file_name, String first_ext, long max_slice_size)(Code) | | Constructs the store data accessor.
|
convertToScatteringStore | public void convertToScatteringStore(File f) throws IOException(Code) | | Given a file, this will convert to a scattering file store with files
no larger than the maximum slice size.
|
delete | public boolean delete()(Code) | | |
exists | public boolean exists()(Code) | | |
read | public void read(long position, byte[] buf, int off, int len) throws IOException(Code) | | |
write | public void write(long position, byte[] buf, int off, int len) throws IOException(Code) | | |
|
|