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
,
Serialized FormConstructor 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.IlvReadFileException
public 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 IlvObjectSDOKeyExtractor
set
- The ResultSet where the key is to be extracted.Object
used as feature ID for the current row.IlvSDOException
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
stream
- The stream.IOException
- thrown when an exception occurs during
the write operation for this object.public boolean isPersistent()
true
.isPersistent
in interface IlvObjectSDOKeyExtractor
public String getColumnName()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.