|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apfloat.spi.DataStorage
org.apfloat.internal.DiskDataStorage
org.apfloat.internal.FloatDiskDataStorage
public final class FloatDiskDataStorage
Disk-based data storage for the float element type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apfloat.spi.DataStorage |
|---|
DataStorage.AbstractIterator, DataStorage.Iterator |
| Field Summary |
|---|
| Fields inherited from class org.apfloat.spi.DataStorage |
|---|
READ, READ_WRITE, WRITE |
| Constructor Summary | |
|---|---|
|
FloatDiskDataStorage()
Default constructor. |
protected |
FloatDiskDataStorage(FloatDiskDataStorage floatDiskDataStorage,
long offset,
long length)
Subsequence constructor. |
| Method Summary | |
|---|---|
protected int |
getUnitSize()
Size of the element type, in bytes. |
protected ArrayAccess |
implGetArray(int mode,
long offset,
int length)
Gets an array access to the data of this data storage. |
protected ArrayAccess |
implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows)
Maps a transposed block of data to a memory array. |
protected DataStorage |
implSubsequence(long offset,
long length)
Implementation of getting a subsequence of this data storage. |
DataStorage.Iterator |
iterator(int mode,
long startPosition,
long endPosition)
Constructs a new iterator. |
| Methods inherited from class org.apfloat.internal.DiskDataStorage |
|---|
getBlockSize, getFileChannel, getFilename, implCopyFrom, implGetSize, implSetSize, transferFrom, transferTo |
| Methods inherited from class org.apfloat.spi.DataStorage |
|---|
copyFrom, copyFrom, getArray, getOffset, getSize, getTransposedArray, isReadOnly, isSubsequenced, setReadOnly, setSize, subsequence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FloatDiskDataStorage()
throws ApfloatRuntimeException
ApfloatRuntimeException
protected FloatDiskDataStorage(FloatDiskDataStorage floatDiskDataStorage,
long offset,
long length)
floatDiskDataStorage - The originating data storage.offset - The subsequence starting position.length - The subsequence length.| Method Detail |
|---|
protected DataStorage implSubsequence(long offset,
long length)
throws ApfloatRuntimeException
DataStorage
implSubsequence in class DataStorageoffset - The subsequence starting position.length - The subsequence length.
ApfloatRuntimeException
protected ArrayAccess implGetArray(int mode,
long offset,
int length)
throws ApfloatRuntimeException
DataStorage
implGetArray in class DataStoragemode - Access mode for the array access: DataStorage.READ, DataStorage.WRITE or both.offset - Starting position of the array access in the data storage.length - Number of accessible elements in the array access.
ApfloatRuntimeException
protected ArrayAccess implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows)
throws ApfloatRuntimeException
DataStorage
implGetTransposedArray in class DataStoragemode - Whether the array is prepared for reading, writing or both. The value should be DataStorage.READ, DataStorage.WRITE or a combination of these.startColumn - The starting column where data is read.columns - The number of columns of data to read.rows - The number of rows of data to read. This should be equivalent to n1, number of rows in the matrix.
columns x rows containing the transposed data.
ApfloatRuntimeException
public DataStorage.Iterator iterator(int mode,
long startPosition,
long endPosition)
throws IllegalArgumentException,
IllegalStateException,
ApfloatRuntimeException
DataStoragestartPosition
is less than or greater than endPosition, correspondingly.
iterator in class DataStoragemode - Access mode for iterator: DataStorage.READ, DataStorage.WRITE or both.startPosition - Starting position of iterator in the data set. For reverse access, the first element in the iterator is startPosition - 1.endPosition - End position of iterator in the data set. For forward access, the last accessible element in the iterator is endPosition - 1.
IllegalArgumentException - If the requested area is out of bounds of the data storage.
IllegalStateException - If write access is requested for a read-only data storage.
ApfloatRuntimeExceptionprotected int getUnitSize()
DiskDataStorage
getUnitSize in class DiskDataStorage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||