Package mpi
Class File
java.lang.Object
mpi.File
This class represents
MPI_File.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallErrhandler(int errorCode) Java binding of the MPI operationMPI_FILE_CALL_ERRHANDLER.voidclose()Java binding ofMPI_FILE_CLOSE.static voidJava binding ofMPI_FILE_DELETEusingMPI_INFO_NULL.static voidJava binding ofMPI_FILE_DELETE.intgetAMode()Java binding ofMPI_FILE_GET_AMODE.booleanJava binding ofMPI_FILE_GET_ATOMICITY.longgetByteOffset(long offset) Java binding ofMPI_FILE_GET_BYTE_OFFSET.Java binding of the MPI operationMPI_FILE_GET_ERRHANDLER.getGroup()Java binding ofMPI_FILE_GET_GROUP.getInfo()Java binding ofMPI_FILE_GET_INFO.longJava binding ofMPI_FILE_GET_POSITION.longJava binding ofMPI_FILE_GET_POSITION_SHARED.longgetSize()Java binding ofMPI_FILE_GET_SIZE.intgetTypeExtent(Datatype type) Java binding ofMPI_FILE_GET_TYPE_EXTENT.getView()Java binding ofMPI_FILE_GET_VIEW.Java binding ofMPI_FILE_IREAD.Java binding ofMPI_FILE_IREAD_ALL.Java binding ofMPI_FILE_IREAD_AT.iReadAtAll(long offset, Buffer buf, int count, Datatype type) Java binding ofMPI_FILE_IREAD_AT_ALL.iReadShared(Buffer buf, int count, Datatype type) Java binding ofMPI_FILE_IREAD_SHARED.Java binding ofMPI_FILE_IWRITE.Java binding ofMPI_FILE_IWRITE_ALL.Java binding ofMPI_FILE_IWRITE_AT.iWriteAtAll(long offset, Buffer buf, int count, Datatype type) Java binding ofMPI_FILE_IWRITE_AT_ALL.iWriteShared(Buffer buf, int count, Datatype type) Java binding ofMPI_FILE_IWRITE_SHARED.voidpreallocate(long size) Java binding ofMPI_FILE_PREALLOCATE.Java binding ofMPI_FILE_READ.Java binding ofMPI_FILE_READ_ALL.voidreadAllBegin(Object buf, int count, Datatype type) Java binding ofMPI_FILE_READ_ALL_BEGIN.readAllEnd(Object buf) Java binding ofMPI_FILE_READ_ALL_END.Java binding ofMPI_FILE_READ_AT.Java binding ofMPI_FILE_READ_AT_ALL.voidreadAtAllBegin(long offset, Object buf, int count, Datatype type) Java binding ofMPI_FILE_READ_AT_ALL_BEGIN.readAtAllEnd(Object buf) Java binding ofMPI_FILE_READ_AT_ALL_END.readOrdered(Object buf, int count, Datatype type) Java binding ofMPI_FILE_READ_ORDERED.voidreadOrderedBegin(Object buf, int count, Datatype type) Java binding ofMPI_FILE_READ_ORDERED_BEGIN.readOrderedEnd(Object buf) Java binding ofMPI_FILE_READ_ORDERED_END.readShared(Object buf, int count, Datatype type) Java binding ofMPI_FILE_READ_SHARED.voidseek(long offset, int whence) Java binding ofMPI_FILE_SEEK.voidseekShared(long offset, int whence) Java binding ofMPI_FILE_SEEK_SHARED.voidsetAtomicity(boolean atomicity) Java binding ofMPI_FILE_SET_ATOMICITY.voidsetErrhandler(Errhandler errhandler) Java binding of the MPI operationMPI_FILE_SET_ERRHANDLER.voidJava binding ofMPI_FILE_SET_INFO.voidsetSize(long size) Java binding ofMPI_FILE_SET_SIZE.voidJava binding ofMPI_FILE_SET_VIEWusingMPI_INFO_NULL.voidJava binding ofMPI_FILE_SET_VIEW.voidsync()Java binding ofMPI_FILE_SYNC.Java binding ofMPI_FILE_WRITE.Java binding ofMPI_FILE_WRITE_ALL.voidwriteAllBegin(Object buf, int count, Datatype type) Java binding ofMPI_FILE_WRITE_ALL_BEGIN.writeAllEnd(Object buf) Java binding ofMPI_FILE_WRITE_ALL_END.Java binding ofMPI_FILE_WRITE_AT.writeAtAll(long offset, Object buf, int count, Datatype type) Java binding ofMPI_FILE_WRITE_AT_ALL.voidwriteAtAllBegin(long offset, Object buf, int count, Datatype type) Java binding ofMPI_FILE_WRITE_AT_ALL_BEGIN.writeAtAllEnd(Object buf) Java binding ofMPI_FILE_WRITE_AT_ALL_END.writeOrdered(Object buf, int count, Datatype type) Java binding ofMPI_FILE_WRITE_ORDERED.voidwriteOrderedBegin(Object buf, int count, Datatype type) Java binding ofMPI_FILE_WRITE_ORDERED_BEGIN.writeOrderedEnd(Object buf) Java binding ofMPI_FILE_WRITE_ORDERED_END.writeShared(Object buf, int count, Datatype type) Java binding ofMPI_FILE_WRITE_SHARED.
-
Constructor Details
-
File
Java binding ofMPI_FILE_OPENusingMPI_INFO_NULL.- Parameters:
comm- communicatorfilename- name of the file to openamode- file access mode- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
File
Java binding ofMPI_FILE_OPEN.- Parameters:
comm- communicatorfilename- name of the file to openamode- file access modeinfo- info object- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
-
Method Details
-
close
Java binding ofMPI_FILE_CLOSE.- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
delete
Java binding ofMPI_FILE_DELETEusingMPI_INFO_NULL.- Parameters:
filename- name of the file to delete- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
delete
Java binding ofMPI_FILE_DELETE.- Parameters:
filename- name of the file to deleteinfo- info object- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setSize
Java binding ofMPI_FILE_SET_SIZE.- Parameters:
size- size to truncate or expand file- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
preallocate
Java binding ofMPI_FILE_PREALLOCATE.- Parameters:
size- size to preallocate file- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getSize
Java binding ofMPI_FILE_GET_SIZE.- Returns:
- size of file in bytes
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getGroup
Java binding ofMPI_FILE_GET_GROUP.- Returns:
- group which opened the file
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getAMode
Java binding ofMPI_FILE_GET_AMODE.- Returns:
- file access mode to open the file
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setInfo
Java binding ofMPI_FILE_SET_INFO.- Parameters:
info- info object- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getInfo
Java binding ofMPI_FILE_GET_INFO.- Returns:
- new info object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setView
public void setView(long disp, Datatype etype, Datatype filetype, String datarep) throws MPIException Java binding ofMPI_FILE_SET_VIEWusingMPI_INFO_NULL.- Parameters:
disp- displacementetype- elementary datatypefiletype- filetypedatarep- data representation- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setView
public void setView(long disp, Datatype etype, Datatype filetype, String datarep, Info info) throws MPIException Java binding ofMPI_FILE_SET_VIEW.- Parameters:
disp- displacementetype- elementary datatypefiletype- filetypedatarep- data representationinfo- info object- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getView
Java binding ofMPI_FILE_GET_VIEW.- Returns:
- file view
-
readAt
Java binding ofMPI_FILE_READ_AT.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readAtAll
Java binding ofMPI_FILE_READ_AT_ALL.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeAt
Java binding ofMPI_FILE_WRITE_AT.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeAtAll
Java binding ofMPI_FILE_WRITE_AT_ALL.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iReadAt
Java binding ofMPI_FILE_IREAD_AT.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iReadAtAll
Java binding ofMPI_FILE_IREAD_AT_ALL.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iWriteAt
Java binding ofMPI_FILE_IWRITE_AT.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iWriteAtAll
Java binding ofMPI_FILE_IWRITE_AT_ALL.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
read
Java binding ofMPI_FILE_READ.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readAll
Java binding ofMPI_FILE_READ_ALL.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
write
Java binding ofMPI_FILE_WRITE.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeAll
Java binding ofMPI_FILE_WRITE_ALL.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iRead
Java binding ofMPI_FILE_IREAD.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iReadAll
Java binding ofMPI_FILE_IREAD_ALL.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iWrite
Java binding ofMPI_FILE_IWRITE.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
iWriteAll
Java binding ofMPI_FILE_IWRITE_ALL.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- request object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
seek
Java binding ofMPI_FILE_SEEK.- Parameters:
offset- file offsetwhence- update mode- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getPosition
Java binding ofMPI_FILE_GET_POSITION.- Returns:
- offset of individual pointer
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getByteOffset
Java binding ofMPI_FILE_GET_BYTE_OFFSET.- Parameters:
offset- offset- Returns:
- absolute byte position of offset
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readOrdered
Java binding ofMPI_FILE_READ_ORDERED.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeOrdered
Java binding ofMPI_FILE_WRITE_ORDERED.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readAtAllBegin
Java binding ofMPI_FILE_READ_AT_ALL_BEGIN.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readAtAllEnd
Java binding ofMPI_FILE_READ_AT_ALL_END.- Parameters:
buf- buffer- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeAtAllBegin
Java binding ofMPI_FILE_WRITE_AT_ALL_BEGIN.- Parameters:
offset- file offsetbuf- buffercount- number of items in buffertype- datatype of each buffer element- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeAtAllEnd
Java binding ofMPI_FILE_WRITE_AT_ALL_END.- Parameters:
buf- buffer- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readAllBegin
Java binding ofMPI_FILE_READ_ALL_BEGIN.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readAllEnd
Java binding ofMPI_FILE_READ_ALL_END.- Parameters:
buf- buffer- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeAllBegin
Java binding ofMPI_FILE_WRITE_ALL_BEGIN.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeAllEnd
Java binding ofMPI_FILE_WRITE_ALL_END.- Parameters:
buf- buffer- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readOrderedBegin
Java binding ofMPI_FILE_READ_ORDERED_BEGIN.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
readOrderedEnd
Java binding ofMPI_FILE_READ_ORDERED_END.- Parameters:
buf- buffer- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeOrderedBegin
Java binding ofMPI_FILE_WRITE_ORDERED_BEGIN.- Parameters:
buf- buffercount- number of items in buffertype- datatype of each buffer element- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
writeOrderedEnd
Java binding ofMPI_FILE_WRITE_ORDERED_END.- Parameters:
buf- buffer- Returns:
- status object
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getTypeExtent
Java binding ofMPI_FILE_GET_TYPE_EXTENT.- Parameters:
type- type of data- Returns:
- datatype extent
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setAtomicity
Java binding ofMPI_FILE_SET_ATOMICITY.- Parameters:
atomicity- true to set atomic mode, false to set nonatomic mode- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getAtomicity
Java binding ofMPI_FILE_GET_ATOMICITY.- Returns:
- current consistency of the file
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
sync
Java binding ofMPI_FILE_SYNC.- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setErrhandler
Java binding of the MPI operationMPI_FILE_SET_ERRHANDLER.- Parameters:
errhandler- new MPI error handler for file- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getErrhandler
Java binding of the MPI operationMPI_FILE_GET_ERRHANDLER.- Returns:
- MPI error handler currently associated with file
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
callErrhandler
Java binding of the MPI operationMPI_FILE_CALL_ERRHANDLER.- Parameters:
errorCode- error code- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-