|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.h2gis.network.graph_creator.GraphFunctionParser
public class GraphFunctionParser
A helper class for parsing String arguments to h2network graph functions.
| Nested Class Summary | |
|---|---|
static class |
GraphFunctionParser.Orientation
|
| Field Summary | |
|---|---|
static String |
DIRECTED
|
static String |
EDGE_ORIENTATION_COLUMN
|
static String |
ORIENTATION_ERROR
|
static String |
POSSIBLE_ORIENTATIONS
|
static String |
REVERSED
|
static String |
SEPARATOR
|
static String |
UNDIRECTED
|
| Constructor Summary | |
|---|---|
GraphFunctionParser()
|
|
| Method Summary | |
|---|---|
String |
getEdgeOrientation()
Get the edge orientation column name. |
GraphFunctionParser.Orientation |
getGlobalOrientation()
Get the global orientation string. |
String |
getWeightColumn()
Get the weight column name. |
protected static boolean |
isDestinationsString(String s)
Returns true if the given string contains a comma. |
static int[] |
parseDestinationsString(String s)
Returns an array of destination ids from a comma-separated list of destinations. |
protected String |
parseEdgeOrientation(String v)
Recovers the edge orientation from a string. |
protected static GraphFunctionParser.Orientation |
parseGlobalOrientation(String v)
Recovers the global orientation from a string. |
static TableLocation |
parseInputTable(Connection connection,
String inputTable)
Convert an input table String to a TableLocation |
protected String |
parseWeight(String v)
Recovers the weight column name from a string. |
void |
parseWeightAndOrientation(String arg1,
String arg2)
Parse the weight and orientation(s) from two strings, given in arbitrary order. |
static TableLocation |
suffixTableLocation(TableLocation inputTable,
String suffix)
Suffix a TableLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SEPARATOR
public static final String DIRECTED
public static final String REVERSED
public static final String UNDIRECTED
public static final String EDGE_ORIENTATION_COLUMN
public static final String POSSIBLE_ORIENTATIONS
public static final String ORIENTATION_ERROR
| Constructor Detail |
|---|
public GraphFunctionParser()
| Method Detail |
|---|
protected String parseWeight(String v)
v - String
protected static GraphFunctionParser.Orientation parseGlobalOrientation(String v)
v - String
protected String parseEdgeOrientation(String v)
v - String
public void parseWeightAndOrientation(String arg1,
String arg2)
arg1 - Weight or orientationarg2 - Weight or orientationpublic String getWeightColumn()
public GraphFunctionParser.Orientation getGlobalOrientation()
public String getEdgeOrientation()
protected static boolean isDestinationsString(String s)
s - String
public static int[] parseDestinationsString(String s)
s - Comma-separated list of destinations
public static TableLocation parseInputTable(Connection connection,
String inputTable)
throws SQLException
connection - ConnectioninputTable - Input table
SQLException
public static TableLocation suffixTableLocation(TableLocation inputTable,
String suffix)
inputTable - Input tablesuffix - Suffix
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||