Class JoiningAttributeReader

  • All Implemented Interfaces:
    AttributeReader

    public class JoiningAttributeReader
    extends Object
    implements AttributeReader
    Attribute Reader that joins.
    Author:
    Ian Schneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Release any resources associated with this reader
      int getAttributeCount()
      The number of attributes this reader can read, i.e the length of a row.
      AttributeDescriptor getAttributeType​(int i)
      Retrieve the AttributeType at the given index.
      boolean hasNext()
      Does another set of attributes exist in this reader?
      void next()
      Advance the reader to the next set of attributes.
      Object read​(int idx)
      Read the attribute at the given index.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JoiningAttributeReader

        public JoiningAttributeReader​(AttributeReader... readers)
        Creates a new instance of JoiningAttributeReader
        Parameters:
        readers - Readers to join
    • Method Detail

      • close

        public void close()
                   throws IOException
        Description copied from interface: AttributeReader
        Release any resources associated with this reader
        Specified by:
        close in interface AttributeReader
        Throws:
        IOException
      • hasNext

        public boolean hasNext()
                        throws IOException
        Description copied from interface: AttributeReader
        Does another set of attributes exist in this reader?
        Specified by:
        hasNext in interface AttributeReader
        Returns:
        true if additional content exists for AttributeReader
        Throws:
        IOException
      • next

        public void next()
                  throws IOException
        Description copied from interface: AttributeReader
        Advance the reader to the next set of attributes.
        Specified by:
        next in interface AttributeReader
        Throws:
        IOException
      • read

        public Object read​(int idx)
                    throws IOException
        Description copied from interface: AttributeReader
        Read the attribute at the given index.
        Specified by:
        read in interface AttributeReader
        Returns:
        Object Attribute at given index
        Throws:
        IOException
      • getAttributeCount

        public int getAttributeCount()
        Description copied from interface: AttributeReader
        The number of attributes this reader can read, i.e the length of a row.
        Specified by:
        getAttributeCount in interface AttributeReader
        Returns:
        Number of attribtues this reader can read