1
1
openmpi/ompi/mpi/java/java/FileView.java
Jeff Squyres e4e3e411fc Next generation of MPI Java bindings.
Includes all MPI functions supported by Open MPI, including MPI-3
functions (as of about 2 weeks ago).  Many changes compared to the
prior generation of Java bindings; not much is left from the prior
generation, actually.  The changes include (but are not limited to):

 * Add support for more than just a subset of MPI-1 functions
 * Use typical Java case for symbol names
 * Support Java Direct buffers (giving darn-near "native C"
   performance)
 * Support "type struct" better than the prior generation
 * Make more of an effort for the Java bindings to be a thin layer
   over the back-end C bindings
 * ...and more

A proper README with more information about what is supported, how to
use these bindings, etc. will be committed shortly.

This commit was SVN r29263.
2013-09-26 21:44:39 +00:00

64 строки
1.0 KiB
Java

package mpi;
/**
* This class represents file views.
*/
public final class FileView
{
private final long disp;
private final Datatype etype, filetype;
private final String datarep;
/**
* Constructs a file view.
* @param disp displacement
* @param etype elementary datatype
* @param filetype file type
* @param datarep data representation
*/
public FileView(long disp, Datatype etype, Datatype filetype, String datarep)
{
this.disp = disp;
this.etype = etype;
this.filetype = filetype;
this.datarep = datarep;
}
/**
* Gets the displacement.
* @return displacement
*/
public long getDisp()
{
return disp;
}
/**
* Gets the elementary datatype.
* @return elementary datatype
*/
public Datatype getEType()
{
return etype;
}
/**
* Gets the file type.
* @return file type
*/
public Datatype getFileType()
{
return filetype;
}
/**
* Gets the data representation.
* @return data representation
*/
public String getDataRep()
{
return datarep;
}
} // FileView