public class ChomboDataSource extends DataSource
Modifier and Type | Field and Description |
---|---|
int |
defaultComponent |
fdlDescriptor, isActivated, name, wsName
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
Constructor and Description |
---|
ChomboDataSource(java.lang.String name) |
ChomboDataSource(java.lang.String name,
FDLDescriptor fdld) |
ChomboDataSource(java.lang.String name,
java.lang.String fname) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the data source by opening the currently addressed file.
|
int |
calculateNumElems(int lv,
ISBounds bounds) |
void |
datum(Datum dtm,
IndexSpaceID did,
FieldIDMapper mp)
Given an IndexSpaceID and FieldIDMapper, copy the values of the Datum at
that position to the argument Datum.
|
void |
deactivate()
Deactivates the data source by closing the file and clearing all variables.
|
ISBounds |
getBoxBounds(int lv,
int boxNum) |
byte[] |
getBuffer() |
int |
getBufferSize() |
double[] |
getData(int lv,
ISBounds bound) |
java.lang.String[] |
getDataComponents() |
int |
getDimensionality() |
java.lang.String |
getFilename() |
int |
getIteration() |
int |
getNumBoxes(int lv) |
int |
getNumLevels() |
int |
getNumValidBoxes(int lv,
ISBounds inputSrcBounds) |
ISBounds |
getProbDomain(int lv) |
int |
getRefRatio(int lv) |
double |
getTime() |
byte[] |
makeByteBuffer(byte[] bytes,
DSPartitionedStencil stencil)
Creates a new byte buffer and returns it, based on the start and maximum
levels specified, and the number of query boxes requested.
|
int |
selectHyperslab(int lv,
int dataspace,
long[] start,
long[] stride,
long[] count,
long[] block) |
int |
server_subblock(byte[] bytes,
ISBounds inputSrcBounds,
int byteOffset) |
void |
setComponent(int cmp) |
void |
setMaxLv(int mLv) |
void |
setStartLv(int sLv) |
void |
subblock(DataBlock theBlock,
ISBounds dstBounds,
ISBounds srcBounds)
Reads a subblock defined by srcBounds into the region of the Datablock argument
defined by dstBounds.
|
void |
subblock(DataBlock theBlock,
ISBounds dstBounds,
ISBounds srcBounds,
FieldIDMapper mp)
Reads a subblock defined by srcBounds into the region of the Datablock argument
defined by dstBounds.
|
void |
useBytesOnly()
When this method is called, this subblock methods of this collection will
read data as bytes, without performing any type conversion.
|
int |
writeHeader(byte[] bytes,
DSPartitionedStencil stencil) |
double[] |
writeHyperslab(double[] data,
int lv,
long[] startData,
long[] countData,
int dataspace) |
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, equals, getFDLDescriptor, getMetadataCollection, getName, getStatistics, getValues, isActivated, main, setMetadataCollection, toString, toString
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, datum, datum, datum, datum, datum, datum, dim, getAttributeNames, getAxisOrdering, getAxisWeight, getAxisWeights, getBounds, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytesByAttribute, getBytesByAttribute, getBytesByPoint, getBytesByPoint, getDataOrder, getDimensionsArray, getDouble, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoublesByAttribute, getDoublesByAttribute, getDoublesByPoint, getDoublesByPoint, getFloat, getFloats, getFloats, getFloats, getFloats, getFloats, getFloats, getFloatsByAttribute, getFloatsByAttribute, getFloatsByPoint, getFloatsByPoint, getInt, getInts, getInts, getInts, getInts, getInts, getInts, getIntsByAttribute, getIntsByAttribute, getIntsByPoint, getIntsByPoint, getLowerBoundsArray, getNumAttributes, getRecordDescriptor, getShort, getShorts, getShorts, getShorts, getShorts, getShorts, getShorts, getShortsByAttribute, getShortsByAttribute, getShortsByPoint, getShortsByPoint, getStorageType, getUpperBoundsArray, getValues, getValuesByAttribute, getValuesByPoint, longVolume, setAxisOrdering, setBounds, setRecordDescriptor, size, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, volume
public final int defaultComponent
public ChomboDataSource(java.lang.String name)
public ChomboDataSource(java.lang.String name, java.lang.String fname)
public ChomboDataSource(java.lang.String name, FDLDescriptor fdld)
public void useBytesOnly()
useBytesOnly
in class DataCollection
public void activate()
activate
in class DataSource
public void deactivate()
deactivate
in class DataSource
public void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
DataCollection
datum
in interface Indexable
datum
in class DataCollection
public ISBounds getBoxBounds(int lv, int boxNum)
public java.lang.String[] getDataComponents()
public int getDimensionality()
public java.lang.String getFilename()
public int getIteration()
public int getNumBoxes(int lv)
public int getNumLevels()
public ISBounds getProbDomain(int lv)
public int getRefRatio(int lv)
public double getTime()
public void setStartLv(int sLv)
public void setMaxLv(int mLv)
public void setComponent(int cmp)
public byte[] makeByteBuffer(byte[] bytes, DSPartitionedStencil stencil)
startLv
- Starting refinement level chosenmaxLv
- Ending refinement level chosenqueries
- Query box boundspublic int writeHeader(byte[] bytes, DSPartitionedStencil stencil)
public int calculateNumElems(int lv, ISBounds bounds)
public int server_subblock(byte[] bytes, ISBounds inputSrcBounds, int byteOffset)
public byte[] getBuffer()
public int getBufferSize()
public double[] getData(int lv, ISBounds bound)
public double[] writeHyperslab(double[] data, int lv, long[] startData, long[] countData, int dataspace)
public int selectHyperslab(int lv, int dataspace, long[] start, long[] stride, long[] count, long[] block)
public int getNumValidBoxes(int lv, ISBounds inputSrcBounds)
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds)
DataCollection
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
DataCollection
subblock
in interface Indexable
subblock
in class DataCollection