|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.io.AxionFileSystem
public class AxionFileSystem
Axion File System, creates file input/output streams and wraps then into a custom BufferedDataStream, which improves perfermance significantly.
Nested Class Summary | |
---|---|
class |
AxionFileSystem.PidxList
|
Constructor Summary | |
---|---|
AxionFileSystem()
|
Method Summary | |
---|---|
void |
closeInputStream(InputStream in)
|
void |
closeOutputStream(OutputStream out)
|
BufferedDataOutputStream |
createBufferedDOS(File file)
create a new file and wrap wrap the stream with BufferedDataOutputStream which improves perfermance significantly. |
DataOutputStream |
createDataOutputSteam(File file)
|
boolean |
createNewFile(File file)
|
ObjectOutputStream |
createObjectOutputSteam(File file)
|
AxionFileSystem.PidxList |
newPidxList(int count,
File file,
boolean readonly)
|
AxionInputStream |
open(File file)
Open the file in read only mode. |
AxionOutputStream |
open(File file,
boolean overwrite)
Open file in append mode if overwrite is false, otherwise create new file. |
AxionOutputStream |
openAppend(File file)
Open file in append mode, position will be set to the end of file. |
BufferedDataInputStream |
openBufferedDIS(File file)
Open file in read only mode, position will be set to 0. |
BufferedDataOutputStream |
openBufferedDOS(File file,
long startPos)
Open a outputsteam and points the file pointer to a given start position in the file. |
BufferedDataOutputStream |
openBufferedDOSAppend(File file,
int bufferSize)
Open file in append mode, position will be set to the end of file. |
DataInputStream |
openDataInputSteam(File file)
|
ObjectInputStream |
openObjectInputSteam(File file)
|
org.apache.commons.collections.primitives.IntList |
parseIntFile(File file)
Reads a list of int values from a file. |
AxionFileSystem.PidxList |
parseLongPidx(File file,
boolean readOnly)
Reads a list of long values from a file. |
AxionFileSystem.PidxList |
parseUnsignedIntPidx(File file,
boolean readOnly)
|
void |
readAll(File file,
byte[] rawdata)
|
void |
writeIntFile(File file,
org.apache.commons.collections.primitives.IntList list)
Writes a list of int values to a file. |
void |
writeUnsignedInt(BufferedDataOutputStream out,
long offset,
int value)
Updates an UnsignedInt value to a file. |
void |
writeUnsignedIntFile(File file,
org.apache.commons.collections.primitives.LongList list)
Writes a list of long values to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxionFileSystem()
Method Detail |
---|
public void closeInputStream(InputStream in)
public void closeOutputStream(OutputStream out)
public BufferedDataOutputStream createBufferedDOS(File file) throws AxionException
AxionException
public boolean createNewFile(File file) throws AxionException
AxionException
public ObjectOutputStream createObjectOutputSteam(File file) throws IOException
IOException
public DataOutputStream createDataOutputSteam(File file) throws IOException
IOException
public AxionFileSystem.PidxList newPidxList(int count, File file, boolean readonly) throws AxionException
AxionException
public AxionInputStream open(File file) throws IOException
IOException
public AxionOutputStream open(File file, boolean overwrite) throws IOException
IOException
public AxionOutputStream openAppend(File file) throws IOException
IOException
public BufferedDataInputStream openBufferedDIS(File file) throws AxionException
AxionException
public BufferedDataOutputStream openBufferedDOS(File file, long startPos) throws AxionException
AxionException
public BufferedDataOutputStream openBufferedDOSAppend(File file, int bufferSize) throws AxionException
AxionException
public ObjectInputStream openObjectInputSteam(File file) throws IOException
IOException
public DataInputStream openDataInputSteam(File file) throws IOException
IOException
public org.apache.commons.collections.primitives.IntList parseIntFile(File file) throws AxionException
file
- the File
to read from
AxionException
public AxionFileSystem.PidxList parseLongPidx(File file, boolean readOnly) throws AxionException
file
- the File
to read from
AxionException
public AxionFileSystem.PidxList parseUnsignedIntPidx(File file, boolean readOnly) throws AxionException
AxionException
public void readAll(File file, byte[] rawdata) throws AxionException
AxionException
public void writeIntFile(File file, org.apache.commons.collections.primitives.IntList list) throws AxionException
file
- the File
to write to
AxionException
public void writeUnsignedInt(BufferedDataOutputStream out, long offset, int value) throws AxionException
raf
- the File
to append tooffset
- the pidx file offset to writevalue
- data file pointer for a given pidx offset
AxionException
public void writeUnsignedIntFile(File file, org.apache.commons.collections.primitives.LongList list) throws AxionException
file
- the File
to write to
AxionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |