| Modifier and Type | Field and Description |
|---|---|
static String |
USE_BATCH_API_PROPERTY |
| Constructor and Description |
|---|
WriteWorkload(PhoenixUtil util,
XMLConfigParser parser,
Properties properties,
PherfConstants.GeneratePhoenixStats generateStatistics) |
WriteWorkload(PhoenixUtil phoenixUtil,
XMLConfigParser parser,
Properties properties,
Scenario scenario,
PherfConstants.GeneratePhoenixStats generateStatistics)
Default the writers to use up all available cores for threads.
|
WriteWorkload(XMLConfigParser parser) |
WriteWorkload(XMLConfigParser parser,
Properties properties,
PherfConstants.GeneratePhoenixStats generateStatistics) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Use this method to perform any cleanup or forced shutdown of the thread.
|
Callable<Void> |
execute() |
int |
getBatchSize() |
XMLConfigParser |
getParser() |
RulesApplier |
getRulesApplier() |
int |
getThreadPoolSize() |
Future<org.apache.phoenix.pherf.workload.WriteWorkload.Info> |
upsertData(Scenario scenario,
List<Column> columns,
String tableName,
int rowCount,
DataLoadThreadTime dataLoadThreadTime,
boolean useBatchApi) |
public static final String USE_BATCH_API_PROPERTY
public WriteWorkload(XMLConfigParser parser) throws Exception
Exceptionpublic WriteWorkload(XMLConfigParser parser, Properties properties, PherfConstants.GeneratePhoenixStats generateStatistics) throws Exception
Exceptionpublic WriteWorkload(PhoenixUtil util, XMLConfigParser parser, Properties properties, PherfConstants.GeneratePhoenixStats generateStatistics) throws Exception
Exceptionpublic WriteWorkload(PhoenixUtil phoenixUtil, XMLConfigParser parser, Properties properties, Scenario scenario, PherfConstants.GeneratePhoenixStats generateStatistics) throws Exception
phoenixUtil - PhoenixUtil Query helperparser - XMLConfigParserproperties - Properties default properties to usescenario - Scenario If null is passed
it will run against all scenarios in the parsers list.Exceptionpublic void complete()
Workloadpublic Future<org.apache.phoenix.pherf.workload.WriteWorkload.Info> upsertData(Scenario scenario, List<Column> columns, String tableName, int rowCount, DataLoadThreadTime dataLoadThreadTime, boolean useBatchApi)
public XMLConfigParser getParser()
public RulesApplier getRulesApplier()
public int getBatchSize()
public int getThreadPoolSize()
Copyright © 2023 Apache Software Foundation. All rights reserved.