public class LongDiskDataStorage extends DiskDataStorage
long element type.DataStorage.AbstractIterator, DataStorage.IteratorREAD, READ_WRITE, WRITE| Modifier | Constructor and Description |
|---|---|
|
LongDiskDataStorage()
Default constructor.
|
protected |
LongDiskDataStorage(LongDiskDataStorage longDiskDataStorage,
long offset,
long length)
Subsequence constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ArrayAccess |
createArrayAccess(int mode,
int startColumn,
int columns,
int rows)
Create an empty ArrayAccess.
|
protected ArrayAccess |
createTransposedArrayAccess(int mode,
int startColumn,
int columns,
int rows)
Create an empty transposed ArrayAccess.
|
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 when it is treated as a linear block.
|
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.
|
getBlockSize, getFileChannel, getFilename, implCopyFrom, implGetArray, implGetSize, implGetTransposedArray, implSetSize, isCached, setArray, setTransposedArray, transferFrom, transferTocopyFrom, copyFrom, getArray, getArray, getOffset, getSize, getTransposedArray, isReadOnly, isSubsequenced, setReadOnly, setSize, subsequencepublic LongDiskDataStorage()
throws ApfloatRuntimeException
ApfloatRuntimeExceptionprotected LongDiskDataStorage(LongDiskDataStorage longDiskDataStorage, long offset, long length)
longDiskDataStorage - The originating data storage.offset - The subsequence starting position.length - The subsequence length.protected DataStorage implSubsequence(long offset, long length) throws ApfloatRuntimeException
DataStorageimplSubsequence in class DataStorageoffset - The subsequence starting position.length - The subsequence length.ApfloatRuntimeExceptionprotected ArrayAccess implGetArray(int mode, long offset, int length) throws ApfloatRuntimeException
DataStorageimplGetArray 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.ApfloatRuntimeExceptionprotected ArrayAccess createArrayAccess(int mode, int startColumn, int columns, int rows)
DiskDataStoragecreateArrayAccess in class DiskDataStoragemode - 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 stored.columns - The number of columns of data.rows - The number of rows of data.protected ArrayAccess createTransposedArrayAccess(int mode, int startColumn, int columns, int rows)
DiskDataStoragecreateTransposedArrayAccess in class DiskDataStoragemode - 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 stored.columns - The number of columns of data.rows - The number of rows of data.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()
DiskDataStoragegetUnitSize in class DiskDataStorageCopyright © 2025. All rights reserved.