Package org.geotools.data
Class JoiningAttributeReader
- Object
-
- JoiningAttributeReader
-
- All Implemented Interfaces:
AttributeReader
public class JoiningAttributeReader extends Object implements AttributeReader
Attribute Reader that joins.- Author:
- Ian Schneider
-
-
Constructor Summary
Constructors Constructor Description JoiningAttributeReader(AttributeReader... readers)
Creates a new instance of JoiningAttributeReader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Release any resources associated with this readerint
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.
-
-
-
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 interfaceAttributeReader
- 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 interfaceAttributeReader
- 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 interfaceAttributeReader
- 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 interfaceAttributeReader
- 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 interfaceAttributeReader
- Returns:
- Number of attribtues this reader can read
-
getAttributeType
public AttributeDescriptor getAttributeType(int i)
Description copied from interface:AttributeReader
Retrieve the AttributeType at the given index.- Specified by:
getAttributeType
in interfaceAttributeReader
- Returns:
- AttributeType at given index
-
-