|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.datasource.DataCollection
edu.unh.sdb.datasource.DataSource
edu.unh.sdb.datasource.CompositeDataSource
edu.unh.sdb.datasource.AttributeJoinDataSource
public class AttributeJoinDataSource
This class creates a new DataSource by joining attributes of some DataSources.
Field Summary |
---|
Fields inherited from class edu.unh.sdb.datasource.CompositeDataSource |
---|
componentInfos |
Fields inherited from class edu.unh.sdb.datasource.DataSource |
---|
fdlDescriptor, isActivated, name, wsName |
Fields inherited from class edu.unh.sdb.datasource.DataCollection |
---|
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class edu.unh.sdb.datasource.CompositeDataSource |
---|
deactivate, equals, getComponentBounds, getComponentDataSources, getComponentFieldIDs, getComponentInfos, getCompositeBounds, getCompositeFieldIDs, getFIDMappers |
Methods inherited from class edu.unh.sdb.datasource.DataSource |
---|
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, getName, getValues, isActivated, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |