public class MRDataSource extends DataSource
fdlDescriptor, isActivated, name, wsName
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
Constructor and Description |
---|
MRDataSource(java.lang.String aname,
FDLDescriptor fdld) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
The DataSource will perform any initialization required
in order to begin reading/processing data.
|
protected void |
addToLevel(int level,
DataSource ds,
java.io.File file)
addToLevel( ds, level )
|
boolean |
changeResolution(int changeCode)
boolean changeResolution( int changeCode )
changeCode = 0 implies go to resolution level zero
otherwise new resolution level = old level + changeCode
changeCode < 0 implies make resolution finer by abs( changeCode ) levels
changeCode > 0 implies make resolution coarser by changeCode levels
|
protected boolean |
checkCoarser(int level)
void checkCoarser( int level )
Try to open next coarser data representation.
|
boolean |
coarser()
boolean coarser( )
Move to next coarser data representation.
|
int |
curLevel()
int curLevel()
|
int |
curWhich()
int curWhich()
|
void |
datum(Datum dtm,
IndexSpaceID did)
Given an IndexSpaceID, copy the values of the Datum at that position to the
argument Datum.
|
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.
|
protected int |
findCoarser(java.io.File parent,
int level)
For a particular directory at the specified level find all the
coarser representations for that directory.
|
protected int |
findCoarser(int level)
int findCoarser( int level )
NOT YET IMPLEMENTED
Try to find all next coarser data representations in file system for
the next coarser level of resolution from that specified in the argument.
|
boolean |
finer()
boolean finer( )
Move to next finer data representation.
|
java.io.File |
getDataFile()
getDataFile()
|
protected java.io.File |
getDataFile(java.io.File root)
Find data file
|
java.io.File |
getDataFile(int level)
getDataFile( int level )
|
java.io.File |
getDataFile(int level,
int which)
getDataFile( int level, int which )
|
DataSource |
getDataSource()
getDataSource() -- return current data source
|
DataSource |
getDataSource(int level)
getDataSource( int level )
|
DataSource |
getDataSource(int level,
int which)
getDataSource( int level, int which )
|
int |
getNumDSatLevel(int level)
int getNumDSatLevel( int )
|
int |
getNumResolutionLevels()
int getNumResolutionLevels()
|
static void |
main(java.lang.String[] args) |
protected void |
openDS(int level)
Swap datasources.
|
static void |
printData(java.lang.String header,
float[] data) |
protected boolean |
setCurrentDS(int newLevel)
int setCurrentDS( int newLevel )
Set resolution level to the DS 0 on the specified level; don't open
the datasource.
|
protected boolean |
setCurrentDS(int newLevel,
int index)
int setCurrentDS( int newLevel, int index )
Set resolution level to specified level and DS, but don't open the datasource
If the desired level or index does not exist, no change is made.
|
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.
|
protected void |
updateMembers()
upDateMembers copies the key information from the current DS to
data members of the MRDS.
|
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, deactivate, dumpData, equals, getFDLDescriptor, getMetadataCollection, getName, getStatistics, getValues, isActivated, setMetadataCollection, toString, toString
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, 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, useBytesOnly, volume
public MRDataSource(java.lang.String aname, FDLDescriptor fdld)
aname
- fdld
- protected void updateMembers()
protected java.io.File getDataFile(java.io.File root)
protected void addToLevel(int level, DataSource ds, java.io.File file)
public DataSource getDataSource()
public DataSource getDataSource(int level)
public DataSource getDataSource(int level, int which)
public java.io.File getDataFile()
public java.io.File getDataFile(int level)
public java.io.File getDataFile(int level, int which)
public int curLevel()
public int curWhich()
public int getNumResolutionLevels()
public int getNumDSatLevel(int level)
protected boolean setCurrentDS(int newLevel)
protected boolean setCurrentDS(int newLevel, int index)
public boolean finer()
public boolean changeResolution(int changeCode)
public boolean coarser()
protected int findCoarser(int level)
protected int findCoarser(java.io.File parent, int level)
parent
- level
- protected boolean checkCoarser(int level)
protected void openDS(int level)
public void activate()
DataSource
activate
in class DataSource
DataSource.activate()
public void datum(Datum dtm, IndexSpaceID did)
DataCollection
datum
in interface Indexable
datum
in class DataCollection
DataCollection.datum(edu.unh.sdb.common.Datum, edu.unh.sdb.datasource.IndexSpaceID)
public void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
DataCollection
datum
in interface Indexable
datum
in class DataCollection
DataCollection.datum(edu.unh.sdb.common.Datum, edu.unh.sdb.datasource.IndexSpaceID, edu.unh.sdb.common.FieldIDMapper)
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds)
DataCollection
subblock
in interface Indexable
subblock
in class DataCollection
DataCollection.subblock(edu.unh.sdb.datasource.DataBlock, edu.unh.sdb.datasource.ISBounds, edu.unh.sdb.datasource.ISBounds)
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
DataCollection
subblock
in interface Indexable
subblock
in class DataCollection
public static void main(java.lang.String[] args)
public static void printData(java.lang.String header, float[] data)