Package org.geotools.data
Class JoiningAttributeReader
Object
JoiningAttributeReader
- All Implemented Interfaces:
AttributeReader
Attribute Reader that joins.
- Author:
- Ian Schneider
-
Constructor Summary
ConstructorsConstructorDescriptionJoiningAttributeReader
(AttributeReader... readers) Creates a new instance of JoiningAttributeReader -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release any resources associated with this readerint
The number of attributes this reader can read, i.e the length of a row.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.read
(int idx) Read the attribute at the given index.
-
Constructor Details
-
JoiningAttributeReader
Creates a new instance of JoiningAttributeReader- Parameters:
readers
- Readers to join
-
-
Method Details
-
close
Description copied from interface:AttributeReader
Release any resources associated with this reader- Specified by:
close
in interfaceAttributeReader
- Throws:
IOException
-
hasNext
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
Description copied from interface:AttributeReader
Advance the reader to the next set of attributes.- Specified by:
next
in interfaceAttributeReader
- Throws:
IOException
-
read
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
Description copied from interface:AttributeReader
Retrieve the AttributeType at the given index.- Specified by:
getAttributeType
in interfaceAttributeReader
- Returns:
- AttributeType at given index
-