Package org.geotools.data
Class JoiningAttributeWriter
- Object
-
- JoiningAttributeWriter
-
- All Implemented Interfaces:
AttributeWriter
public class JoiningAttributeWriter extends Object implements AttributeWriter
Provides ...- Author:
- Sean Geoghegan, Defence Science and Technology Organisation.
-
-
Constructor Summary
Constructors Constructor Description JoiningAttributeWriter(AttributeWriter... writers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetAttributeCount()The number of attributes this reader can read, i.e the length of a row.AttributeDescriptorgetAttributeType(int i)Retrieve the AttributeType at the given index.booleanhasNext()Query whether there are other rows in the attribute writer.voidnext()Advance the AttributeWriter, all calls to write will correspond to the same set of attributes until next is called again.voidwrite(int position, Object attribute)Write the given attribute value at the position indicated.
-
-
-
Constructor Detail
-
JoiningAttributeWriter
public JoiningAttributeWriter(AttributeWriter... writers)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAttributeWriter- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOExceptionDescription copied from interface:AttributeWriterQuery whether there are other rows in the attribute writer.- Specified by:
hasNextin interfaceAttributeWriter- Throws:
IOException- See Also:
FeatureWriter.hasNext()
-
next
public void next() throws IOExceptionDescription copied from interface:AttributeWriterAdvance the AttributeWriter, all calls to write will correspond to the same set of attributes until next is called again.- Specified by:
nextin interfaceAttributeWriter- Throws:
IOException
-
write
public void write(int position, Object attribute) throws IOExceptionDescription copied from interface:AttributeWriterWrite the given attribute value at the position indicated. Implementations can choose to immediately flush the write or buffer it.- Specified by:
writein interfaceAttributeWriter- Throws:
IOException
-
getAttributeCount
public int getAttributeCount()
Description copied from interface:AttributeWriterThe number of attributes this reader can read, i.e the length of a row.- Specified by:
getAttributeCountin interfaceAttributeWriter
-
getAttributeType
public AttributeDescriptor getAttributeType(int i)
Description copied from interface:AttributeWriterRetrieve the AttributeType at the given index.- Specified by:
getAttributeTypein interfaceAttributeWriter
-
-