Class JoinParentIndex

  • All Implemented Interfaces:
    Join

    public class JoinParentIndex
    extends Object
    implements Join
    Join data from a row of a Structure, whose index is passed in as the value of a member variable of the leaf StructureData (cursor.table[0]).
    Since:
    Jan 22, 2009
    • Constructor Detail

      • JoinParentIndex

        public JoinParentIndex​(StructureDS parentStructure,
                               String parentIndex)
        Constructor.
        Parameters:
        parentStructure - get data from this Structure
        parentIndex - name of member variable in leaf StructureData
    • 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 VariableDS findVariable​(String axisName)
        Description copied from interface: Join
        Find the Variable of the given name in the joined table.
        Specified by:
        findVariable in interface Join
        Parameters:
        axisName - find this Variable
        Returns:
        the named Variable, or null