ucar.nc2.ft.point.standard
Class JoinArray

java.lang.Object
  extended by ucar.nc2.ft.point.standard.JoinArray
All Implemented Interfaces:
Join

public class JoinArray
extends java.lang.Object
implements Join

Join data from an element of an Array, whose index is passed in as cursor.recnum[0].

Since:
Feb 25, 2009
Author:
caron

Nested Class Summary
static class JoinArray.Type
           
 
Constructor Summary
JoinArray(Variable v, JoinArray.Type type, int param)
          Constructor.
 
Method Summary
 Variable findVariable(java.lang.String varName)
          Find the Variable of the given name in the joined table.
 StructureData getJoinData(Cursor cursor)
          Get 'join' data to be added to the row.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JoinArray

public JoinArray(Variable v,
                 JoinArray.Type type,
                 int param)
Constructor.

Parameters:
v - get data from this Variable
Method Detail

getJoinData

public StructureData getJoinData(Cursor cursor)
Description copied from interface: Join
Get 'join' data to be added to the row.

Specified by:
getJoinData in interface Join
Parameters:
cursor - the state of the iteration
Returns:
extra data to be added to the row

findVariable

public Variable findVariable(java.lang.String varName)
Description copied from interface: Join
Find the Variable of the given name in the joined table.

Specified by:
findVariable in interface Join
Parameters:
varName - find this Variable
Returns:
the named Variable, or null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object