public class VisualizeIsochroneRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.visualizeIsochrone(VisualizeIsochroneRequest)
.
Generate an image containing isolines for travel results using an existing graph. Isolines represent curves of equal cost, with cost typically referring to the time or distance assigned as the weights of the underlying graph. See Network Graphs & Solvers for more information on graphs. .
Modifier and Type | Class and Description |
---|---|
static class |
VisualizeIsochroneRequest.ContourOptions
Solver specific parameters
PROJECTION : Spatial Reference System (i.e. |
static class |
VisualizeIsochroneRequest.GenerateImage
If set to
true , generates a PNG image of the isochrones in the
response. |
static class |
VisualizeIsochroneRequest.Options
Additional parameters
SOLVE_TABLE : Name of the table to host intermediate solve results
containing the position and cost for each vertex in the graph. |
static class |
VisualizeIsochroneRequest.SolveOptions
Solver specific parameters
REMOVE_PREVIOUS_RESTRICTIONS : Ignore the restrictions applied to the
graph during the creation stage and only use the restrictions specified
in this request if set to true . |
static class |
VisualizeIsochroneRequest.StyleOptions
Various style related options of the isochrone image.
|
Constructor and Description |
---|
VisualizeIsochroneRequest()
Constructs a VisualizeIsochroneRequest object with default parameters.
|
VisualizeIsochroneRequest(String graphName,
String sourceNode,
double maxSolutionRadius,
List<String> weightsOnEdges,
List<String> restrictions,
int numLevels,
boolean generateImage,
String levelsTable,
Map<String,String> styleOptions,
Map<String,String> solveOptions,
Map<String,String> contourOptions,
Map<String,String> options)
Constructs a VisualizeIsochroneRequest object with the specified
parameters.
|
public VisualizeIsochroneRequest()
public VisualizeIsochroneRequest(String graphName, String sourceNode, double maxSolutionRadius, List<String> weightsOnEdges, List<String> restrictions, int numLevels, boolean generateImage, String levelsTable, Map<String,String> styleOptions, Map<String,String> solveOptions, Map<String,String> contourOptions, Map<String,String> options)
graphName
- Name of the graph on which the isochrone is to be
computed.sourceNode
- Starting vertex on the underlying graph from/to which
the isochrones are created.maxSolutionRadius
- Extent of the search radius around sourceNode
. Set to '-1.0' for unrestricted
search radius. The default value is -1.0.weightsOnEdges
- Additional weights to apply to the edges of an
existing graph. Weights must be specified using
identifiers; identifiers are
grouped as combinations. Identifiers can
be used with existing column names, e.g.,
'table.column AS WEIGHTS_EDGE_ID', or
expressions, e.g., 'ST_LENGTH(wkt) AS
WEIGHTS_VALUESPECIFIED'. Any provided weights
will be added (in the case of
'WEIGHTS_VALUESPECIFIED') to or multiplied with
(in the case of 'WEIGHTS_FACTORSPECIFIED') the
existing weight(s). The default value is an
empty List
.restrictions
- Additional restrictions to apply to the nodes/edges
of an existing graph. Restrictions must be
specified using identifiers; identifiers are
grouped as combinations. Identifiers can be
used with existing column names, e.g.,
'table.column AS RESTRICTIONS_EDGE_ID', or
expressions, e.g., 'column/2 AS
RESTRICTIONS_VALUECOMPARED'. If remove_previous_restrictions
is set to true
, any provided restrictions will replace the
existing restrictions. If remove_previous_restrictions
is set to false
, any provided restrictions will be added (in
the case of 'RESTRICTIONS_VALUECOMPARED') to or
replaced (in the case of
'RESTRICTIONS_ONOFFCOMPARED'). The default value
is an empty List
.numLevels
- Number of equally-separated isochrones to compute.
The default value is 1.generateImage
- If set to true
, generates a PNG image of
the isochrones in the response.
Supported values:
The default value is TRUE
.levelsTable
- Name of the table to output the isochrones,
containing levels and their corresponding WKT
geometry. If no value is provided, the table is not
generated. The default value is ''.styleOptions
- Various style related options of the isochrone
image.
LINE_SIZE
: The width of the contour lines in
pixels. The default value is '3'.
COLOR
: Color of generated isolines. All color
values must be in the format RRGGBB or AARRGGBB (to
specify the alpha value). If alpha is specified and
flooded contours are enabled, it will be used for
as the transparency of the latter. The default
value is 'FF696969'.
BG_COLOR
: When generateImage
is set to
true
, background color of the generated
image. All color values must be in the format
RRGGBB or AARRGGBB (to specify the alpha value).
The default value is '00000000'.
TEXT_COLOR
: When add_labels
is set to
true
, color for the labels. All color
values must be in the format RRGGBB or AARRGGBB (to
specify the alpha value). The default value is
'FF000000'.
COLORMAP
: Colormap for contours or fill-in regions
when applicable. All color values must be in the
format RRGGBB or AARRGGBB (to specify the alpha
value)
Supported values:
JET
ACCENT
AFMHOT
AUTUMN
BINARY
BLUES
BONE
BRBG
BRG
BUGN
BUPU
BWR
CMRMAP
COOL
COOLWARM
COPPER
CUBEHELIX
DARK2
FLAG
GIST_EARTH
GIST_GRAY
GIST_HEAT
GIST_NCAR
GIST_RAINBOW
GIST_STERN
GIST_YARG
GNBU
GNUPLOT2
GNUPLOT
GRAY
GREENS
GREYS
HOT
HSV
INFERNO
MAGMA
NIPY_SPECTRAL
OCEAN
ORANGES
ORRD
PAIRED
PASTEL1
PASTEL2
PINK
PIYG
PLASMA
PRGN
PRISM
PUBU
PUBUGN
PUOR
PURD
PURPLES
RAINBOW
RDBU
RDGY
RDPU
RDYLBU
RDYLGN
REDS
SEISMIC
SET1
SET2
SET3
SPECTRAL
SPRING
SUMMER
TERRAIN
VIRIDIS
WINTER
WISTIA
YLGN
YLGNBU
YLORBR
YLORRD
JET
.
solveOptions
- Solver specific parameters
REMOVE_PREVIOUS_RESTRICTIONS
: Ignore the
restrictions applied to the graph during the
creation stage and only use the restrictions
specified in this request if set to true
.
Supported values:
The default value is FALSE
.
RESTRICTION_THRESHOLD_VALUE
: Value-based
restriction comparison. Any node or edge with a
'RESTRICTIONS_VALUECOMPARED' value greater than the
restriction_threshold_value
will not be
included in the solution.
UNIFORM_WEIGHTS
: When specified, assigns the given
value to all the edges in the graph. Note that
weights provided in weightsOnEdges
will
override this value.
Map
.contourOptions
- Solver specific parameters
PROJECTION
: Spatial Reference System (i.e. EPSG
Code).
Supported values:
The default value is PLATE_CARREE
.
WIDTH
: When generateImage
is set to
true
, width of the generated image. The
default value is '512'.
HEIGHT
: When generateImage
is set to
true
, height of the generated image. If
the default value is used, the height
is
set to the value resulting from multiplying the
aspect ratio by the width
. The default
value is '-1'.
SEARCH_RADIUS
: When interpolating the graph
solution to generate the isochrone, neighborhood
of influence of sample data (in percent of the
image/grid). The default value is '20'.
GRID_SIZE
: When interpolating the graph solution
to generate the isochrone, number of subdivisions
along the x axis when building the grid (the y is
computed using the aspect ratio of the output
image). The default value is '100'.
COLOR_ISOLINES
: Color each isoline according to
the colormap; otherwise, use the foreground
color.
Supported values:
The default value is TRUE
.
ADD_LABELS
: If set to true
, add labels
to the isolines.
Supported values:
The default value is FALSE
.
LABELS_FONT_SIZE
: When add_labels
is set
to true
, size of the font (in pixels) to
use for labels. The default value is '12'.
LABELS_FONT_FAMILY
: When add_labels
is
set to true
, font name to be used when
adding labels. The default value is 'arial'.
LABELS_SEARCH_WINDOW
: When add_labels
is
set to true
, a search window is used to
rate the local quality of each isoline. Smooth,
continuous, long stretches with relatively flat
angles are favored. The provided value is
multiplied by the labels_font_size
to
calculate the final window size. The default
value is '4'.
LABELS_INTRALEVEL_SEPARATION
: When add_labels
is set to true
, this value
determines the distance (in multiples of the
labels_font_size
) to use when separating
labels of different values. The default value is
'4'.
LABELS_INTERLEVEL_SEPARATION
: When add_labels
is set to true
, this value
determines the distance (in percent of the total
window size) to use when separating labels of the
same value. The default value is '20'.
LABELS_MAX_ANGLE
: When add_labels
is set
to true
, maximum angle (in degrees) from
the vertical to use when adding labels. The
default value is '60'.
Map
.options
- Additional parameters
SOLVE_TABLE
: Name of the table to host intermediate
solve results containing the position and cost for each
vertex in the graph. If the default value is used, a
temporary table is created and deleted once the solution
is calculated. The default value is ''.
IS_REPLICATED
: If set to true
, replicate the
solve_table
.
Supported values:
The default value is TRUE
.
DATA_MIN_X
: Lower bound for the x values. If not
provided, it will be computed from the bounds of the
input data.
DATA_MAX_X
: Upper bound for the x values. If not
provided, it will be computed from the bounds of the
input data.
DATA_MIN_Y
: Lower bound for the y values. If not
provided, it will be computed from the bounds of the
input data.
DATA_MAX_Y
: Upper bound for the y values. If not
provided, it will be computed from the bounds of the
input data.
CONCAVITY_LEVEL
: Factor to qualify the concavity of the
isochrone curves. The lower the value, the more convex
(with '0' being completely convex and '1' being the most
concave). The default value is '0.5'.
USE_PRIORITY_QUEUE_SOLVERS
: sets the solver methods
explicitly if true
Supported values:
TRUE
: uses the solvers scheduled for 'shortest_path'
and 'inverse_shortest_path' based on solve_direction
FALSE
: uses the solvers 'priority_queue' and
'inverse_priority_queue' based on solve_direction
FALSE
.
SOLVE_DIRECTION
: Specify whether we are going to the
source node, or starting from it.
Supported values:
FROM_SOURCE
: Shortest path to get to the source
(inverse Dijkstra)
TO_SOURCE
: Shortest path to source (Dijkstra)
FROM_SOURCE
.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getGraphName()
public VisualizeIsochroneRequest setGraphName(String graphName)
graphName
- Name of the graph on which the isochrone is to be
computed.this
to mimic the builder pattern.public String getSourceNode()
public VisualizeIsochroneRequest setSourceNode(String sourceNode)
sourceNode
- Starting vertex on the underlying graph from/to which
the isochrones are created.this
to mimic the builder pattern.public double getMaxSolutionRadius()
sourceNode
. Set to
'-1.0' for unrestricted search radius. The default value is
-1.0.public VisualizeIsochroneRequest setMaxSolutionRadius(double maxSolutionRadius)
maxSolutionRadius
- Extent of the search radius around sourceNode
. Set to '-1.0' for unrestricted
search radius. The default value is -1.0.this
to mimic the builder pattern.public List<String> getWeightsOnEdges()
List
.public VisualizeIsochroneRequest setWeightsOnEdges(List<String> weightsOnEdges)
weightsOnEdges
- Additional weights to apply to the edges of an
existing graph. Weights must be specified using
identifiers; identifiers are
grouped as combinations. Identifiers can
be used with existing column names, e.g.,
'table.column AS WEIGHTS_EDGE_ID', or
expressions, e.g., 'ST_LENGTH(wkt) AS
WEIGHTS_VALUESPECIFIED'. Any provided weights
will be added (in the case of
'WEIGHTS_VALUESPECIFIED') to or multiplied with
(in the case of 'WEIGHTS_FACTORSPECIFIED') the
existing weight(s). The default value is an
empty List
.this
to mimic the builder pattern.public List<String> getRestrictions()
remove_previous_restrictions
is set to true
, any
provided restrictions will replace the existing restrictions. If
remove_previous_restrictions
is set to false
,
any provided restrictions will be added (in the case of
'RESTRICTIONS_VALUECOMPARED') to or replaced (in the case of
'RESTRICTIONS_ONOFFCOMPARED'). The default value is an empty
List
.public VisualizeIsochroneRequest setRestrictions(List<String> restrictions)
restrictions
- Additional restrictions to apply to the nodes/edges
of an existing graph. Restrictions must be
specified using identifiers; identifiers are
grouped as combinations. Identifiers can be
used with existing column names, e.g.,
'table.column AS RESTRICTIONS_EDGE_ID', or
expressions, e.g., 'column/2 AS
RESTRICTIONS_VALUECOMPARED'. If remove_previous_restrictions
is set to true
, any provided restrictions will replace the
existing restrictions. If remove_previous_restrictions
is set to false
, any provided restrictions will be added (in
the case of 'RESTRICTIONS_VALUECOMPARED') to or
replaced (in the case of
'RESTRICTIONS_ONOFFCOMPARED'). The default value
is an empty List
.this
to mimic the builder pattern.public int getNumLevels()
public VisualizeIsochroneRequest setNumLevels(int numLevels)
numLevels
- Number of equally-separated isochrones to compute.
The default value is 1.this
to mimic the builder pattern.public boolean getGenerateImage()
public VisualizeIsochroneRequest setGenerateImage(boolean generateImage)
public String getLevelsTable()
public VisualizeIsochroneRequest setLevelsTable(String levelsTable)
levelsTable
- Name of the table to output the isochrones,
containing levels and their corresponding WKT
geometry. If no value is provided, the table is not
generated. The default value is ''.this
to mimic the builder pattern.public Map<String,String> getStyleOptions()
LINE_SIZE
: The width of the contour lines in pixels. The
default value is '3'.
COLOR
: Color of generated isolines. All color values must be in
the format RRGGBB or AARRGGBB (to specify the alpha value). If
alpha is specified and flooded contours are enabled, it will be
used for as the transparency of the latter. The default value
is 'FF696969'.
BG_COLOR
: When generateImage
is set to true
,
background color of the generated image. All color values must
be in the format RRGGBB or AARRGGBB (to specify the alpha
value). The default value is '00000000'.
TEXT_COLOR
: When add_labels
is set to true
,
color for the labels. All color values must be in the format
RRGGBB or AARRGGBB (to specify the alpha value). The default
value is 'FF000000'.
COLORMAP
: Colormap for contours or fill-in regions when
applicable. All color values must be in the format RRGGBB or
AARRGGBB (to specify the alpha value)
Supported values:
JET
ACCENT
AFMHOT
AUTUMN
BINARY
BLUES
BONE
BRBG
BRG
BUGN
BUPU
BWR
CMRMAP
COOL
COOLWARM
COPPER
CUBEHELIX
DARK2
FLAG
GIST_EARTH
GIST_GRAY
GIST_HEAT
GIST_NCAR
GIST_RAINBOW
GIST_STERN
GIST_YARG
GNBU
GNUPLOT2
GNUPLOT
GRAY
GREENS
GREYS
HOT
HSV
INFERNO
MAGMA
NIPY_SPECTRAL
OCEAN
ORANGES
ORRD
PAIRED
PASTEL1
PASTEL2
PINK
PIYG
PLASMA
PRGN
PRISM
PUBU
PUBUGN
PUOR
PURD
PURPLES
RAINBOW
RDBU
RDGY
RDPU
RDYLBU
RDYLGN
REDS
SEISMIC
SET1
SET2
SET3
SPECTRAL
SPRING
SUMMER
TERRAIN
VIRIDIS
WINTER
WISTIA
YLGN
YLGNBU
YLORBR
YLORRD
JET
.
public VisualizeIsochroneRequest setStyleOptions(Map<String,String> styleOptions)
styleOptions
- Various style related options of the isochrone
image.
LINE_SIZE
: The width of the contour lines in
pixels. The default value is '3'.
COLOR
: Color of generated isolines. All color
values must be in the format RRGGBB or AARRGGBB (to
specify the alpha value). If alpha is specified and
flooded contours are enabled, it will be used for
as the transparency of the latter. The default
value is 'FF696969'.
BG_COLOR
: When generateImage
is set to
true
, background color of the generated
image. All color values must be in the format
RRGGBB or AARRGGBB (to specify the alpha value).
The default value is '00000000'.
TEXT_COLOR
: When add_labels
is set to
true
, color for the labels. All color
values must be in the format RRGGBB or AARRGGBB (to
specify the alpha value). The default value is
'FF000000'.
COLORMAP
: Colormap for contours or fill-in regions
when applicable. All color values must be in the
format RRGGBB or AARRGGBB (to specify the alpha
value)
Supported values:
JET
ACCENT
AFMHOT
AUTUMN
BINARY
BLUES
BONE
BRBG
BRG
BUGN
BUPU
BWR
CMRMAP
COOL
COOLWARM
COPPER
CUBEHELIX
DARK2
FLAG
GIST_EARTH
GIST_GRAY
GIST_HEAT
GIST_NCAR
GIST_RAINBOW
GIST_STERN
GIST_YARG
GNBU
GNUPLOT2
GNUPLOT
GRAY
GREENS
GREYS
HOT
HSV
INFERNO
MAGMA
NIPY_SPECTRAL
OCEAN
ORANGES
ORRD
PAIRED
PASTEL1
PASTEL2
PINK
PIYG
PLASMA
PRGN
PRISM
PUBU
PUBUGN
PUOR
PURD
PURPLES
RAINBOW
RDBU
RDGY
RDPU
RDYLBU
RDYLGN
REDS
SEISMIC
SET1
SET2
SET3
SPECTRAL
SPRING
SUMMER
TERRAIN
VIRIDIS
WINTER
WISTIA
YLGN
YLGNBU
YLORBR
YLORRD
JET
.
this
to mimic the builder pattern.public Map<String,String> getSolveOptions()
REMOVE_PREVIOUS_RESTRICTIONS
: Ignore the restrictions applied
to the graph during the creation stage and only use the
restrictions specified in this request if set to true
.
Supported values:
The default value is FALSE
.
RESTRICTION_THRESHOLD_VALUE
: Value-based restriction
comparison. Any node or edge with a 'RESTRICTIONS_VALUECOMPARED'
value greater than the restriction_threshold_value
will
not be included in the solution.
UNIFORM_WEIGHTS
: When specified, assigns the given value to all
the edges in the graph. Note that weights provided in weightsOnEdges
will override this value.
Map
.public VisualizeIsochroneRequest setSolveOptions(Map<String,String> solveOptions)
solveOptions
- Solver specific parameters
REMOVE_PREVIOUS_RESTRICTIONS
: Ignore the
restrictions applied to the graph during the
creation stage and only use the restrictions
specified in this request if set to true
.
Supported values:
The default value is FALSE
.
RESTRICTION_THRESHOLD_VALUE
: Value-based
restriction comparison. Any node or edge with a
'RESTRICTIONS_VALUECOMPARED' value greater than the
restriction_threshold_value
will not be
included in the solution.
UNIFORM_WEIGHTS
: When specified, assigns the given
value to all the edges in the graph. Note that
weights provided in weightsOnEdges
will
override this value.
Map
.this
to mimic the builder pattern.public Map<String,String> getContourOptions()
PROJECTION
: Spatial Reference System (i.e. EPSG Code).
Supported values:
The default value is PLATE_CARREE
.
WIDTH
: When generateImage
is set to true
, width
of the generated image. The default value is '512'.
HEIGHT
: When generateImage
is set to true
,
height of the generated image. If the default value is used, the
height
is set to the value resulting from multiplying
the aspect ratio by the width
. The default value is
'-1'.
SEARCH_RADIUS
: When interpolating the graph solution to
generate the isochrone, neighborhood of influence of sample data
(in percent of the image/grid). The default value is '20'.
GRID_SIZE
: When interpolating the graph solution to generate
the isochrone, number of subdivisions along the x axis when
building the grid (the y is computed using the aspect ratio of
the output image). The default value is '100'.
COLOR_ISOLINES
: Color each isoline according to the colormap;
otherwise, use the foreground color.
Supported values:
The default value is TRUE
.
ADD_LABELS
: If set to true
, add labels to the isolines.
Supported values:
The default value is FALSE
.
LABELS_FONT_SIZE
: When add_labels
is set to true
, size of the font (in pixels) to use for labels. The
default value is '12'.
LABELS_FONT_FAMILY
: When add_labels
is set to true
, font name to be used when adding labels. The default
value is 'arial'.
LABELS_SEARCH_WINDOW
: When add_labels
is set to true
, a search window is used to rate the local quality of each
isoline. Smooth, continuous, long stretches with relatively flat
angles are favored. The provided value is multiplied by the
labels_font_size
to calculate the final window size.
The default value is '4'.
LABELS_INTRALEVEL_SEPARATION
: When add_labels
is set to
true
, this value determines the distance (in multiples
of the labels_font_size
) to use when separating labels
of different values. The default value is '4'.
LABELS_INTERLEVEL_SEPARATION
: When add_labels
is set to
true
, this value determines the distance (in percent of
the total window size) to use when separating labels of the same
value. The default value is '20'.
LABELS_MAX_ANGLE
: When add_labels
is set to true
, maximum angle (in degrees) from the vertical to use when
adding labels. The default value is '60'.
Map
.public VisualizeIsochroneRequest setContourOptions(Map<String,String> contourOptions)
contourOptions
- Solver specific parameters
PROJECTION
: Spatial Reference System (i.e. EPSG
Code).
Supported values:
The default value is PLATE_CARREE
.
WIDTH
: When generateImage
is set to
true
, width of the generated image. The
default value is '512'.
HEIGHT
: When generateImage
is set to
true
, height of the generated image. If
the default value is used, the height
is
set to the value resulting from multiplying the
aspect ratio by the width
. The default
value is '-1'.
SEARCH_RADIUS
: When interpolating the graph
solution to generate the isochrone, neighborhood
of influence of sample data (in percent of the
image/grid). The default value is '20'.
GRID_SIZE
: When interpolating the graph solution
to generate the isochrone, number of subdivisions
along the x axis when building the grid (the y is
computed using the aspect ratio of the output
image). The default value is '100'.
COLOR_ISOLINES
: Color each isoline according to
the colormap; otherwise, use the foreground
color.
Supported values:
The default value is TRUE
.
ADD_LABELS
: If set to true
, add labels
to the isolines.
Supported values:
The default value is FALSE
.
LABELS_FONT_SIZE
: When add_labels
is set
to true
, size of the font (in pixels) to
use for labels. The default value is '12'.
LABELS_FONT_FAMILY
: When add_labels
is
set to true
, font name to be used when
adding labels. The default value is 'arial'.
LABELS_SEARCH_WINDOW
: When add_labels
is
set to true
, a search window is used to
rate the local quality of each isoline. Smooth,
continuous, long stretches with relatively flat
angles are favored. The provided value is
multiplied by the labels_font_size
to
calculate the final window size. The default
value is '4'.
LABELS_INTRALEVEL_SEPARATION
: When add_labels
is set to true
, this value
determines the distance (in multiples of the
labels_font_size
) to use when separating
labels of different values. The default value is
'4'.
LABELS_INTERLEVEL_SEPARATION
: When add_labels
is set to true
, this value
determines the distance (in percent of the total
window size) to use when separating labels of the
same value. The default value is '20'.
LABELS_MAX_ANGLE
: When add_labels
is set
to true
, maximum angle (in degrees) from
the vertical to use when adding labels. The
default value is '60'.
Map
.this
to mimic the builder pattern.public Map<String,String> getOptions()
SOLVE_TABLE
: Name of the table to host intermediate solve
results containing the position and cost for each vertex in the
graph. If the default value is used, a temporary table is
created and deleted once the solution is calculated. The
default value is ''.
IS_REPLICATED
: If set to true
, replicate the solve_table
.
Supported values:
The default value is TRUE
.
DATA_MIN_X
: Lower bound for the x values. If not provided, it
will be computed from the bounds of the input data.
DATA_MAX_X
: Upper bound for the x values. If not provided, it
will be computed from the bounds of the input data.
DATA_MIN_Y
: Lower bound for the y values. If not provided, it
will be computed from the bounds of the input data.
DATA_MAX_Y
: Upper bound for the y values. If not provided, it
will be computed from the bounds of the input data.
CONCAVITY_LEVEL
: Factor to qualify the concavity of the
isochrone curves. The lower the value, the more convex (with '0'
being completely convex and '1' being the most concave). The
default value is '0.5'.
USE_PRIORITY_QUEUE_SOLVERS
: sets the solver methods explicitly
if true
Supported values:
TRUE
:
uses the solvers scheduled for 'shortest_path' and
'inverse_shortest_path' based on solve_direction
FALSE
: uses the solvers 'priority_queue' and
'inverse_priority_queue' based on solve_direction
FALSE
.
SOLVE_DIRECTION
: Specify whether we are going to the source
node, or starting from it.
Supported values:
FROM_SOURCE
: Shortest path to get to the source (inverse
Dijkstra)
TO_SOURCE
: Shortest path to source (Dijkstra)
FROM_SOURCE
.
Map
.public VisualizeIsochroneRequest setOptions(Map<String,String> options)
options
- Additional parameters
SOLVE_TABLE
: Name of the table to host intermediate
solve results containing the position and cost for each
vertex in the graph. If the default value is used, a
temporary table is created and deleted once the solution
is calculated. The default value is ''.
IS_REPLICATED
: If set to true
, replicate the
solve_table
.
Supported values:
The default value is TRUE
.
DATA_MIN_X
: Lower bound for the x values. If not
provided, it will be computed from the bounds of the
input data.
DATA_MAX_X
: Upper bound for the x values. If not
provided, it will be computed from the bounds of the
input data.
DATA_MIN_Y
: Lower bound for the y values. If not
provided, it will be computed from the bounds of the
input data.
DATA_MAX_Y
: Upper bound for the y values. If not
provided, it will be computed from the bounds of the
input data.
CONCAVITY_LEVEL
: Factor to qualify the concavity of the
isochrone curves. The lower the value, the more convex
(with '0' being completely convex and '1' being the most
concave). The default value is '0.5'.
USE_PRIORITY_QUEUE_SOLVERS
: sets the solver methods
explicitly if true
Supported values:
TRUE
: uses the solvers scheduled for 'shortest_path'
and 'inverse_shortest_path' based on solve_direction
FALSE
: uses the solvers 'priority_queue' and
'inverse_priority_queue' based on solve_direction
FALSE
.
SOLVE_DIRECTION
: Specify whether we are going to the
source node, or starting from it.
Supported values:
FROM_SOURCE
: Shortest path to get to the source
(inverse Dijkstra)
TO_SOURCE
: Shortest path to source (Dijkstra)
FROM_SOURCE
.
Map
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2020. All rights reserved.