public class IlvDefaultObjectSDOKeyExtractor extends Object implements IlvObjectSDOKeyExtractor
IlvObjectSDOKeyExtractor extracts unique IDs from
a given layer column. This class is useful for load-on-demand: if you have an SDO layer
that has a column containing unique values associated with the SDO_GEOMETRY
values, then you can use this class. Using a key extractor prevents the tile loader from
loading multiple times a geometry belonging to multiple tiles.IlvObjectSDOKeyExtractor| Constructor and Description |
|---|
IlvDefaultObjectSDOKeyExtractor(IlvInputStream stream)
Reads this object from the specified stream.
|
IlvDefaultObjectSDOKeyExtractor(String columnName)
Constructs a new
IlvDefaultObjectSDOKeyExtractor. |
| Modifier and Type | Method and Description |
|---|---|
Object |
extractKey(ResultSet set)
This method returns an Object that is used as a feature ID.
|
String |
getColumnName()
Returns the name of the decoded column.
|
boolean |
isPersistent()
Returns
true. |
void |
write(IlvOutputStream stream)
Writes this object to the specified stream.
|
public IlvDefaultObjectSDOKeyExtractor(String columnName)
IlvDefaultObjectSDOKeyExtractor.columnName - The name of the column of the SDO layer.public IlvDefaultObjectSDOKeyExtractor(IlvInputStream stream) throws IlvReadFileException
stream - The stream.IlvReadFileExceptionpublic Object extractKey(ResultSet set) throws IlvSDOException
IlvDefaultObjectSDOKeyExtractor is
associated with an IlvDefaultObjectSDOTileLoader, it prevents
the tile loader from loading multiple times a geometry belonging to multiple tiles.extractKey in interface IlvObjectSDOKeyExtractorset - The ResultSet where the key is to be extracted.Object used as feature ID for the current row.IlvSDOExceptionpublic void write(IlvOutputStream stream) throws IOException
write in interface IlvPersistentObjectstream - The stream.IOException - thrown when an exception occurs during
the write operation for this object.public boolean isPersistent()
true.isPersistent in interface IlvObjectSDOKeyExtractorpublic String getColumnName()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.