public class BlockwiseDoubleDataSource extends BufferedDoubleDataSource
Modifier and Type | Field and Description |
---|---|
protected int |
blockSize |
buf, dataProcessor, DEFAULT_BUFFERSIZE, readPos, writePos
dataLength, inputSource
NOT_SPECIFIED
Constructor and Description |
---|
BlockwiseDoubleDataSource(DoubleDataSource inputSource,
int blockSize) |
Modifier and Type | Method and Description |
---|---|
protected int |
getBlockSize()
Provide the size of the next block.
|
protected void |
prepareBlock()
Prepare a block of data for output.
|
protected int |
readBlock(double[] target,
int pos)
Read a block of data.
|
protected boolean |
readIntoBuffer(int minLength)
Attempt to get more data from the input source.
|
available, bufferSpaceLeft, compact, currentlyInBuffer, getData, hasMoreData, increaseBufferSize
getAllData, getData, getData, getDataLength
public BlockwiseDoubleDataSource(DoubleDataSource inputSource, int blockSize)
inputSource
- inputSourceblockSize
- block sizeprotected boolean readIntoBuffer(int minLength)
readIntoBuffer
in class BufferedDoubleDataSource
minLength
- the amount of data to get from the input sourceprotected int getBlockSize()
protected void prepareBlock()
protected int readBlock(double[] target, int pos)
target
- targetpos
- posCopyright © 2000–2016 DFKI GmbH. All rights reserved.