public class PerfBenchmarkDriver extends Object
| Constructor and Description |
|---|
PerfBenchmarkDriver(PerfBenchmarkDriverConf conf) |
PerfBenchmarkDriver(PerfBenchmarkDriverConf conf,
String tempDir,
String loadMode,
String segmentFormatVersion,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSegment(String tableName,
SegmentMetadata segmentMetadata)
Add segment while segment data is already in server data directory.
|
void |
configureTable(String tableName) |
void |
configureTable(String tableName,
List<String> invertedIndexColumns,
List<String> bloomFilterColumns) |
static void |
main(String[] args) |
com.fasterxml.jackson.databind.JsonNode |
postQuery(String query) |
com.fasterxml.jackson.databind.JsonNode |
postQuery(String query,
String optimizationFlags) |
com.fasterxml.jackson.databind.JsonNode |
postQuery(String dialect,
String query,
String optimizationFlags) |
void |
run() |
static PerfBenchmarkDriver |
startComponents(boolean isStartZookeeper,
boolean isStartController,
boolean isStartBroker,
boolean isStartServer,
String serverDataDir)
Start cluster components with default configuration.
|
static void |
waitForExternalViewUpdate(String zkAddress,
String clusterName,
long timeoutInMilliseconds) |
public PerfBenchmarkDriver(PerfBenchmarkDriverConf conf)
public PerfBenchmarkDriver(PerfBenchmarkDriverConf conf, String tempDir, String loadMode, String segmentFormatVersion, boolean verbose)
public void configureTable(String tableName, List<String> invertedIndexColumns, List<String> bloomFilterColumns) throws Exception
Exceptionpublic void addSegment(String tableName, SegmentMetadata segmentMetadata)
segmentMetadata - segment metadata.public static void waitForExternalViewUpdate(String zkAddress, String clusterName, long timeoutInMilliseconds)
public com.fasterxml.jackson.databind.JsonNode postQuery(String query) throws Exception
Exceptionpublic com.fasterxml.jackson.databind.JsonNode postQuery(String query, String optimizationFlags) throws Exception
Exceptionpublic com.fasterxml.jackson.databind.JsonNode postQuery(String dialect, String query, String optimizationFlags) throws Exception
Exceptionpublic static PerfBenchmarkDriver startComponents(boolean isStartZookeeper, boolean isStartController, boolean isStartBroker, boolean isStartServer, @Nullable String serverDataDir) throws Exception
isStartZookeeper - whether to start zookeeper.isStartController - whether to start controller.isStartBroker - whether to start broker.isStartServer - whether to start server.ExceptionCopyright © 2018–2020 Apache Software Foundation. All rights reserved.