|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NetworkIO
This interface defines methods to read/write network information from/to a datasource.
| Method Summary | |
|---|---|
void |
commit()Sends out commit command to the database. |
void |
deletePath(long pathId)Deletes path. |
void |
deletePaths(long[] pathIds)Deletes paths. |
void |
deleteSubPath(long subPathId)Deletes sub-path. |
void |
deleteSubPaths(long[] subPathIds)Deletes sub-paths. |
void |
generatePartitionBlob(int partitionId, int linkLevel, boolean includeUserData)Generate partition BLOB for the specified partition. |
void |
generatePartitionBlobs(int linkLevel, boolean includeUserData, boolean commitForEachBlob)Generate partition BLOBs for the specified link level. |
java.lang.String |
getGlobalNetworkName()Returns the global network name, i.e., the network name that is globally unique, and that is used as the cache key for the network. |
NetworkMetadata |
getNetworkMetadata()Returns the network metadata. |
NetworkUpdate |
getNetworkUpdate(int linkLevel, long[] changedNodeIds, long[] changedLinkIds)Constructs network update object according to the changed node and link IDs. |
NetworkUpdate |
getNetworkUpdate(int linkLevel, long[] updatedNodeIds, long[] deletedNodeIds, long[] updatedLinkIds, long[] deletedLinkIds)Constructs network update object according to the changed node and link IDs. |
long |
getNextTmpLinkId()Returns the next temporary link ID. |
long |
getNextTmpNodeId()Returns the next temporary node ID. |
boolean[] |
isLinksExist(long[] linkIds)Checks whether the input links exist or not |
boolean[] |
isNodesExist(long[] nodeIds)Checks whether the input nodes exist or not |
java.util.Map<java.lang.Long,int[]> |
readAdjacentPartitionIdsForLinks(long[] linkIds, int linkLevel)Retrieves the relevant partition IDs for the specified node IDs. |
java.util.Map<java.lang.Long,int[]> |
readAdjacentPartitionIdsForNodes(long[] nodeIds, int linkLevel)Retrieves the adjacent partition IDs for the specified node IDs. |
int |
readComponentId(long nodeId, int linkLevel)Retrieves the component ID assigned to the specified node ID. |
int[] |
readComponentIds(int linkLevel)Retrieves the component IDs stored in the connected component table. |
LogicalHeavyPath |
readLogicalHeavyPath(LogicalPath path, boolean includeUserData)Retrieves node and link information for the specified logical path. |
LogicalHeavyPath[] |
readLogicalHeavyPaths(LogicalPath[] paths, boolean includeUserData)Retrieves node and link information for the specified logical paths. |
LogicalLink |
readLogicalLink(long linkId, boolean includeUserData)Retrieves the standalone logical link, i.e., the logical link without references to the start and end nodes, for the specified link ID. |
LogicalLink[] |
readLogicalLinks(long[] linkIds, boolean includeUserData)Retrieves the standalone logical link, i.e., the logical link without references to the start and end nodes, for the specified link ID. |
LogicalBasicNetwork |
readLogicalNetwork(int linkLevel, boolean includeUserData)Retrieves the logical network. |
LogicalBasicNetwork |
readLogicalNetwork(int linkLevel, boolean includeUserData, boolean readFromBlob)Retrieves the logical network. |
LogicalNode |
readLogicalNode(long nodeId, boolean includeUserData)Retrieves the standalone logical node, i.e., the logical node without references to incoming and outgoing links, for the specified node ID. |
LogicalNode[] |
readLogicalNodes(long[] nodeIds, boolean includeUserData)Retrieves the standalone logical nodes, i.e., the logical nodes without references to incoming and outgoing links, for the specified node IDs. |
LogicalPartition |
readLogicalPartition(int partitionId, int linkLevel, boolean includeUserData)Retrieves the logical network partition for the specified partition ID. |
LogicalPartition |
readLogicalPartition(int partitionId, int linkLevel, boolean includeUserData, boolean readFromBlob)Retrieves the logical network partition for the specified partition ID. |
LogicalPartition[] |
readLogicalPartitions(int linkLevel, boolean includeUserData)Retrieves all the logical network partitions in this network. |
LogicalPartition[] |
readLogicalPartitions(int linkLevel, boolean includeUserData, boolean readFromBlob)Retrieves all the logical network partitions. |
LogicalPath |
readLogicalPath(long pathId, boolean includeUserData)Retrieves the logical path for the specified path ID. |
LogicalPath[] |
readLogicalPaths(long[] pathIds, boolean includeUserData)Retrieves the logical paths for the specified path IDs. |
LogicalSubPath |
readLogicalSubPath(long subPathId, boolean includeUserData)Retrieves the logical subpath for the specified subpath ID. |
LogicalSubPath[] |
readLogicalSubPaths(long[] subPathIds, boolean includeUserData)Retrieves the logical subpaths for the specified subpath IDs. |
int |
readMaximumIncomingLinkLevel(long nodeId)Retrieves the maximum link level of the incoming links connected to the specified node. |
int |
readMaximumLinkLevel()Retrieves the maximum link level of the network. |
int |
readMaximumLinkLevel(long nodeId)Retrieves the maximum link level of the links connected to the specified node. |
int |
readMaximumOutgoingLinkLevel(long nodeId)Retrieves the maximum link level of the outgoing links connected to the specified node. |
long[] |
readNodeIds(int linkLevel)Retrieves the array of node IDs in the network. |
int |
readNumberOfConnectedComponents(int linkLevel)Retrieves the number of connected components stored in the component table. |
int |
readNumberOfLinkLevels()Retrieves the number of link levels. |
int |
readNumberOfLinks(int linkLevel)Retrieves the number of links in the network. |
int |
readNumberOfNodes(int linkLevel)Retrieves the number of nodes in the network. |
int |
readNumberOfPartitions(int linkLevel)Retrieves the number of partitions in the network. |
int |
readPartitionId(long nodeId, int linkLevel)Retrieves the partition ID for the specified node ID. |
int[] |
readPartitionIds(int linkLevel)Retrieves all the partition IDs in the network. |
int[] |
readPartitionIds(long[] nodeIds, int linkLevel)Retrieves the partition IDs for the specified node IDs. |
SpatialHeavyPath |
readSpatialHeavyPath(LogicalPath path, boolean includeUserData)Retrieves node and link information for the specified logical paths. |
SpatialHeavyPath[] |
readSpatialHeavyPaths(LogicalPath[] paths, boolean includeUserData)Retrieves node and link information for the specified logical paths. |
SpatialLink |
readSpatialLink(long linkId, boolean includeUserData)Retrieves the spatial link for the specified link ID. |
SpatialBasicNetwork |
readSpatialNetwork(LogicalBasicNetwork logicalNetwork)Retrieves spatial information for the logical network, and returns the spatial network. |
SpatialNode |
readSpatialNode(long nodeId, boolean includeUserData)Retrieves the spatial node for the specified node ID. |
SpatialPartition |
readSpatialPartition(LogicalPartition logicalPartition)Retrieves spatial information for the logical network partition, and returns the spatial network partition. |
JGeometry |
readSpatialPartitionMBR(int partitionId, int linkLevel)Returns the minimum bounding rectangle (MBR) encompassing all the nodes in the specified partition. |
java.util.Map<java.lang.Integer,JGeometry> |
readSpatialPartitionMBRs(int linkLevel)Returns the minimum bounding rectangles (MBR) of all the partitions in this network. |
SpatialPath |
readSpatialPath(LogicalPath logicalPath)Retrieves the spatial information for the specified logical path, and returns the spatial path. |
SpatialPath |
readSpatialPath(long pathId, boolean includeUserData)Retrieves the spatial path for the specified path ID. |
SpatialPath[] |
readSpatialPaths(LogicalPath[] logicalPath)Retrieves the spatial information for the specified logical path, and returns the spatial path. |
SpatialPath[] |
readSpatialPaths(long[] pathIds, boolean includeUserData)Retrieves the spatial path for the specified path ID. |
SpatialSubPath |
readSpatialSubPath(LogicalSubPath logicalSubPath)Retrieves the spatial information of the specified logical subpath, and returns the spatial subpath. |
SpatialSubPath |
readSpatialSubPath(long subPathId, boolean includeUserData)Retrieves the spatial subpath information. |
SpatialSubPath[] |
readSpatialSubPaths(LogicalSubPath[] logicalSubPaths)Retrieves the spatial information of the specified logical subpaths, and returns the spatial subpath. |
SpatialSubPath[] |
readSpatialSubPaths(long[] subPathIds, boolean includeUserData)Retrieves the spatial subpath information. |
void |
readUserData(LogicalPartition partition, LODUserDataIO udio)Add user data information to the logical partition |
void |
rollback()Sends out rollback command to the database. |
void |
saveConnectedComponents(OrderedLongSet[] components, int linkLevel)Stores the connected components information in the component table. |
void |
setNetworkAdaptor(oracle.spatial.network.lod.LODNetworkAdaptor adaptor)Sets the network adaptor. |
void |
setNetworkMetadata(NetworkMetadata metadata)Sets network metadata |
void |
writePath(LogicalPath path, long pathId, java.lang.String pathName, java.lang.String pathType)Stores a path in the database. |
long |
writePath(LogicalPath path, java.lang.String pathName, java.lang.String pathType)Stores a path in the database. |
void |
writeSubPath(LogicalSubPath subPath, long subPathId, long referencePathId, java.lang.String subPathName, java.lang.String subPathType)Stores a sub-path in the database. |
long |
writeSubPath(LogicalSubPath subPath, long referencePathId, java.lang.String subPathName, java.lang.String subPathType)Stores a sub-path in the database. |
| Method Detail |
|---|
java.lang.String getGlobalNetworkName()
void setNetworkAdaptor(oracle.spatial.network.lod.LODNetworkAdaptor adaptor)
adaptor - network adaptorNetworkMetadata getNetworkMetadata()
void setNetworkMetadata(NetworkMetadata metadata)
metadata - network metadata
void commit()
throws LODNetworkException
LODNetworkException
void rollback()
throws LODNetworkException
LODNetworkException
boolean[] isNodesExist(long[] nodeIds)
throws LODNetworkException
nodeIds - IDs of the nodesLODNetworkException
boolean[] isLinksExist(long[] linkIds)
throws LODNetworkException
linkIds - IDs of the linksLODNetworkException
int readNumberOfNodes(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
int readNumberOfLinks(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
long[] readNodeIds(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
LogicalBasicNetwork readLogicalNetwork(int linkLevel,
boolean includeUserData,
boolean readFromBlob)
throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or notreadFromBlob - whether to read from BLOBs or from tableLODNetworkException
LogicalBasicNetwork readLogicalNetwork(int linkLevel,
boolean includeUserData)
throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or notLODNetworkException
LogicalPartition readLogicalPartition(int partitionId,
int linkLevel,
boolean includeUserData,
boolean readFromBlob)
throws LODNetworkException
partitionId - partition IDlinkLevel - link levelincludeUserData - whether to include user data or notreadFromBlob - whether to read from BLOBs or from tableLODNetworkException
LogicalPartition readLogicalPartition(int partitionId,
int linkLevel,
boolean includeUserData)
throws LODNetworkException
partitionId - partition IDlinkLevel - link levelincludeUserData - whether to include user data or notLODNetworkException
LogicalPartition[] readLogicalPartitions(int linkLevel,
boolean includeUserData,
boolean readFromBlob)
throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or notreadFromBlob - whether to read from BLOBs or from tableLODNetworkException
LogicalPartition[] readLogicalPartitions(int linkLevel,
boolean includeUserData)
throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or notLODNetworkException
void readUserData(LogicalPartition partition,
LODUserDataIO udio)
throws LODNetworkException
partition - logical partitionudio - user data IO implementationLODNetworkException
int readPartitionId(long nodeId,
int linkLevel)
throws LODNetworkException
nodeId - node IDlinkLevel - link levelLODNetworkException
int[] readPartitionIds(long[] nodeIds,
int linkLevel)
throws LODNetworkException
nodeIds - node IDslinkLevel - link levelLODNetworkException
java.util.Map<java.lang.Long,int[]> readAdjacentPartitionIdsForNodes(long[] nodeIds,
int linkLevel)
throws LODNetworkException
nodeIds - node IDslinkLevel - link levelLODNetworkException
java.util.Map<java.lang.Long,int[]> readAdjacentPartitionIdsForLinks(long[] linkIds,
int linkLevel)
throws LODNetworkException
linkIds - link IDslinkLevel - link levelLODNetworkException
int[] readPartitionIds(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
int readNumberOfPartitions(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
int readNumberOfConnectedComponents(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
int[] readComponentIds(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
int readComponentId(long nodeId,
int linkLevel)
throws LODNetworkException
nodeId - node IDlinkLevel - link levelLODNetworkException
LogicalLink readLogicalLink(long linkId,
boolean includeUserData)
throws LODNetworkException
linkId - link IDincludeUserData - whether to include the userdata or notLODNetworkException
LogicalLink[] readLogicalLinks(long[] linkIds,
boolean includeUserData)
throws LODNetworkException
linkIds - link IDincludeUserData - whether to include the userdata or notLODNetworkException
LogicalNode readLogicalNode(long nodeId,
boolean includeUserData)
throws LODNetworkException
nodeId - node IDincludeUserData - whether to include the userdata or notLODNetworkException
LogicalNode[] readLogicalNodes(long[] nodeIds,
boolean includeUserData)
throws LODNetworkException
nodeIds - node IDsincludeUserData - whether to include the userdata or notLODNetworkException
LogicalPath readLogicalPath(long pathId,
boolean includeUserData)
throws LODNetworkException
pathId - path IDincludeUserData - whether to include the userdata or notLODNetworkException
LogicalPath[] readLogicalPaths(long[] pathIds,
boolean includeUserData)
throws LODNetworkException
pathIds - path IDsincludeUserData - whether to include the userdata or notLODNetworkException
LogicalSubPath readLogicalSubPath(long subPathId,
boolean includeUserData)
throws LODNetworkException
subPathId - subpath IDincludeUserData - whether to include the userdata or notLODNetworkException
LogicalSubPath[] readLogicalSubPaths(long[] subPathIds,
boolean includeUserData)
throws LODNetworkException
subPathIds - subpath IDsincludeUserData - whether to include the userdata or notLODNetworkException
LogicalHeavyPath readLogicalHeavyPath(LogicalPath path,
boolean includeUserData)
throws LODNetworkException
path - logical path without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkException
LogicalHeavyPath[] readLogicalHeavyPaths(LogicalPath[] paths,
boolean includeUserData)
throws LODNetworkException
paths - logical paths without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkException
SpatialBasicNetwork readSpatialNetwork(LogicalBasicNetwork logicalNetwork)
throws LODNetworkException
logicalNetwork - logical networkLODNetworkException
SpatialPartition readSpatialPartition(LogicalPartition logicalPartition)
throws LODNetworkException
logicalPartition - logical network partitionLODNetworkException
JGeometry readSpatialPartitionMBR(int partitionId,
int linkLevel)
throws LODNetworkException
partitionId - partition IDlinkLevel - link levelLODNetworkException
java.util.Map<java.lang.Integer,JGeometry> readSpatialPartitionMBRs(int linkLevel)
throws LODNetworkException
linkLevel - link levelLODNetworkException
SpatialPath readSpatialPath(long pathId,
boolean includeUserData)
throws LODNetworkException
pathId - path IDincludeUserData - whether to include the userdata or notLODNetworkException
SpatialPath[] readSpatialPaths(long[] pathIds,
boolean includeUserData)
throws LODNetworkException
pathIds - path IDincludeUserData - whether to include the userdata or notLODNetworkException
SpatialPath readSpatialPath(LogicalPath logicalPath)
throws LODNetworkException
logicalPath - logical pathLODNetworkException
SpatialPath[] readSpatialPaths(LogicalPath[] logicalPath)
throws LODNetworkException
logicalPath - logical pathLODNetworkException
SpatialSubPath readSpatialSubPath(long subPathId,
boolean includeUserData)
throws LODNetworkException
subPathId - subpath IDincludeUserData - whether to include the userdata or notLODNetworkException
SpatialSubPath[] readSpatialSubPaths(long[] subPathIds,
boolean includeUserData)
throws LODNetworkException
subPathIds - subpath IDsincludeUserData - whether to include the userdata or notLODNetworkException
SpatialSubPath readSpatialSubPath(LogicalSubPath logicalSubPath)
throws LODNetworkException
logicalSubPath - logical subpathLODNetworkException
SpatialSubPath[] readSpatialSubPaths(LogicalSubPath[] logicalSubPaths)
throws LODNetworkException
logicalSubPaths - logical subpathLODNetworkException
SpatialHeavyPath readSpatialHeavyPath(LogicalPath path,
boolean includeUserData)
throws LODNetworkException
path - logical path without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkException
SpatialHeavyPath[] readSpatialHeavyPaths(LogicalPath[] paths,
boolean includeUserData)
throws LODNetworkException
paths - logical paths without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkException
SpatialLink readSpatialLink(long linkId,
boolean includeUserData)
throws LODNetworkException
linkId - link IDLODNetworkException
SpatialNode readSpatialNode(long nodeId,
boolean includeUserData)
throws LODNetworkException
nodeId - node IDLODNetworkException
int readNumberOfLinkLevels()
throws LODNetworkException
LODNetworkException
int readMaximumLinkLevel()
throws LODNetworkException
LODNetworkException
int readMaximumLinkLevel(long nodeId)
throws LODNetworkException
nodeId - node IDLODNetworkException
int readMaximumIncomingLinkLevel(long nodeId)
throws LODNetworkException
nodeId - node IDLODNetworkException
int readMaximumOutgoingLinkLevel(long nodeId)
throws LODNetworkException
nodeId - node IDLODNetworkException
NetworkUpdate getNetworkUpdate(int linkLevel,
long[] updatedNodeIds,
long[] deletedNodeIds,
long[] updatedLinkIds,
long[] deletedLinkIds)
throws LODNetworkException
linkLevel - link levelupdatedNodeIds - new and updated node IDsdeletedNodeIds - deleted node IDsupdatedLinkIds - new and updated link IDsdeletedLinkIds - deleted link IDsLODNetworkException
NetworkUpdate getNetworkUpdate(int linkLevel,
long[] changedNodeIds,
long[] changedLinkIds)
throws LODNetworkException
linkLevel - link levelchangedNodeIds - new, updated and deleted node IDschangedLinkIds - new, updated and deleted link IDsLODNetworkException
long writePath(LogicalPath path,
java.lang.String pathName,
java.lang.String pathType)
throws LODNetworkException
path - pathpathName - user specified path namepathType - user specified path typeLODNetworkException
void writePath(LogicalPath path,
long pathId,
java.lang.String pathName,
java.lang.String pathType)
throws LODNetworkException
path - pathpathId - path IDpathName - user specified path namepathType - user specified path typeLODNetworkException
long writeSubPath(LogicalSubPath subPath,
long referencePathId,
java.lang.String subPathName,
java.lang.String subPathType)
throws LODNetworkException
subPath - sub-pathreferencePathId - reference path IDsubPathName - user specified sub-path namesubPathType - user specified sub-path typeLODNetworkException
void writeSubPath(LogicalSubPath subPath,
long subPathId,
long referencePathId,
java.lang.String subPathName,
java.lang.String subPathType)
throws LODNetworkException
subPath - sub-pathsubPathId - sub-path IDreferencePathId - reference path IDsubPathName - user specified sub-path namesubPathType - user specified sub-path typeLODNetworkException
void deletePath(long pathId)
throws LODNetworkException
pathId - path IDLODNetworkException
void deletePaths(long[] pathIds)
throws LODNetworkException
pathIds - path IDsLODNetworkException
void deleteSubPath(long subPathId)
throws LODNetworkException
subPathId - sub-path IDLODNetworkException
void deleteSubPaths(long[] subPathIds)
throws LODNetworkException
subPathIds - sub-path IDsLODNetworkException
void saveConnectedComponents(OrderedLongSet[] components,
int linkLevel)
throws LODNetworkException
components - array of connected components. Each connected component is represented by a set of node IDs.linkLevel - link levelLODNetworkException
void generatePartitionBlobs(int linkLevel,
boolean includeUserData,
boolean commitForEachBlob)
throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or notLODNetworkException
void generatePartitionBlob(int partitionId,
int linkLevel,
boolean includeUserData)
throws LODNetworkException
partitionId - partition IDlinkLevel - link levelincludeUserData - whether to include user data or notLODNetworkExceptionlong getNextTmpNodeId()
long getNextTmpLinkId()
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||