|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpatialDataSource
DataSource with spatial capabilities
Field Summary | |
---|---|
static int |
ANY
|
static int |
LINE
|
static int |
MULTILINE
|
static int |
MULTIPOINT
|
static int |
MULTIPOLYGON
|
static int |
POINT
|
static int |
POLYGON
|
Fields inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
COHERENT_ROW_ORDER, DIRECT_MODE, DISPATCH, IGNORE, STORE |
Method Summary | |
---|---|
void |
buildIndex()
Builds a spatial index. |
void |
clearIndex()
Clears the spatial index. |
void |
deleteRow(long rowId)
Deletes the ith row of the DataSource if there is no spatial index. |
java.awt.geom.Rectangle2D |
getFullExtent()
Gets the full extent of the data accessed |
java.awt.geom.Rectangle2D |
getGeometryBounds(long rowIndex)
Gets the bounds of the geometry at the specified index. |
int |
getGeometryType()
Gets the geometry type of the data source. |
int |
getSpatialFieldIndex()
Returns the index of the field containing spatial data |
void |
insertEmptyRowAt(long index)
Inserts an empty row at the end of the dataware. |
void |
insertFilledRowAt(long index,
Value[] values)
Inserts a row at the specified index with the specified values. |
boolean |
isIndexed()
|
java.util.List |
queryIndex(java.awt.geom.Rectangle2D area)
Queries the index and gets a List of Integer's with the indexes of those rows of the DataSource near the argument |
Methods inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
addEditionListener, addField, addField, addMetadataEditionListener, addSelectionListener, beginTrans, canRedo, canUndo, check, commitTrans, getAlias, getAsString, getDataSourceFactory, getDataSourceMetadata, getDispatchingMode, getDriver, getDriverMetadata, getFieldIndexByName, getFieldNames, getMemento, getName, getRow, getSelectedRows, getWhereFilter, insertEmptyRow, insertFilledRow, isModified, redo, remove, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setDataSourceFactory, setDispatchingMode, setFieldName, setFieldValue, setSelectedRows, start, stop, undo |
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.ReadAccess |
---|
getFieldValue, getRowCount |
Field Detail |
---|
static final int POINT
static final int MULTIPOINT
static final int MULTILINE
static final int LINE
static final int MULTIPOLYGON
static final int POLYGON
static final int ANY
Method Detail |
---|
java.awt.geom.Rectangle2D getFullExtent() throws DriverException
DriverException
- if the operation failsvoid buildIndex() throws DriverException
DriverException
- If the build failsvoid clearIndex() throws DriverException
DriverException
java.util.List queryIndex(java.awt.geom.Rectangle2D area)
query
- argument
boolean isIndexed()
void deleteRow(long rowId) throws DriverException
rowId
- index of the row to be deleted
DriverException
- if the row could not be deletedvoid insertFilledRowAt(long index, Value[] values) throws DriverException, java.lang.UnsupportedOperationException
values
- Values of the inserted row fields in the field orderindex
- index where the row will be inserted. No data is lost.
DriverException
- if the row could not be inserted
java.lang.UnsupportedOperationException
- If there is a spatial indexvoid insertEmptyRowAt(long index) throws DriverException, java.lang.UnsupportedOperationException
index
- index where the row will be inserted. No data is lost.
DriverException
- if the row could not be inserted
java.lang.UnsupportedOperationException
- if there is a spatial indexint getGeometryType() throws DriverException
DriverException
int getSpatialFieldIndex() throws DriverException
DriverException
java.awt.geom.Rectangle2D getGeometryBounds(long rowIndex) throws DriverException
j
-
DriverException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |