edu.unh.sdb.datasource
Class ComponentInfo

java.lang.Object
  extended by edu.unh.sdb.datasource.ComponentInfo

public class ComponentInfo
extends java.lang.Object

This class records information about a component DataSource of a AttributeJoinDataSource or BlockedDataSource.


Field Summary
protected  Indexable component
           
protected  FieldIDMapper fieldIDMap
           
protected  ISIDMapper ISIDMap
           
protected  RecordDescriptor rDesc
           
 
Constructor Summary
ComponentInfo(Indexable cds, FieldIDMapper fidmap, ISIDMapper isidmap)
          Construct a ComponentInfo from DataCollection, FieldIDMapper and ISIDMapper.
 
Method Summary
 boolean contains(IndexSpaceID isid)
          If this component contains the given IndexSpaceID, returns true
 boolean equals(ComponentInfo comp2)
           
 Indexable getComponent()
           
 FieldIDMapper getFieldIDMap()
           
 ISIDMapper getISIDMap()
           
 RecordDescriptor getRecordDescriptor()
          return the current recordDescriptor for this componentInfo
 void rename(java.lang.String[] names)
          rename all (or part of) the attributes by giving an array of names
 void setAttributeName(int index, java.lang.String name)
          rename an attribute at position given by index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected Indexable component

fieldIDMap

protected FieldIDMapper fieldIDMap

ISIDMap

protected ISIDMapper ISIDMap

rDesc

protected RecordDescriptor rDesc
Constructor Detail

ComponentInfo

public ComponentInfo(Indexable cds,
                     FieldIDMapper fidmap,
                     ISIDMapper isidmap)
Construct a ComponentInfo from DataCollection, FieldIDMapper and ISIDMapper.

Parameters:
cds - -- DataSource or DataBlock to be used as Component
fidmap - -- Map fields from component to composite; null is ok and implies an identity mapping
isidmap - -- Map index spaces. null is ok and implies identity.
Method Detail

getComponent

public Indexable getComponent()

getFieldIDMap

public FieldIDMapper getFieldIDMap()

getISIDMap

public ISIDMapper getISIDMap()

equals

public boolean equals(ComponentInfo comp2)

setAttributeName

public void setAttributeName(int index,
                             java.lang.String name)
rename an attribute at position given by index


rename

public void rename(java.lang.String[] names)
rename all (or part of) the attributes by giving an array of names


getRecordDescriptor

public RecordDescriptor getRecordDescriptor()
return the current recordDescriptor for this componentInfo


contains

public boolean contains(IndexSpaceID isid)
If this component contains the given IndexSpaceID, returns true