public class TextFileDataSource extends PhysicalDataSource
| Modifier and Type | Field and Description |
|---|---|
protected java.io.FileInputStream |
dataFile |
protected java.io.StreamTokenizer |
dataTokens |
protected Datum[] |
theData |
BIG_ENDIAN, bufferBounds, bufferDimension, bufferSteps, byteBuffers, directMemoryLimit, endian, LITTLE_ENDIAN, maxBufferSize, maxGapSize, readCounter, readLength, urlfdlDescriptor, isActivated, name, wsNameattributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc| Constructor and Description |
|---|
TextFileDataSource(java.lang.String name,
RecordDescriptor recordDesc,
ISBounds ISBounds,
AxisOrdering ordering,
java.lang.String URL) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Reads the contents of the file into an array.
|
void |
datum(Datum dtm,
IndexSpaceID did)
Return by reference the Datum corresponding to the given
IndexSpaceID.
|
void |
datum(Datum dtm,
IndexSpaceID did,
FieldIDMapper mp)
Get the Datum and fill its values in the passed Datum at positions
specified by the corresponding FieldIDMapper.
|
void |
datum(Datum dtm,
IndexSpaceID did,
RecordSpec recSpec)
Get the Datum and fill its values in the passed Datum at positions
specified by the corresponding RecordSpec.
|
Datum |
datum(IndexSpaceID did)
Return the Datum corresponding to the given IndexSpaceID.
|
Datum |
datum(IndexSpaceID did,
RecordSpec spec)
Return the Datum corresponding to the given IndexSpaceID.
|
void |
deactivate()
Releases the datum array.
|
static void |
main(java.lang.String[] args) |
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 |
subblock(DataBlock theBlock,
ISBounds dstBounds,
ISBounds srcBounds,
RecordSpec rs)
Reads a subblock defined by srcBounds into the region of the Datablock argument
defined by dstBounds.
|
DataBlock |
subblock(FloatDatum[] data,
ISBounds srcdb) |
DataBlock |
subblock(ISBounds srcdb)
Returns a spatial subset of the DataSource as delimited by the
ISBounds argument.
|
DataSource |
subset(ISBounds db) |
DataSource |
subset(RecordDescriptor rd) |
DataSource |
subset(RecordDescriptor rd,
ISBounds db) |
java.lang.String |
toString()
Print the data members of the DataSource in an easy to read fashion.
|
allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, deleteBuffer, deleteBuffer, deleteBuffers, equals, getBuffer, getBuffer, getBufferSize, getBufferSize, getByteOrder, getDataFileString, getMaxBufferSize, getReadCounter, getReadLength, getURL, initializeBuffers, isBigEndian, makeBestBuffer, resetReadCounter, setBufferByteOrder, setByteOrder, setMaxBufferSize, setMaxGapSize, toStringcheckActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, getFDLDescriptor, getMetadataCollection, getName, getStatistics, getValues, isActivated, setMetadataCollectionbyteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, 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, useBytesOnly, volumeprotected java.io.StreamTokenizer dataTokens
protected Datum[] theData
protected java.io.FileInputStream dataFile
public TextFileDataSource(java.lang.String name,
RecordDescriptor recordDesc,
ISBounds ISBounds,
AxisOrdering ordering,
java.lang.String URL)
public void activate()
activate in class DataSourcepublic void deactivate()
deactivate in class PhysicalDataSourcepublic Datum datum(IndexSpaceID did)
datum in interface Indexabledatum in class DataCollectionpublic Datum datum(IndexSpaceID did, RecordSpec spec)
datum in interface Indexabledatum in class DataCollectionpublic void datum(Datum dtm, IndexSpaceID did)
datum in interface Indexabledatum in class DataCollectionpublic void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
datum in interface Indexabledatum in class DataCollectionpublic void datum(Datum dtm, IndexSpaceID did, RecordSpec recSpec)
datum in interface Indexabledatum in class DataCollectionpublic void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds)
subblock in interface Indexablesubblock in class PhysicalDataSourcepublic void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
subblock in interface Indexablesubblock in class PhysicalDataSourcepublic void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, RecordSpec rs)
subblock in interface Indexablesubblock in class PhysicalDataSourcepublic DataBlock subblock(ISBounds srcdb)
subblock in interface Indexablesubblock in class DataCollectionpublic DataBlock subblock(FloatDatum[] data, ISBounds srcdb)
public DataSource subset(RecordDescriptor rd)
public DataSource subset(ISBounds db)
public DataSource subset(RecordDescriptor rd, ISBounds db)
public java.lang.String toString()
toString in class PhysicalDataSourcepublic static void main(java.lang.String[] args)