oracle.spatial.network.util
Class FormatTransformerMetis
java.lang.Object
oracle.spatial.network.util.FormatTransformerMetis
public class FormatTransformerMetis
- extends java.lang.Object
Note: We currently only support fmt 1 of MeTis graph Files, i.e. the graph
has weights associated with edges.
|
Method Summary |
protected boolean |
createDestFileDB(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String destFile,
java.lang.String mapTable)
|
protected boolean |
createMapTable(java.sql.Connection conn,
java.lang.String netName,
java.lang.String mapTblNm)
Note: this function will drop table mapTblNm if it exists and
and create a new one. |
boolean |
fromNDM(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String destFile,
java.lang.String auxFile)
|
protected boolean |
getTblNms(java.sql.Connection conn,
java.lang.String networkName)
|
boolean |
loadPartitionDB(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String partitionFile,
java.lang.String mapTableName,
java.lang.String partitionTableName)
|
boolean |
toNDM(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String srcFile,
java.lang.String auxFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatTransformerMetis
public FormatTransformerMetis()
toNDM
public boolean toNDM(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String srcFile,
java.lang.String auxFile)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
fromNDM
public boolean fromNDM(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String destFile,
java.lang.String auxFile)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
loadPartitionDB
public boolean loadPartitionDB(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String partitionFile,
java.lang.String mapTableName,
java.lang.String partitionTableName)
throws java.io.IOException,
java.sql.SQLException
- Throws:
java.io.IOException
java.sql.SQLException
createDestFileDB
protected boolean createDestFileDB(java.sql.Connection conn,
java.lang.String networkName,
java.lang.String destFile,
java.lang.String mapTable)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
createMapTable
protected boolean createMapTable(java.sql.Connection conn,
java.lang.String netName,
java.lang.String mapTblNm)
throws java.sql.SQLException,
java.io.IOException
- Note: this function will drop table mapTblNm if it exists and
and create a new one.
- Throws:
java.sql.SQLException
java.io.IOException
getTblNms
protected boolean getTblNms(java.sql.Connection conn,
java.lang.String networkName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException