public class ScatteringStoreDataAccessor extends Object
Constructor and Description |
---|
ScatteringStoreDataAccessor(File path,
String file_name,
String first_ext,
long max_slice_size)
Constructs the store data accessor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying data area representation.
|
void |
convertToScatteringStore(File f)
Given a file, this will convert to a scattering file store with files
no larger than the maximum slice size.
|
boolean |
delete()
Deletes the data area resource.
|
boolean |
exists()
Returns true if the resource exists.
|
long |
getSize()
Returns the current size of the underlying data area.
|
void |
open(boolean read_only)
Opens the underlying data area representation.
|
void |
read(long position,
byte[] buf,
int off,
int len)
Reads a block of data from the underlying data area at the given position
into the byte array at the given offset.
|
void |
setSize(long length)
Sets the size of the underlying data area to the given size.
|
void |
synch()
Synchronizes the data area by forcing any data out of the OS buffers onto
the disk.
|
void |
write(long position,
byte[] buf,
int off,
int len)
Writes a block of data to the underlying data area from the byte array at
the given offset.
|
public void convertToScatteringStore(File f) throws IOException
IOException
public void open(boolean read_only) throws IOException
IOException
public void close() throws IOException
IOException
public boolean delete()
public boolean exists()
public void read(long position, byte[] buf, int off, int len) throws IOException
IOException
public void write(long position, byte[] buf, int off, int len) throws IOException
IOException
public void setSize(long length) throws IOException
IOException
public long getSize() throws IOException
IOException
public void synch() throws IOException
IOException
Copyright © 2015. All rights reserved.