public class AttributeJoinDataSource extends CompositeDataSource
componentInfos
fdlDescriptor, isActivated, name, wsName
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
Constructor and Description |
---|
AttributeJoinDataSource(java.lang.String aname,
ComponentInfo[] cinfo)
Construct a new AJDS from the given name and an array of
ComponentInfos.
|
AttributeJoinDataSource(java.lang.String aname,
DataSource[] sources)
This constructor joins all the attributes of the given
congruent DataSources.
|
AttributeJoinDataSource(java.lang.String aname,
DataSource[] sources,
FieldIDMapper[] FIDmap,
ISBounds[] componentBounds,
ISBounds compositeBounds)
Construct a new AJDS from the given name, information of the
components and the ISBounds of this new AJDS.
|
AttributeJoinDataSource(java.lang.String aname,
DataSource[] sources,
ISBounds compositeBounds)
This constructor joins all the attributes of the given
congruent distinct DataSources.
|
AttributeJoinDataSource(java.lang.String aname,
DataSource[] sources,
ISBounds[] componentBounds)
Construct a new AJDS by joining all the attributes of the
subsets specified by the given ISBounds array and the
corresponding DataSource array.
|
AttributeJoinDataSource(java.lang.String aname,
DataSource[] sources,
ISBounds[] componentBounds,
ISBounds compositeBounds)
Construct a new AJDS by joining all the attributes of the
subsets specified by the given ISBounds array and the
corresponding DataSource array.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Overrides from DataSource.
|
protected boolean |
check(ComponentInfo[] cpnInfos)
Check the array of ComponentInfo for AJDS.
|
static ComponentInfo[] |
createComponentInfos(DataSource[] sources,
FieldIDMapper[] FIDmap,
ISBounds[] componentBounds,
ISBounds compositeBounds)
Creates an array of ComponentInfo from the given information for
each component.
|
void |
datum(Datum dtm,
IndexSpaceID did)
Return the Datum by reference
|
void |
datum(Datum dtm,
IndexSpaceID did,
FieldIDMapper mp)
Deprecated.
|
void |
datum(Datum dtm,
IndexSpaceID did,
RecordSpec spec)
Reads a subset of the DataSource attributes specified by
the RecordSpec argument to the Datum argument defined by
IndexSpaceID did.
|
Datum |
datum(IndexSpaceID did)
Overrides from DataSource.
|
Datum |
datum(IndexSpaceID did,
RecordSpec spec)
This datum method returns values of a subset of all the
attributes.
|
protected void |
initializeComponents(ComponentInfo[] cpnInfo)
initialize component-related members that are not initialized by super
|
static void |
main(java.lang.String[] args)
AttributeJoinDataSource main test
|
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)
Deprecated.
|
void |
subblock(DataBlock theBlock,
ISBounds dstBounds,
ISBounds srcBounds,
RecordSpec spec)
Reads a subblock defined by srcBounds into the region of the
Datablock argument defined by dstBounds.
|
DataBlock |
subblock(ISBounds db)
Get a block of datums.
|
DataBlock |
subblock(ISBounds db,
RecordSpec spec)
Get a block of datums with a subset of all the attributes
|
DataSource |
subset(ISBounds db) |
DataSource |
subset(RecordDescriptor rd) |
DataSource |
subset(RecordDescriptor rd,
ISBounds db) |
static void |
test1()
Tests AttributeJoinDataSource.
|
static void |
test2(java.lang.String[] argv)
Test AttributeJoinDataSource
|
java.lang.String |
toString()
Print the data members of the DataSource in an easy to read fashion.
|
deactivate, equals, getComponentBounds, getComponentDataSources, getComponentFieldIDs, getComponentInfos, getCompositeBounds, getCompositeFieldIDs, getFIDMappers, useBytesOnly
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, getFDLDescriptor, getMetadataCollection, getName, getStatistics, getValues, isActivated, setMetadataCollection, toString
byteSize, 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, volume
public AttributeJoinDataSource(java.lang.String aname, ComponentInfo[] cinfo)
public AttributeJoinDataSource(java.lang.String aname, DataSource[] sources, FieldIDMapper[] FIDmap, ISBounds[] componentBounds, ISBounds compositeBounds)
public AttributeJoinDataSource(java.lang.String aname, DataSource[] sources)
public AttributeJoinDataSource(java.lang.String aname, DataSource[] sources, ISBounds[] componentBounds)
public AttributeJoinDataSource(java.lang.String aname, DataSource[] sources, ISBounds compositeBounds)
public AttributeJoinDataSource(java.lang.String aname, DataSource[] sources, ISBounds[] componentBounds, ISBounds compositeBounds)
public static ComponentInfo[] createComponentInfos(DataSource[] sources, FieldIDMapper[] FIDmap, ISBounds[] componentBounds, ISBounds compositeBounds)
protected void initializeComponents(ComponentInfo[] cpnInfo)
initializeComponents
in class CompositeDataSource
protected boolean check(ComponentInfo[] cpnInfos)
check
in class CompositeDataSource
public void activate()
activate
in class CompositeDataSource
public Datum datum(IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public Datum datum(IndexSpaceID did, RecordSpec spec)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum dtm, IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum dtm, IndexSpaceID did, RecordSpec spec)
datum
in interface Indexable
datum
in class DataCollection
public DataBlock subblock(ISBounds db)
subblock
in interface Indexable
subblock
in class DataCollection
public DataBlock subblock(ISBounds db, RecordSpec spec)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, RecordSpec spec)
subblock
in interface Indexable
subblock
in class DataCollection
public java.lang.String toString()
CompositeDataSource
toString
in class CompositeDataSource
public DataSource subset(RecordDescriptor rd)
public DataSource subset(ISBounds db)
public DataSource subset(RecordDescriptor rd, ISBounds db)
public static void test1()
public static void test2(java.lang.String[] argv)
public static void main(java.lang.String[] args)