public final class File
extends java.lang.Object
MPI_File
.Constructor and Description |
---|
File(Comm comm,
java.lang.String filename,
int amode)
Java binding of
MPI_FILE_OPEN using MPI_INFO_NULL . |
File(Comm comm,
java.lang.String filename,
int amode,
Info info)
Java binding of
MPI_FILE_OPEN . |
Modifier and Type | Method and Description |
---|---|
void |
callErrhandler(int errorCode)
Java binding of the MPI operation
MPI_FILE_CALL_ERRHANDLER . |
void |
close()
Java binding of
MPI_FILE_CLOSE . |
static void |
delete(java.lang.String filename)
Java binding of
MPI_FILE_DELETE using MPI_INFO_NULL . |
static void |
delete(java.lang.String filename,
Info info)
Java binding of
MPI_FILE_DELETE . |
int |
getAMode()
Java binding of
MPI_FILE_GET_AMODE . |
boolean |
getAtomicity()
Java binding of
MPI_FILE_GET_ATOMICITY . |
long |
getByteOffset(long offset)
Java binding of
MPI_FILE_GET_BYTE_OFFSET . |
Errhandler |
getErrhandler()
Java binding of the MPI operation
MPI_FILE_GET_ERRHANDLER . |
Group |
getGroup()
Java binding of
MPI_FILE_GET_GROUP . |
Info |
getInfo()
Java binding of
MPI_FILE_GET_INFO . |
long |
getPosition()
Java binding of
MPI_FILE_GET_POSITION . |
long |
getPositionShared()
Java binding of
MPI_FILE_GET_POSITION_SHARED . |
long |
getSize()
Java binding of
MPI_FILE_GET_SIZE . |
int |
getTypeExtent(Datatype type)
Java binding of
MPI_FILE_GET_TYPE_EXTENT . |
FileView |
getView()
Java binding of
MPI_FILE_GET_VIEW . |
Request |
iRead(java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IREAD . |
Request |
iReadAll(java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IREAD_ALL . |
Request |
iReadAt(long offset,
java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IREAD_AT . |
Request |
iReadAtAll(long offset,
java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IREAD_AT_ALL . |
Request |
iReadShared(java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IREAD_SHARED . |
Request |
iWrite(java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IWRITE . |
Request |
iWriteAll(java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IWRITE_ALL . |
Request |
iWriteAt(long offset,
java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IWRITE_AT . |
Request |
iWriteAtAll(long offset,
java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IWRITE_AT_ALL . |
Request |
iWriteShared(java.nio.Buffer buf,
int count,
Datatype type)
Java binding of
MPI_FILE_IWRITE_SHARED . |
void |
preallocate(long size)
Java binding of
MPI_FILE_PREALLOCATE . |
Status |
read(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ . |
Status |
readAll(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_ALL . |
void |
readAllBegin(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_ALL_BEGIN . |
Status |
readAllEnd(java.lang.Object buf)
Java binding of
MPI_FILE_READ_ALL_END . |
Status |
readAt(long offset,
java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_AT . |
Status |
readAtAll(long offset,
java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_AT_ALL . |
void |
readAtAllBegin(long offset,
java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_AT_ALL_BEGIN . |
Status |
readAtAllEnd(java.lang.Object buf)
Java binding of
MPI_FILE_READ_AT_ALL_END . |
Status |
readOrdered(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_ORDERED . |
void |
readOrderedBegin(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_ORDERED_BEGIN . |
Status |
readOrderedEnd(java.lang.Object buf)
Java binding of
MPI_FILE_READ_ORDERED_END . |
Status |
readShared(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_READ_SHARED . |
void |
seek(long offset,
int whence)
Java binding of
MPI_FILE_SEEK . |
void |
seekShared(long offset,
int whence)
Java binding of
MPI_FILE_SEEK_SHARED . |
void |
setAtomicity(boolean atomicity)
Java binding of
MPI_FILE_SET_ATOMICITY . |
void |
setErrhandler(Errhandler errhandler)
Java binding of the MPI operation
MPI_FILE_SET_ERRHANDLER . |
void |
setInfo(Info info)
Java binding of
MPI_FILE_SET_INFO . |
void |
setSize(long size)
Java binding of
MPI_FILE_SET_SIZE . |
void |
setView(long disp,
Datatype etype,
Datatype filetype,
java.lang.String datarep)
Java binding of
MPI_FILE_SET_VIEW using MPI_INFO_NULL . |
void |
setView(long disp,
Datatype etype,
Datatype filetype,
java.lang.String datarep,
Info info)
Java binding of
MPI_FILE_SET_VIEW . |
void |
sync()
Java binding of
MPI_FILE_SYNC . |
Status |
write(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE . |
Status |
writeAll(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_ALL . |
void |
writeAllBegin(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_ALL_BEGIN . |
Status |
writeAllEnd(java.lang.Object buf)
Java binding of
MPI_FILE_WRITE_ALL_END . |
Status |
writeAt(long offset,
java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_AT . |
Status |
writeAtAll(long offset,
java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_AT_ALL . |
void |
writeAtAllBegin(long offset,
java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_AT_ALL_BEGIN . |
Status |
writeAtAllEnd(java.lang.Object buf)
Java binding of
MPI_FILE_WRITE_AT_ALL_END . |
Status |
writeOrdered(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_ORDERED . |
void |
writeOrderedBegin(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_ORDERED_BEGIN . |
Status |
writeOrderedEnd(java.lang.Object buf)
Java binding of
MPI_FILE_WRITE_ORDERED_END . |
Status |
writeShared(java.lang.Object buf,
int count,
Datatype type)
Java binding of
MPI_FILE_WRITE_SHARED . |
public File(Comm comm, java.lang.String filename, int amode) throws MPIException
MPI_FILE_OPEN
using MPI_INFO_NULL
.comm
- communicatorfilename
- name of the file to openamode
- file access modeMPIException
- Signals that an MPI exception of some sort has occurred.public File(Comm comm, java.lang.String filename, int amode, Info info) throws MPIException
MPI_FILE_OPEN
.comm
- communicatorfilename
- name of the file to openamode
- file access modeinfo
- info objectMPIException
- Signals that an MPI exception of some sort has occurred.public void close() throws MPIException
MPI_FILE_CLOSE
.MPIException
- Signals that an MPI exception of some sort has occurred.public static void delete(java.lang.String filename) throws MPIException
MPI_FILE_DELETE
using MPI_INFO_NULL
.filename
- name of the file to deleteMPIException
- Signals that an MPI exception of some sort has occurred.public static void delete(java.lang.String filename, Info info) throws MPIException
MPI_FILE_DELETE
.filename
- name of the file to deleteinfo
- info objectMPIException
- Signals that an MPI exception of some sort has occurred.public void setSize(long size) throws MPIException
MPI_FILE_SET_SIZE
.size
- size to truncate or expand fileMPIException
- Signals that an MPI exception of some sort has occurred.public void preallocate(long size) throws MPIException
MPI_FILE_PREALLOCATE
.size
- size to preallocate fileMPIException
- Signals that an MPI exception of some sort has occurred.public long getSize() throws MPIException
MPI_FILE_GET_SIZE
.MPIException
- Signals that an MPI exception of some sort has occurred.public Group getGroup() throws MPIException
MPI_FILE_GET_GROUP
.MPIException
- Signals that an MPI exception of some sort has occurred.public int getAMode() throws MPIException
MPI_FILE_GET_AMODE
.MPIException
- Signals that an MPI exception of some sort has occurred.public void setInfo(Info info) throws MPIException
MPI_FILE_SET_INFO
.info
- info objectMPIException
- Signals that an MPI exception of some sort has occurred.public Info getInfo() throws MPIException
MPI_FILE_GET_INFO
.MPIException
- Signals that an MPI exception of some sort has occurred.public void setView(long disp, Datatype etype, Datatype filetype, java.lang.String datarep) throws MPIException
MPI_FILE_SET_VIEW
using MPI_INFO_NULL
.disp
- displacementetype
- elementary datatypefiletype
- filetypedatarep
- data representationMPIException
- Signals that an MPI exception of some sort has occurred.public void setView(long disp, Datatype etype, Datatype filetype, java.lang.String datarep, Info info) throws MPIException
MPI_FILE_SET_VIEW
.disp
- displacementetype
- elementary datatypefiletype
- filetypedatarep
- data representationinfo
- info objectMPIException
- Signals that an MPI exception of some sort has occurred.public FileView getView()
MPI_FILE_GET_VIEW
.public Status readAt(long offset, java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_AT
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status readAtAll(long offset, java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_AT_ALL
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeAt(long offset, java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_AT
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeAtAll(long offset, java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_AT_ALL
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iReadAt(long offset, java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IREAD_AT
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iReadAtAll(long offset, java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IREAD_AT_ALL
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iWriteAt(long offset, java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IWRITE_AT
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iWriteAtAll(long offset, java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IWRITE_AT_ALL
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status read(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status readAll(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_ALL
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status write(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeAll(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_ALL
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iRead(java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IREAD
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iReadAll(java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IREAD_ALL
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iWrite(java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IWRITE
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iWriteAll(java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IWRITE_ALL
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public void seek(long offset, int whence) throws MPIException
MPI_FILE_SEEK
.offset
- file offsetwhence
- update modeMPIException
- Signals that an MPI exception of some sort has occurred.public long getPosition() throws MPIException
MPI_FILE_GET_POSITION
.MPIException
- Signals that an MPI exception of some sort has occurred.public long getByteOffset(long offset) throws MPIException
MPI_FILE_GET_BYTE_OFFSET
.offset
- offsetMPIException
- Signals that an MPI exception of some sort has occurred.public Status readShared(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_SHARED
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeShared(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_SHARED
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iReadShared(java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IREAD_SHARED
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Request iWriteShared(java.nio.Buffer buf, int count, Datatype type) throws MPIException
MPI_FILE_IWRITE_SHARED
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status readOrdered(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_ORDERED
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeOrdered(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_ORDERED
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public void seekShared(long offset, int whence) throws MPIException
MPI_FILE_SEEK_SHARED
.offset
- file offsetwhence
- update modeMPIException
- Signals that an MPI exception of some sort has occurred.public long getPositionShared() throws MPIException
MPI_FILE_GET_POSITION_SHARED
.MPIException
- Signals that an MPI exception of some sort has occurred.public void readAtAllBegin(long offset, java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_AT_ALL_BEGIN
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status readAtAllEnd(java.lang.Object buf) throws MPIException
MPI_FILE_READ_AT_ALL_END
.buf
- bufferMPIException
- Signals that an MPI exception of some sort has occurred.public void writeAtAllBegin(long offset, java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_AT_ALL_BEGIN
.offset
- file offsetbuf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeAtAllEnd(java.lang.Object buf) throws MPIException
MPI_FILE_WRITE_AT_ALL_END
.buf
- bufferMPIException
- Signals that an MPI exception of some sort has occurred.public void readAllBegin(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_ALL_BEGIN
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status readAllEnd(java.lang.Object buf) throws MPIException
MPI_FILE_READ_ALL_END
.buf
- bufferMPIException
- Signals that an MPI exception of some sort has occurred.public void writeAllBegin(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_ALL_BEGIN
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeAllEnd(java.lang.Object buf) throws MPIException
MPI_FILE_WRITE_ALL_END
.buf
- bufferMPIException
- Signals that an MPI exception of some sort has occurred.public void readOrderedBegin(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_READ_ORDERED_BEGIN
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status readOrderedEnd(java.lang.Object buf) throws MPIException
MPI_FILE_READ_ORDERED_END
.buf
- bufferMPIException
- Signals that an MPI exception of some sort has occurred.public void writeOrderedBegin(java.lang.Object buf, int count, Datatype type) throws MPIException
MPI_FILE_WRITE_ORDERED_BEGIN
.buf
- buffercount
- number of items in buffertype
- datatype of each buffer elementMPIException
- Signals that an MPI exception of some sort has occurred.public Status writeOrderedEnd(java.lang.Object buf) throws MPIException
MPI_FILE_WRITE_ORDERED_END
.buf
- bufferMPIException
- Signals that an MPI exception of some sort has occurred.public int getTypeExtent(Datatype type) throws MPIException
MPI_FILE_GET_TYPE_EXTENT
.type
- type of dataMPIException
- Signals that an MPI exception of some sort has occurred.public void setAtomicity(boolean atomicity) throws MPIException
MPI_FILE_SET_ATOMICITY
.atomicity
- true to set atomic mode, false to set nonatomic modeMPIException
- Signals that an MPI exception of some sort has occurred.public boolean getAtomicity() throws MPIException
MPI_FILE_GET_ATOMICITY
.MPIException
- Signals that an MPI exception of some sort has occurred.public void sync() throws MPIException
MPI_FILE_SYNC
.MPIException
- Signals that an MPI exception of some sort has occurred.public void setErrhandler(Errhandler errhandler) throws MPIException
MPI_FILE_SET_ERRHANDLER
.errhandler
- new MPI error handler for fileMPIException
- Signals that an MPI exception of some sort has occurred.public Errhandler getErrhandler() throws MPIException
MPI_FILE_GET_ERRHANDLER
.MPIException
- Signals that an MPI exception of some sort has occurred.public void callErrhandler(int errorCode) throws MPIException
MPI_FILE_CALL_ERRHANDLER
.errorCode
- error codeMPIException
- Signals that an MPI exception of some sort has occurred.