|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hardcode.gdbms.engine.data.SpatialDataSourceImpl
public class SpatialDataSourceImpl
Constructor Summary | |
---|---|
SpatialDataSourceImpl(SpatialDataSource t,
SpatialDriver driver)
|
Method Summary | |
---|---|
void |
buildIndex()
|
void |
clearIndex()
Performs the pending deletions and removes the spatial index |
void |
deleteRow(long rowIndex,
Value v)
Deletes the geometry at the specified index. |
java.awt.geom.Rectangle2D |
getFullExtent()
|
java.awt.geom.Rectangle2D |
getGeometryBounds(long rowIndex)
|
int |
getGeometryType()
|
void |
insertEmptyRow(int i)
Inserts an empty row in the spatial index |
void |
insertFilledRow(Value v,
int rowCountBeforeInsertion)
Inserts a geometry at the end of the theme |
boolean |
isIndexed()
|
java.util.List |
queryIndex(java.awt.geom.Rectangle2D rect)
Gets a list of the indexes in the theme of those geometries affected by the rect argument |
void |
restoreStatus()
|
void |
saveStatus()
|
void |
setFieldValue(long rowIndex,
Value oldGeometry,
Value newGeometry)
Changes the geometry at the specified index |
void |
setRecalculateExtent(boolean recalculateExtent)
|
void |
undoDeletion(int index)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpatialDataSourceImpl(SpatialDataSource t, SpatialDriver driver)
Method Detail |
---|
public int getGeometryType() throws DriverException
DriverException
public java.awt.geom.Rectangle2D getFullExtent() throws DriverException
DriverException
public void buildIndex() throws DriverException
DriverException
public void saveStatus()
public void restoreStatus()
public void clearIndex() throws DriverException
DriverException
- If a deletion failspublic boolean isIndexed()
public void insertFilledRow(Value v, int rowCountBeforeInsertion) throws DriverException
g
- Geometry to insertrowCountBeforeInsertion
- Position of the geometry
DriverException
public void deleteRow(long rowIndex, Value v) throws DriverException
rowIndex
- index of the geometryg
- geometry to delete
DriverException
public void setFieldValue(long rowIndex, Value oldGeometry, Value newGeometry) throws DriverException
rowIndex
- Index of the geometryoldGeometry
- Geometry to be replacednewGeometry
- new geometry
DriverException
public java.util.List queryIndex(java.awt.geom.Rectangle2D rect)
rect
- Query rectangle
public void insertEmptyRow(int i) throws DriverException
i
-
DriverException
public void undoDeletion(int index)
public void setRecalculateExtent(boolean recalculateExtent)
public java.awt.geom.Rectangle2D getGeometryBounds(long rowIndex) throws DriverException
DriverException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |