public class LODNetworkWrapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
LEVEL_DEBUG |
static int |
LEVEL_ERROR |
static int |
LEVEL_FATAL |
static int |
LEVEL_FINEST |
static int |
LEVEL_INFO |
static int |
LEVEL_WARN |
Modifier and Type | Method and Description |
---|---|
static void |
findConnectedComponents(java.lang.String networkName, int linkLevel, java.lang.String componentTable)
Finds the connected components and writes the node component relationship into component table.
|
static int |
findConnectedComponentsInPartition(java.lang.String networkName, int linkLevel, int partitionId, int startComponentId, java.sql.Array[] nodeArray, java.sql.Array[] componentArray)
Find the connected components within a partition, with all the external nodes and boundary links included.
|
static void |
generatePartitionBlob(java.lang.String networkName, int linkLevel, int partitionId, boolean includeUserData)
Writes partition BLOBs into partition blob table.
|
static void |
generatePartitionBlob(java.lang.String networkName, int linkLevel, int partitionId, boolean includeUserData, boolean performDeltaUpdate)
Writes partition BLOBs into partition blob table.
|
static void |
generatePartitionBlobs(java.lang.String networkName, int linkLevel, java.lang.String partitionBlobTable, boolean includeUserData, boolean commitForEachBlob)
Writes partition BLOBs into partition blob table.
|
static void |
generatePartitionBlobs(java.lang.String networkName, int linkLevel, java.lang.String partitionBlobTable, boolean includeUserData, boolean commitForEachBlob, boolean performDeltaUpdate)
Writes partition BLOBs into partition blob table.
|
static void |
generatePartitionBlobs(java.lang.String networkName, java.lang.String partitionBlobTable, boolean includeUserData, boolean commitForEachBlob, boolean performDeltaUpdate)
Writes partition BLOBs into partition blob table.
|
static long |
getPartitionSize(java.lang.String networkName, int partitionId, int linkLevel, boolean includeUserData, boolean includeSpatialData)
Returns the approximated size of a network partition in bytes
|
static void |
loadConfig(java.sql.Clob configXml)
Reloads the configuration xml.
|
static void |
setConnection(java.sql.Connection conn)
Sets the JDBC connection to the database.
|
static void |
setLoggingLevel(int level)
Sets java global logging level.
|
public static final int LEVEL_FATAL
public static final int LEVEL_ERROR
public static final int LEVEL_WARN
public static final int LEVEL_INFO
public static final int LEVEL_DEBUG
public static final int LEVEL_FINEST
public static void setConnection(java.sql.Connection conn)
conn
- connection to the database. It must be an OracleConnection.public static void setLoggingLevel(int level)
level
- LOD logging level, which can take the following values:
public static void loadConfig(java.sql.Clob configXml) throws LODNetworkException
configXml
- configuration xmlLODNetworkException
public static void generatePartitionBlob(java.lang.String networkName, int linkLevel, int partitionId, boolean includeUserData) throws LODNetworkException
networkName
- network namelinkLevel
- link levelpartitionId
- partition IDincludeUserData
- is user defined data included in the BLOBLODNetworkException
public static void generatePartitionBlobs(java.lang.String networkName, int linkLevel, java.lang.String partitionBlobTable, boolean includeUserData, boolean commitForEachBlob) throws LODNetworkException
networkName
- network namelinkLevel
- link levelpartitionBlobTable
- partition BLOB table nameincludeUserData
- is user defined data included in the BLOBsLODNetworkException
public static void generatePartitionBlob(java.lang.String networkName, int linkLevel, int partitionId, boolean includeUserData, boolean performDeltaUpdate) throws LODNetworkException
networkName
- network namelinkLevel
- link levelpartitionId
- partition IDincludeUserData
- is user defined data included in the BLOBperformDeltaUpdate
- 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
public static void generatePartitionBlobs(java.lang.String networkName, java.lang.String partitionBlobTable, boolean includeUserData, boolean commitForEachBlob, boolean performDeltaUpdate) throws LODNetworkException
networkName
- network namepartitionBlobTable
- partition BLOB table nameincludeUserData
- is user defined data included in the BLOBscommitForEachBlob
- 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
public static void generatePartitionBlobs(java.lang.String networkName, int linkLevel, java.lang.String partitionBlobTable, boolean includeUserData, boolean commitForEachBlob, boolean performDeltaUpdate) throws LODNetworkException
networkName
- network namelinkLevel
- link levelpartitionBlobTable
- partition BLOB table nameincludeUserData
- is user defined data included in the BLOBscommitForEachBlob
- 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
public static void findConnectedComponents(java.lang.String networkName, int linkLevel, java.lang.String componentTable) throws LODNetworkException
networkName
- network namelinkLevel
- link levelcomponentTable
- connected component table nameLODNetworkException
public static int findConnectedComponentsInPartition(java.lang.String networkName, int linkLevel, int partitionId, int startComponentId, java.sql.Array[] nodeArray, java.sql.Array[] componentArray) throws LODNetworkException
networkName
- name of the networklinkLevel
- link level on which the connected component is computedpartitionId
- ID of the partition in which the connected component is computedstartComponentId
- start component ID to be used. All component IDs being assigned to the nodes in the partition must be no smaller than the start component ID.nodeArray
- empty array where the result node IDs are written intocomponentArray
- empty array where the result component IDs are written intoLODNetworkException
public static long getPartitionSize(java.lang.String networkName, int partitionId, int linkLevel, boolean includeUserData, boolean includeSpatialData) throws LODNetworkException, java.lang.Exception
networkName
- network namepartitionId
- partition IDlinkLevel
- link levelincludeUserData
- is user defined data included in the partitionincludeSpatialData
- is spatial information included in the partitionLODNetworkException
java.lang.Exception