public interface NetworkIO
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit()
Sends out commit command to the database.
|
JGeometry[] |
computeFeatureGeometries(Feature[] features, int nodeGeomUserDataCategory, int nodeGeomUserDataIndex, int linkGeomUserDataCategory, int linkGeomUserDataIndex, boolean consolidate)
Constructs the feature geometry from the geometries of its network elements.
|
void |
deleteNetworkBuffer(long id)
Deletes the network buffer from the database.
|
void |
deleteNetworkBuffer(long id, java.lang.String bufferName)
Deletes the network buffer from 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 |
generatePartitionBlob(int partitionId, int linkLevel, boolean includeUserData, boolean performDeltaUpdate)
Generates partition BLOB for the specified partition.
|
void |
generatePartitionBlobs(boolean includeUserData, boolean commitForEachBlob, boolean performDeltaUpdate)
Generates partition BLOBs for all link levels.
|
void |
generatePartitionBlobs(int linkLevel, boolean includeUserData, boolean commitForEachBlob)
Generates partition BLOBs for the specified link level.
|
void |
generatePartitionBlobs(int linkLevel, boolean includeUserData, boolean commitForEachBlob, boolean performDeltaUpdate)
Generates partition BLOBs for the specified link level.
|
java.sql.Connection |
getConnection()
Deprecated.
use getDataSource instead
|
IDataSource |
getDataSource()
Returns the data source.
|
java.lang.String |
getGlobalNetworkName()
Returns the global network name, i.e., the network name that is globally unique, and is used as the cache key for the network.
|
NetworkIOConfig |
getNetworkIOConfig()
Returns the network IO configuration.
|
NetworkMetadata |
getNetworkMetadata()
Returns the network metadata.
|
java.lang.String |
getNetworkName()
Returns the network name used in network metadata.
|
long |
getNextId()
Returns the next value from the NDM ID sequence.
|
long |
getNextTmpLinkId()
Returns the next temporary link ID.
|
long |
getNextTmpNodeId()
Returns the next temporary node ID.
|
PartitionBlobTranslator |
getPartitionBlobTranslator()
Returns the partition blob translator implementation.
|
LODUserDataIO[] |
getUserDataIOs()
Returns the user data IO implementations.
|
boolean[] |
hasLinks(long[] linkIds)
Checks whether the input links exist or not
|
boolean[] |
hasNodes(long[] nodeIds)
Checks whether the input nodes exist or not
|
boolean[] |
isLinksExist(long[] linkIds)
Checks whether the input links exist or not
|
boolean[] |
isNodesExist(long[] nodeIds)
Checks whether the input nodes exist or not
|
boolean |
isReadFromBlob()
Returns true if the partitions are read from BLOB; false if the partitions are read from node/link tables.
|
void |
open() |
LongHashMap<int[]> |
readAdjacentPartitionIdsForLinks(long[] linkIds, int linkLevel)
Retrieves the relevant partition IDs for the specified node IDs.
|
LongHashMap<int[]> |
readAdjacentPartitionIdsForNodes(long[] nodeIds, int linkLevel)
Retrieves the adjacent partition IDs for the specified node IDs.
|
LogicalLink |
readArbitraryLogicalLink(int linkLevel, int[] userDataCategories)
Returns an arbitrary link from the specified link level.
|
LogicalLink[] |
readArbitraryLogicalLinks(int linkLevel, int numberOfLinks, int[] userDataCategories)
Returns an array of arbitrary links from the specified link level.
|
LogicalNode |
readArbitraryLogicalNode(int linkLevel, int[] userDataCategories)
Returns an arbitrary node from the specified link level.
|
LogicalNode[] |
readArbitraryLogicalNodes(int linkLevel, int numberOfNodes, int[] userDataCategories)
Returns an array of arbitrary nodes from the specified link level.
|
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.
|
void |
readFeatureData(LogicalPartition partition, int[] featureLayerIds, int[] userDataCategories)
Adds feature data to the logical partition
|
Feature[] |
readFeatures(int featureLayerId, long[] featureIds, int[] userDataCategories)
Read features.
|
long[] |
readLinkIds(int linkLevel) |
int[] |
readLinkPartitionIds(long[] linkIds, int linkLevel)
Retrieves the partition IDs for the specified links.
|
int[] |
readLinkPartitionIds(long linkId, int linkLevel)
Retrieves the partition IDs for the specified link.
|
LogicalHeavyPath |
readLogicalHeavyPath(LogicalPath path, boolean includeUserData)
Retrieves node and link information for the specified logical path.
|
LogicalHeavyPath |
readLogicalHeavyPath(LogicalPath path, int[] userDataCategories)
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.
|
LogicalHeavyPath[] |
readLogicalHeavyPaths(LogicalPath[] paths, int[] userDataCategories)
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 |
readLogicalLink(long linkId, int[] userDataCategories)
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(int linkLevel, int[] userDataCategories)
Returns the links on the specified link level.
|
LogicalLink[] |
readLogicalLinks(long[] linkIds, boolean includeUserData)
Retrieves the standalone logical links, i.e., the logical link without references to the start and end nodes, for the specified link ID.
|
LogicalLink[] |
readLogicalLinks(long[] linkIds, int[] userDataCategories)
Retrieves the standalone logical links, 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.
|
LogicalBasicNetwork |
readLogicalNetwork(int linkLevel, int[] userDataCategories)
Retrieves the logical network.
|
LogicalBasicNetwork |
readLogicalNetwork(int linkLevel, int[] userDataCategories, int[] featureLayerIds)
Retrieves the logical network.
|
LogicalBasicNetwork |
readLogicalNetwork(int linkLevel, int[] userDataCategories, int[] featureLayerIds, 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 |
readLogicalNode(long nodeId, int[] userDataCategories)
Retrieves the standalone logical node, i.e., the logical node without references to incoming and outgoing links, for the specified node ID.
|
LogicalNode[] |
readLogicalNodes(int linkLevel, int[] userDataCategories)
Returns the nodes on the specified link level.
|
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.
|
LogicalNode[] |
readLogicalNodes(long[] nodeIds, int[] userDataCategories)
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 |
readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories)
Retrieves the logical network partition for the specified partition ID.
|
LogicalPartition |
readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories, boolean readFromBlob)
Retrieves the logical network partition for the specified partition ID.
|
LogicalPartition |
readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds)
Retrieves the logical network partition for the specified partition ID.
|
LogicalPartition |
readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds, 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.
|
LogicalPartition[] |
readLogicalPartitions(int linkLevel, int[] userDataCategories)
Retrieves all the logical network partitions in this network.
|
LogicalPartition[] |
readLogicalPartitions(int linkLevel, int[] userDataCategories, boolean readFromBlob)
Retrieves all the logical network partitions.
|
LogicalPartition[] |
readLogicalPartitions(int linkLevel, int[] userDataCategories, int[] featureLayerIds)
Retrieves all the logical network partitions in this network.
|
LogicalPartition[] |
readLogicalPartitions(int linkLevel, int[] userDataCategories, int[] featureLayerIds, boolean readFromBlob)
Retrieves all the logical network partitions.
|
LogicalPath |
readLogicalPath(long pathId, boolean includeUserData)
Retrieves the logical path for the specified path ID.
|
LogicalPath |
readLogicalPath(long pathId, int[] userDataCategories)
Retrieves the logical path for the specified path ID.
|
LogicalPath[] |
readLogicalPaths(long[] pathIds, boolean includeUserData)
Retrieves the logical paths for the specified path IDs.
|
LogicalPath[] |
readLogicalPaths(long[] pathIds, int[] userDataCategories)
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 |
readLogicalSubPath(long subPathId, int[] userDataCategories)
Retrieves the logical subpath for the specified subpath ID.
|
LogicalSubPath[] |
readLogicalSubPaths(long[] subPathIds, boolean includeUserData)
Retrieves the logical subpaths for the specified subpath IDs.
|
LogicalSubPath[] |
readLogicalSubPaths(long[] subPathIds, int[] userDataCategories)
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.
|
NetworkBuffer |
readNetworkBuffer(long bufferId)
Reads the network buffer with the specified buffer ID.
|
NetworkBuffer |
readNetworkBuffer(long bufferId, java.lang.String bufferName)
Reads the network buffer with the specified buffer ID.
|
NetworkUpdate |
readNetworkUpdate(int linkLevel, java.util.Calendar lastUpdateTime, int[] userDataCategories) |
NetworkUpdate |
readNetworkUpdate(int linkLevel, long[] changedNodeIds, long[] changedLinkIds, int[] userDataCategories)
Constructs network update object according to the changed node and link IDs.
|
NetworkUpdate |
readNetworkUpdate(int linkLevel, long[] updatedNodeIds, long[] deletedNodeIds, long[] updatedLinkIds, long[] deletedLinkIds, int[] userDataCategories)
Constructs network update object according to the changed node and link IDs.
|
NetworkUpdate[] |
readNetworkUpdates(java.util.Calendar lastUpdateTime, int[] userDataCategories) |
long[] |
readNodeIds(int linkLevel)
Retrieves the array of node IDs in the network.
|
int |
readNodePartitionId(long nodeId, int linkLevel)
Retrieves the partition ID for the specified node ID.
|
int[] |
readNodePartitionIds(long[] nodeIds, int linkLevel)
Retrieves the partition IDs for the specified node IDs.
|
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 |
readSpatialHeavyPath(LogicalPath path, int[] userDataCategories)
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.
|
SpatialHeavyPath[] |
readSpatialHeavyPaths(LogicalPath[] paths, int[] userDataCategories)
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.
|
SpatialLink |
readSpatialLink(long linkId, int[] userDataCategories)
Retrieves the spatial link for the specified link ID.
|
SpatialLink[] |
readSpatialLinks(long[] linkIds, boolean includeUserData)
Retrieves the spatial links for the specified link IDs.
|
SpatialLink[] |
readSpatialLinks(long[] linkIds, int[] userDataCategories)
Retrieves the spatial links for the specified link IDs.
|
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.
|
SpatialNode |
readSpatialNode(long nodeId, int[] userDataCategories)
Retrieves the spatial node for the specified node ID.
|
SpatialNode[] |
readSpatialNodes(long[] nodeIds, boolean includeUserData)
Retrieves the spatial nodes for the specified node IDs.
|
SpatialNode[] |
readSpatialNodes(long[] nodeIds, int[] userDataCategories)
Retrieves the spatial nodes for the specified node IDs.
|
SpatialPartition |
readSpatialPartition(int partitionId, int linkLevel, boolean includeUserData)
Retrieves spatial partition.
|
SpatialPartition |
readSpatialPartition(int partitionId, int linkLevel, boolean includeUserData, boolean readFromBlob)
Retrieves spatial partition.
|
SpatialPartition |
readSpatialPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds)
Retrieves spatial partition.
|
SpatialPartition |
readSpatialPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds, boolean readFromBlob)
Retrieves spatial partition.
|
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 |
readSpatialPath(long pathId, int[] userDataCategories)
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.
|
SpatialPath[] |
readSpatialPaths(long[] pathIds, int[] userDataCategories)
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 |
readSpatialSubPath(long subPathId, int[] userDataCategories)
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.
|
SpatialSubPath[] |
readSpatialSubPaths(long[] subPathIds, int[] userDataCategories)
Retrieves the spatial subpath information.
|
void |
readUserData(LogicalPartition partition, int[] userDataCategories)
Adds 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 |
setConnection(java.sql.Connection conn)
Deprecated.
use setDataSource instead
|
void |
setDataSource(IDataSource dataSource)
Sets the data source.
|
void |
setGlobalNetworkName(java.lang.String globalNetworkName)
Sets the global network name, i.e., the network name that is globally unique, and is used as the cache key for the network.
|
void |
setNetworkMetadata(NetworkMetadata metadata)
Sets network metadata
|
void |
setPartitionBlobTranslator(PartitionBlobTranslator translator)
Sets the partition blob translator.
|
void |
setReadFromBlob(boolean readFromBlob)
Sets whether to read partitions from BLOBs.
|
void |
setUserDataIOs(LODUserDataIO[] udios)
Sets the user data IO implementations.
|
void |
updatePartitionBlobInfo(int partitionId, int linkLevel, int numberOfInternalNodes, int numberOfExternalNodes, int numberOfInternalLinks, int numberOfBoundaryLinks, int numberOfIncomingLinks, int numberOfOutgoingLinks, boolean isUserDataIncluded)
Updates the partition BLOB info in the partition BLOB table.
|
long |
writeNetworkBuffer(NetworkBuffer buffer)
Stores the network buffer into the database.
|
void |
writeNetworkBuffer(NetworkBuffer networkBuffer, long bufferId)
Stores the network buffer into the database.
|
void |
writeNetworkBuffer(NetworkBuffer networkBuffer, long bufferId, java.lang.String bufferName)
Stores the network buffer into the database.
|
long |
writeNetworkBuffer(NetworkBuffer buffer, java.lang.String bufferName)
Stores the network buffer into the database.
|
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.
|
void close()
throws LODNetworkException
LODNetworkExceptionvoid open() throws LODNetworkException
LODNetworkExceptionjava.sql.Connection getConnection()
void setConnection(java.sql.Connection conn)
conn -IDataSource getDataSource()
void setDataSource(IDataSource dataSource)
dataSource -java.lang.String getGlobalNetworkName()
void setGlobalNetworkName(java.lang.String globalNetworkName)
globalNetworkName - global network namejava.lang.String getNetworkName()
NetworkMetadata getNetworkMetadata()
NetworkIOConfig getNetworkIOConfig()
void setNetworkMetadata(NetworkMetadata metadata)
metadata - network metadataLODUserDataIO[] getUserDataIOs()
void setUserDataIOs(LODUserDataIO[] udios)
udios -boolean isReadFromBlob()
void setReadFromBlob(boolean readFromBlob)
readFromBlob - true if the partitions are read from BLOBs; false if the partitions are read from node/link tables.PartitionBlobTranslator getPartitionBlobTranslator()
void setPartitionBlobTranslator(PartitionBlobTranslator translator)
translator -
void commit()
throws LODNetworkException
LODNetworkException
void rollback()
throws LODNetworkException
LODNetworkException
long getNextId()
throws LODNetworkException
LODNetworkException
boolean[] isNodesExist(long[] nodeIds)
throws LODNetworkException
nodeIds - IDs of the nodesLODNetworkException
boolean[] hasNodes(long[] nodeIds)
throws LODNetworkException
nodeIds - IDs of the nodesLODNetworkException
boolean[] isLinksExist(long[] linkIds)
throws LODNetworkException
linkIds - IDs of the linksLODNetworkException
boolean[] hasLinks(long[] linkIds)
throws LODNetworkException
linkIds - IDs of the linksLODNetworkException
void updatePartitionBlobInfo(int partitionId,
int linkLevel,
int numberOfInternalNodes,
int numberOfExternalNodes,
int numberOfInternalLinks,
int numberOfBoundaryLinks,
int numberOfIncomingLinks,
int numberOfOutgoingLinks,
boolean isUserDataIncluded)
throws LODNetworkException
partitionId - partition IDlinkLevel - link levelnumberOfInternalNodes - number of internal nodesnumberOfExternalNodes - number of external nodesnumberOfInternalLinks - number of internal linksnumberOfBoundaryLinks - number of boundary linksnumberOfIncomingLinks - number of incoming linksnumberOfOutgoingLinks - number of outgoing linksisUserDataIncluded - whether user data is included in the partition BLOB or notLODNetworkException
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
long[] readLinkIds(int linkLevel)
throws LODNetworkException
LODNetworkExceptionLogicalNode[] readLogicalNodes(int linkLevel, int[] userDataCategories) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be loadedLODNetworkExceptionLogicalLink[] readLogicalLinks(int linkLevel, int[] userDataCategories) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be loadedLODNetworkExceptionLogicalNode[] readArbitraryLogicalNodes(int linkLevel, int numberOfNodes, int[] userDataCategories) throws LODNetworkException
linkLevel - link levelnumberOfNodes - number of nodesuserDataCategories - user data categories to be includedLODNetworkExceptionLogicalLink[] readArbitraryLogicalLinks(int linkLevel, int numberOfLinks, int[] userDataCategories) throws LODNetworkException
linkLevel - link levelnumberOfLinks - number of linksuserDataCategories - user data categories to be includedLODNetworkExceptionLogicalNode readArbitraryLogicalNode(int linkLevel, int[] userDataCategories) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedLODNetworkExceptionLogicalLink readArbitraryLogicalLink(int linkLevel, int[] userDataCategories) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedLODNetworkExceptionLogicalBasicNetwork 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 tableLODNetworkExceptionLogicalBasicNetwork readLogicalNetwork(int linkLevel, int[] userDataCategories, int[] featureLayerIds, boolean readFromBlob) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedreadFromBlob - whether to read from BLOBs or from tableLODNetworkExceptionLogicalBasicNetwork readLogicalNetwork(int linkLevel, boolean includeUserData) throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or notLODNetworkExceptionLogicalBasicNetwork readLogicalNetwork(int linkLevel, int[] userDataCategories) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedLODNetworkExceptionLogicalBasicNetwork readLogicalNetwork(int linkLevel, int[] userDataCategories, int[] featureLayerIds) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedLODNetworkExceptionLogicalPartition 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 tableLODNetworkExceptionLogicalPartition readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories, boolean readFromBlob) throws LODNetworkException
partitionId - partition IDlinkLevel - link leveluserDataCategories - user data categories to be includedreadFromBlob - whether to read from BLOBs or from tableLODNetworkExceptionLogicalPartition readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds, boolean readFromBlob) throws LODNetworkException
partitionId - partition IDlinkLevel - link leveluserDataCategories - user data categories to be includedfeatureLayerIds - feature layers to be includedreadFromBlob - whether to read from BLOBs or from tableLODNetworkExceptionLogicalPartition readLogicalPartition(int partitionId, int linkLevel, boolean includeUserData) throws LODNetworkException
partitionId - partition IDlinkLevel - link levelincludeUserData - whether to include user data or notLODNetworkExceptionLogicalPartition readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories) throws LODNetworkException
partitionId - partition IDlinkLevel - link leveluserDataCategories - user data categories to be includedLODNetworkExceptionLogicalPartition readLogicalPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds) throws LODNetworkException
partitionId - partition IDlinkLevel - link leveluserDataCategories - user data categories to be includedfeatureLayerIds - feature layer IDsLODNetworkExceptionLogicalPartition[] 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 tableLODNetworkExceptionLogicalPartition[] readLogicalPartitions(int linkLevel, int[] userDataCategories, int[] featureLayerIds, boolean readFromBlob) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedreadFromBlob - whether to read from BLOBs or from tableLODNetworkExceptionLogicalPartition[] readLogicalPartitions(int linkLevel, int[] userDataCategories, boolean readFromBlob) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedreadFromBlob - whether to read from BLOBs or from tableLODNetworkExceptionLogicalPartition[] readLogicalPartitions(int linkLevel, boolean includeUserData) throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or notLODNetworkExceptionLogicalPartition[] readLogicalPartitions(int linkLevel, int[] userDataCategories) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedLODNetworkExceptionLogicalPartition[] readLogicalPartitions(int linkLevel, int[] userDataCategories, int[] featureLayerIds) throws LODNetworkException
linkLevel - link leveluserDataCategories - user data categories to be includedfeatureLayerIds - feature layer IDsLODNetworkExceptionvoid readUserData(LogicalPartition partition, int[] userDataCategories) throws LODNetworkException
partition - logical partitionuserDataCategories - user data categories to be includedLODNetworkException
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
int readNodePartitionId(long nodeId,
int linkLevel)
throws LODNetworkException
nodeId - node IDlinkLevel - link levelLODNetworkException
int[] readNodePartitionIds(long[] nodeIds,
int linkLevel)
throws LODNetworkException
nodeIds - node IDslinkLevel - link levelLODNetworkException
int[] readLinkPartitionIds(long linkId,
int linkLevel)
throws LODNetworkException
linkId - link IDlinkLevel - link levelLODNetworkException
int[] readLinkPartitionIds(long[] linkIds,
int linkLevel)
throws LODNetworkException
linkIds - link IDslinkLevel - link levelLODNetworkExceptionLongHashMap<int[]> readAdjacentPartitionIdsForNodes(long[] nodeIds, int linkLevel) throws LODNetworkException
nodeIds - node IDslinkLevel - link levelLODNetworkExceptionLongHashMap<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 levelLODNetworkExceptionLogicalLink readLogicalLink(long linkId, boolean includeUserData) throws LODNetworkException
linkId - link IDincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalLink readLogicalLink(long linkId, int[] userDataCategories) throws LODNetworkException
linkId - link IDuserDataCategories - user data categories to be includedLODNetworkExceptionLogicalLink[] readLogicalLinks(long[] linkIds, boolean includeUserData) throws LODNetworkException
linkIds - link IDincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalLink[] readLogicalLinks(long[] linkIds, int[] userDataCategories) throws LODNetworkException
linkIds - link IDuserDataCategories -LODNetworkExceptionLogicalNode readLogicalNode(long nodeId, boolean includeUserData) throws LODNetworkException
nodeId - node IDincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalNode[] readLogicalNodes(long[] nodeIds, boolean includeUserData) throws LODNetworkException
nodeIds - node IDsincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalNode readLogicalNode(long nodeId, int[] userDataCategories) throws LODNetworkException
nodeId - node IDuserDataCategories -LODNetworkExceptionLogicalNode[] readLogicalNodes(long[] nodeIds, int[] userDataCategories) throws LODNetworkException
nodeIds - node IDsuserDataCategories -LODNetworkExceptionLogicalPath readLogicalPath(long pathId, boolean includeUserData) throws LODNetworkException
pathId - path IDincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalPath[] readLogicalPaths(long[] pathIds, boolean includeUserData) throws LODNetworkException
pathIds - path IDsincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalPath readLogicalPath(long pathId, int[] userDataCategories) throws LODNetworkException
pathId - path IDuserDataCategories -LODNetworkExceptionLogicalPath[] readLogicalPaths(long[] pathIds, int[] userDataCategories) throws LODNetworkException
pathIds - path IDsuserDataCategories -LODNetworkExceptionLogicalSubPath readLogicalSubPath(long subPathId, boolean includeUserData) throws LODNetworkException
subPathId - subpath IDincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalSubPath[] readLogicalSubPaths(long[] subPathIds, boolean includeUserData) throws LODNetworkException
subPathIds - subpath IDsincludeUserData - whether to include the userdata or notLODNetworkExceptionLogicalSubPath readLogicalSubPath(long subPathId, int[] userDataCategories) throws LODNetworkException
subPathId - subpath IDuserDataCategories -LODNetworkExceptionLogicalSubPath[] readLogicalSubPaths(long[] subPathIds, int[] userDataCategories) throws LODNetworkException
subPathIds - subpath IDsuserDataCategories -LODNetworkExceptionLogicalHeavyPath readLogicalHeavyPath(LogicalPath path, boolean includeUserData) throws LODNetworkException
path - logical path without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkExceptionLogicalHeavyPath[] readLogicalHeavyPaths(LogicalPath[] paths, boolean includeUserData) throws LODNetworkException
paths - logical paths without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkExceptionLogicalHeavyPath readLogicalHeavyPath(LogicalPath path, int[] userDataCategories) throws LODNetworkException
path - logical path without detailed node and link informationuserDataCategories -LODNetworkExceptionLogicalHeavyPath[] readLogicalHeavyPaths(LogicalPath[] paths, int[] userDataCategories) throws LODNetworkException
paths - logical paths without detailed node and link informationuserDataCategories -LODNetworkExceptionSpatialBasicNetwork readSpatialNetwork(LogicalBasicNetwork logicalNetwork) throws LODNetworkException
logicalNetwork - logical networkLODNetworkExceptionSpatialPartition readSpatialPartition(LogicalPartition logicalPartition) throws LODNetworkException
logicalPartition - logical network partitionLODNetworkExceptionSpatialPartition readSpatialPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds) throws LODNetworkException
partitionId - partitionIdlinkLevel - linkLeveluserDataCategories - user data categoriesLODNetworkExceptionSpatialPartition readSpatialPartition(int partitionId, int linkLevel, boolean includeUserData) throws LODNetworkException
partitionId - partitionIdlinkLevel - linkLevelincludeUserData - whether to include user data or notLODNetworkExceptionSpatialPartition readSpatialPartition(int partitionId, int linkLevel, boolean includeUserData, boolean readFromBlob) throws LODNetworkException
partitionId - partitionIdlinkLevel - linkLevelincludeUserData - whether to include user data or notreadFromBlob - whether to read from BLOB or notLODNetworkExceptionSpatialPartition readSpatialPartition(int partitionId, int linkLevel, int[] userDataCategories, int[] featureLayerIds, boolean readFromBlob) throws LODNetworkException
partitionId - partitionIdlinkLevel - linkLeveluserDataCategories - user data categoriesreadFromBlob - whether to read from BLOB or notLODNetworkExceptionJGeometry readSpatialPartitionMBR(int partitionId, int linkLevel) throws LODNetworkException
partitionId - partition IDlinkLevel - link levelLODNetworkExceptionjava.util.Map<java.lang.Integer,JGeometry> readSpatialPartitionMBRs(int linkLevel) throws LODNetworkException
linkLevel - link levelLODNetworkExceptionSpatialPath readSpatialPath(long pathId, boolean includeUserData) throws LODNetworkException
pathId - path IDincludeUserData - whether to include the userdata or notLODNetworkExceptionSpatialPath readSpatialPath(long pathId, int[] userDataCategories) throws LODNetworkException
pathId - path IDuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialPath[] readSpatialPaths(long[] pathIds, boolean includeUserData) throws LODNetworkException
pathIds - path IDincludeUserData - whether to include the userdata or notLODNetworkExceptionSpatialPath[] readSpatialPaths(long[] pathIds, int[] userDataCategories) throws LODNetworkException
pathIds - path IDuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialPath readSpatialPath(LogicalPath logicalPath) throws LODNetworkException
logicalPath - logical pathLODNetworkExceptionSpatialPath[] readSpatialPaths(LogicalPath[] logicalPath) throws LODNetworkException
logicalPath - logical pathLODNetworkExceptionSpatialSubPath readSpatialSubPath(long subPathId, boolean includeUserData) throws LODNetworkException
subPathId - subpath IDincludeUserData - whether to include the userdata or notLODNetworkExceptionSpatialSubPath readSpatialSubPath(long subPathId, int[] userDataCategories) throws LODNetworkException
subPathId - subpath IDuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialSubPath[] readSpatialSubPaths(long[] subPathIds, boolean includeUserData) throws LODNetworkException
subPathIds - subpath IDsincludeUserData - whether to include the userdata or notLODNetworkExceptionSpatialSubPath[] readSpatialSubPaths(long[] subPathIds, int[] userDataCategories) throws LODNetworkException
subPathIds - subpath IDsuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialSubPath readSpatialSubPath(LogicalSubPath logicalSubPath) throws LODNetworkException
logicalSubPath - logical subpathLODNetworkExceptionSpatialSubPath[] readSpatialSubPaths(LogicalSubPath[] logicalSubPaths) throws LODNetworkException
logicalSubPaths - logical subpathLODNetworkExceptionSpatialHeavyPath readSpatialHeavyPath(LogicalPath path, boolean includeUserData) throws LODNetworkException
path - logical path without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkExceptionSpatialHeavyPath readSpatialHeavyPath(LogicalPath path, int[] userDataCategories) throws LODNetworkException
path - logical path without detailed node and link informationuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialHeavyPath[] readSpatialHeavyPaths(LogicalPath[] paths, boolean includeUserData) throws LODNetworkException
paths - logical paths without detailed node and link informationincludeUserData - whether to include user data or notLODNetworkExceptionSpatialHeavyPath[] readSpatialHeavyPaths(LogicalPath[] paths, int[] userDataCategories) throws LODNetworkException
paths - logical paths without detailed node and link informationuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialLink readSpatialLink(long linkId, boolean includeUserData) throws LODNetworkException
linkId - link IDLODNetworkExceptionSpatialLink readSpatialLink(long linkId, int[] userDataCategories) throws LODNetworkException
linkId - link IDuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialLink[] readSpatialLinks(long[] linkIds, boolean includeUserData) throws LODNetworkException
linkIds - link IDsLODNetworkExceptionSpatialLink[] readSpatialLinks(long[] linkIds, int[] userDataCategories) throws LODNetworkException
linkIds - link IDsuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialNode readSpatialNode(long nodeId, boolean includeUserData) throws LODNetworkException
nodeId - node IDLODNetworkExceptionSpatialNode readSpatialNode(long nodeId, int[] userDataCategories) throws LODNetworkException
nodeId - node IDuserDataCategories - user data categories to be includedLODNetworkExceptionSpatialNode[] readSpatialNodes(long[] nodeIds, boolean includeUserData) throws LODNetworkException
nodeIds - node IDsLODNetworkExceptionSpatialNode[] readSpatialNodes(long[] nodeIds, int[] userDataCategories) throws LODNetworkException
nodeIds - node IDsuserDataCategories - user data categories to be includedLODNetworkException
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 IDLODNetworkExceptionNetworkUpdate readNetworkUpdate(int linkLevel, long[] updatedNodeIds, long[] deletedNodeIds, long[] updatedLinkIds, long[] deletedLinkIds, int[] userDataCategories) throws LODNetworkException
linkLevel - link levelupdatedNodeIds - new and updated node IDsdeletedNodeIds - deleted node IDsupdatedLinkIds - new and updated link IDsdeletedLinkIds - deleted link IDsLODNetworkExceptionNetworkUpdate readNetworkUpdate(int linkLevel, long[] changedNodeIds, long[] changedLinkIds, int[] userDataCategories) throws LODNetworkException
linkLevel - link levelchangedNodeIds - new, updated and deleted node IDschangedLinkIds - new, updated and deleted link IDsLODNetworkExceptionNetworkUpdate readNetworkUpdate(int linkLevel, java.util.Calendar lastUpdateTime, int[] userDataCategories) throws LODNetworkException
LODNetworkExceptionNetworkUpdate[] readNetworkUpdates(java.util.Calendar lastUpdateTime, int[] userDataCategories) throws LODNetworkException
LODNetworkExceptionlong writePath(LogicalPath path, java.lang.String pathName, java.lang.String pathType) throws LODNetworkException
path - pathpathName - user specified path namepathType - user specified path typeLODNetworkExceptionvoid 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 typeLODNetworkExceptionlong 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 typeLODNetworkExceptionvoid 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 IDsLODNetworkExceptionNetworkBuffer readNetworkBuffer(long bufferId) throws LODNetworkException
bufferId - ID of the network bufferLODNetworkExceptionNetworkBuffer readNetworkBuffer(long bufferId, java.lang.String bufferName) throws LODNetworkException
bufferId - ID of the network bufferbufferName - name of the network bufferLODNetworkExceptionlong writeNetworkBuffer(NetworkBuffer buffer) throws LODNetworkException
buffer - network buffer to be storedLODNetworkExceptionlong writeNetworkBuffer(NetworkBuffer buffer, java.lang.String bufferName) throws LODNetworkException
buffer - network buffer to be storedLODNetworkExceptionvoid writeNetworkBuffer(NetworkBuffer networkBuffer, long bufferId) throws LODNetworkException
networkBuffer - network buffer to be storedbufferId - ID of the network buffer in the databaseLODNetworkExceptionvoid writeNetworkBuffer(NetworkBuffer networkBuffer, long bufferId, java.lang.String bufferName) throws LODNetworkException
networkBuffer - network buffer to be storedbufferId - ID of the network buffer in the databaseLODNetworkException
void deleteNetworkBuffer(long id)
throws LODNetworkException
id - ID of the network bufferLODNetworkException
void deleteNetworkBuffer(long id,
java.lang.String bufferName)
throws LODNetworkException
id - ID of the network bufferbufferName - name of the network bufferLODNetworkExceptionvoid 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 not. If set to true, user data of category 0 will be included in the blob.commitForEachBlob - whether to call commit after writing the BLOB for each partitionLODNetworkException
void generatePartitionBlobs(boolean includeUserData,
boolean commitForEachBlob,
boolean performDeltaUpdate)
throws LODNetworkException
includeUserData - whether to include user data or not. If set to true, user data of category 0 will be included in the blob.commitForEachBlob - whether to call commit after writing the BLOB for each partitionperformDeltaUpdate - whether to use network update history to perform delta update on existing BLOBs or to reload the network information directly from the network node and link tables/views.LODNetworkException
void generatePartitionBlobs(int linkLevel,
boolean includeUserData,
boolean commitForEachBlob,
boolean performDeltaUpdate)
throws LODNetworkException
linkLevel - link levelincludeUserData - whether to include user data or not. If set to true, user data of category 0 will be included in the blob.commitForEachBlob - whether to call commit after writing the BLOB for each partitionperformDeltaUpdate - whether to use network update history to perform delta update on existing BLOBs or to reload the network information directly from the network node and link tables/views.LODNetworkException
void generatePartitionBlob(int partitionId,
int linkLevel,
boolean includeUserData)
throws LODNetworkException
partitionId - partition IDlinkLevel - link levelincludeUserData - whether to include user data or not. If set to true, user data of category 0 will be included in the blob.LODNetworkException
void generatePartitionBlob(int partitionId,
int linkLevel,
boolean includeUserData,
boolean performDeltaUpdate)
throws LODNetworkException
partitionId - partition IDlinkLevel - link levelincludeUserData - whether to include user data or not. If set to true, user data of category 0 will be included in the blob.performDeltaUpdate - whether to use network update history to perform delta update on existing BLOBs or to reload the network information directly from the network node and link tables/views.LODNetworkExceptionlong getNextTmpNodeId()
long getNextTmpLinkId()
void readFeatureData(LogicalPartition partition, int[] featureLayerIds, int[] userDataCategories) throws LODNetworkException
partition - logical partitionfeatureLayerIds - feature layer IDsLODNetworkExceptionFeature[] readFeatures(int featureLayerId, long[] featureIds, int[] userDataCategories) throws LODNetworkException
featureIds - feature IDsLODNetworkExceptionJGeometry[] computeFeatureGeometries(Feature[] features, int nodeGeomUserDataCategory, int nodeGeomUserDataIndex, int linkGeomUserDataCategory, int linkGeomUserDataIndex, boolean consolidate) throws LODNetworkException
features -nodeGeomUserDataCategory -nodeGeomUserDataIndex -linkGeomUserDataCategory -linkGeomUserDataIndex -consolidate - whether to consolidate the overlapping points into one point and connect the links that touches each other into one linkLODNetworkException