public abstract ResultSet partitionQuery(String query, PartitionOptions partitionOptions, Options.QueryOption[] options)
Partitions the given query, so it can be executed in parallel. This method returns a ResultSet with a string-representation of the partitions that were created. These strings can
be used to execute a partition either on this connection or an any other connection (on this
host or an any other host) by calling the method #runPartition(String). This method
will automatically enable data boost for the query if CloudSpannerJdbcConnection#isDataBoostEnabled() returns true.
public abstract CloudSpannerJdbcPartitionedQueryResultSet runPartitionedQuery(String query, PartitionOptions partitionOptions, Options.QueryOption[] options)
Executes the given query as a partitioned query. The query will first be partitioned using the
#partitionQuery(String, PartitionOptions, QueryOption...) method. Each of the
partitions will then be executed in the background, and the results will be merged into a
single result set.
This method will use CloudSpannerJdbcConnection#getMaxPartitionedParallelism()
threads to execute the partitioned query. Set this variable to a higher/lower value to
increase/decrease the degree of parallelism used for execution.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-26 UTC."],[],[]]