public abstract class DataSourceBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<ISBounds> |
componentBounds
the bounds for each component
|
protected java.util.Vector<java.lang.Integer> |
componentFieldPositions
the component field positions for mapping from component to composite
|
protected java.util.Vector<java.lang.Integer> |
componentIndices
the designated component Datasource indices into DataSourceList
|
protected java.util.Vector<FieldIDMapper> |
componentMaps |
protected ISBounds |
compositeBounds
denotes extent of Index Space for the pending datasource
|
protected java.util.Vector<java.lang.String> |
compositeFieldNames
rdb added a single composite name vector; could have holes in it
|
protected java.util.Vector<java.lang.Integer> |
compositeFieldPositions
the composite field positions for mapping from component to composite
|
protected boolean |
discardFlag
datasource is not to be instantiated
|
protected DataSourceCollection |
dsList
table/list to hold the available datasources
|
protected java.util.Vector<java.lang.String> |
nameMapping
the composite field names for mapping from component to composite
|
Constructor and Description |
---|
DataSourceBuilder(DataSourceCollection d,
java.lang.String n)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addComponent(java.lang.String s)
adds DataSource named by the String to the list of components
with the bounds implied to be that of the datasource named by the String.
|
boolean |
addComponent(java.lang.String s,
ISBounds b)
adds DataSource named by the String to the list of components
with the bounds specified.
|
protected ISBounds[] |
getAllComponentBounds()
Returns an array containing the bounds of the Index Space for each component
of the pending datasource.
|
protected DataSource[] |
getComponentDataSources()
Returns an array containing the component datasources.
|
protected int |
getComponentFieldPosition(java.lang.String name)
Examines the current component datasource and returns the
position of the field named by "name".
|
ISBounds |
getCompositeBounds()
Returns the bounds of the Index Space for the pending datasource.
|
protected DataSource |
getCurrentDataSource()
Returns the DataSource object mapped to the most recent compoent
|
FDLDescriptor |
getCurrentFDLDescriptor()
Returns the current File Descriptor Language object
|
java.lang.String |
getDSName()
Returns the datasource name
|
protected DataSource |
getFirstComponentDataSource()
Returns the first DataSource in the component list
or a null if no components have been specified.
|
static void |
main(java.lang.String[] args) |
ISBounds |
makeComponentBounds()
Converts upper and lower axes arrays into an ISBounds object
|
protected FieldIDMapper |
makeComponentFieldIDMapper()
returns a FieldIDMapper for the current component
|
protected ComponentInfo[] |
makeComponentInfos()
instantiate a list of ComponentInfos to be used to
create the datasource
|
DataSource |
makeDataSource()
instantiates an actual datasource
|
protected ISIDMapper |
makeISIDMapper(int i)
returns an ISIDMapper for a component
|
void |
processFinalComponentMap()
completes a new FieldIDMapper for current component
|
void |
setComponentAxes(java.lang.Integer l,
java.lang.Integer u)
adds an upper and lower axes to an individual component bounds
specification
|
void |
setComponentFieldPair(java.lang.String name,
java.lang.Integer compositePosition)
Store fieldname/position pairs for the component attributes.
|
void |
setComponentFieldPair(java.lang.String name,
java.lang.Integer compositePosition,
java.lang.String compositeName)
store fieldname/position pairs for the component attributes
|
void |
setCompositeBounds(ISBounds bounds)
Sets the bounds of the Index Space for the pending datasource
|
void |
setCurrentFDLDescriptor(FDLDescriptor fdl)
Sets the current File Descriptor Language object
|
void |
setDSName(java.lang.String s)
Sets the datasource name to the String provided
|
java.lang.String |
toString()
diagnostic utility method for dumping this class to a string
|
protected static int[] |
vectorToIntArray(java.util.Vector v)
makes an integer array out of a vector
|
protected DataSourceCollection dsList
protected java.util.Vector<java.lang.Integer> componentIndices
protected java.util.Vector<ISBounds> componentBounds
protected ISBounds compositeBounds
protected boolean discardFlag
protected java.util.Vector<FieldIDMapper> componentMaps
protected java.util.Vector<java.lang.Integer> componentFieldPositions
protected java.util.Vector<java.lang.Integer> compositeFieldPositions
protected java.util.Vector<java.lang.String> nameMapping
protected java.util.Vector<java.lang.String> compositeFieldNames
public DataSourceBuilder(DataSourceCollection d, java.lang.String n)
public void setDSName(java.lang.String s)
public java.lang.String getDSName()
public void setCurrentFDLDescriptor(FDLDescriptor fdl)
public FDLDescriptor getCurrentFDLDescriptor()
protected DataSource getCurrentDataSource()
public void setCompositeBounds(ISBounds bounds)
public ISBounds getCompositeBounds()
protected ISBounds[] getAllComponentBounds()
protected DataSource[] getComponentDataSources()
protected DataSource getFirstComponentDataSource()
public ISBounds makeComponentBounds()
protected static int[] vectorToIntArray(java.util.Vector v)
public void setComponentAxes(java.lang.Integer l, java.lang.Integer u)
protected ISIDMapper makeISIDMapper(int i)
public boolean addComponent(java.lang.String s)
public boolean addComponent(java.lang.String s, ISBounds b)
public void processFinalComponentMap()
public void setComponentFieldPair(java.lang.String name, java.lang.Integer compositePosition, java.lang.String compositeName)
public void setComponentFieldPair(java.lang.String name, java.lang.Integer compositePosition)
protected int getComponentFieldPosition(java.lang.String name)
protected FieldIDMapper makeComponentFieldIDMapper()
protected ComponentInfo[] makeComponentInfos()
public DataSource makeDataSource()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)