Package org.apache.pinot.tools.perf
Class PerfBenchmarkDriver
- java.lang.Object
-
- org.apache.pinot.tools.perf.PerfBenchmarkDriver
-
public class PerfBenchmarkDriver extends Object
-
-
Constructor Summary
Constructors Constructor Description PerfBenchmarkDriver(PerfBenchmarkDriverConf conf)PerfBenchmarkDriver(PerfBenchmarkDriverConf conf, String tempDir, String loadMode, String segmentFormatVersion, boolean verbose)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSegment(String tableNameWithType, org.apache.pinot.segment.spi.SegmentMetadata segmentMetadata)Add segment while segment data is already in server data directory.voidconfigureTable(String tableName)voidconfigureTable(String tableName, List<String> invertedIndexColumns, List<String> bloomFilterColumns)static voidmain(String[] args)com.fasterxml.jackson.databind.JsonNodepostQuery(String query)com.fasterxml.jackson.databind.JsonNodepostQuery(String dialect, String query)com.fasterxml.jackson.databind.JsonNodepostQuery(String dialect, String query, Map<String,String> headers)com.fasterxml.jackson.databind.JsonNodepostQuery(String query, Map<String,String> headers)voidrun()static PerfBenchmarkDriverstartComponents(boolean isStartZookeeper, boolean isStartController, boolean isStartBroker, boolean isStartServer, String serverDataDir)Start cluster components with default configuration.static voidwaitForExternalViewUpdate(String zkAddress, String clusterName, long timeoutInMilliseconds)
-
-
-
Constructor Detail
-
PerfBenchmarkDriver
public PerfBenchmarkDriver(PerfBenchmarkDriverConf conf)
-
PerfBenchmarkDriver
public PerfBenchmarkDriver(PerfBenchmarkDriverConf conf, String tempDir, String loadMode, String segmentFormatVersion, boolean verbose)
-
-
Method Detail
-
configureTable
public void configureTable(String tableName, List<String> invertedIndexColumns, List<String> bloomFilterColumns) throws Exception
- Throws:
Exception
-
addSegment
public void addSegment(String tableNameWithType, org.apache.pinot.segment.spi.SegmentMetadata segmentMetadata)
Add segment while segment data is already in server data directory.- Parameters:
segmentMetadata- segment metadata.
-
waitForExternalViewUpdate
public static void waitForExternalViewUpdate(String zkAddress, String clusterName, long timeoutInMilliseconds)
-
postQuery
public com.fasterxml.jackson.databind.JsonNode postQuery(String query) throws Exception
- Throws:
Exception
-
postQuery
public com.fasterxml.jackson.databind.JsonNode postQuery(String query, Map<String,String> headers) throws Exception
- Throws:
Exception
-
postQuery
public com.fasterxml.jackson.databind.JsonNode postQuery(String dialect, String query) throws Exception
- Throws:
Exception
-
postQuery
public com.fasterxml.jackson.databind.JsonNode postQuery(String dialect, String query, Map<String,String> headers) throws Exception
- Throws:
Exception
-
startComponents
public static PerfBenchmarkDriver startComponents(boolean isStartZookeeper, boolean isStartController, boolean isStartBroker, boolean isStartServer, @Nullable String serverDataDir) throws Exception
Start cluster components with default configuration.- Parameters:
isStartZookeeper- whether to start zookeeper.isStartController- whether to start controller.isStartBroker- whether to start broker.isStartServer- whether to start server.- Returns:
- perf benchmark driver.
- Throws:
Exception
-
-