| Constructor and Description |
|---|
WriteWorkload(PhoenixUtil phoenixUtil,
Properties properties,
XMLConfigParser parser,
Scenario scenario,
PherfConstants.GeneratePhoenixStats generateStatistics)
Default the writers to use up all available cores for threads.
|
WriteWorkload(PhoenixUtil util,
XMLConfigParser parser,
PherfConstants.GeneratePhoenixStats generateStatistics) |
WriteWorkload(PhoenixUtil phoenixUtil,
XMLConfigParser parser,
Scenario scenario,
PherfConstants.GeneratePhoenixStats generateStatistics) |
WriteWorkload(XMLConfigParser parser) |
WriteWorkload(XMLConfigParser parser,
PherfConstants.GeneratePhoenixStats generateStatistics) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Use this method to perform any cleanup or forced shutdown of the thread.
|
Runnable |
execute() |
int |
getBatchSize() |
XMLConfigParser |
getParser() |
RulesApplier |
getRulesApplier() |
int |
getThreadPoolSize() |
void |
updatePhoenixStats(String tableName,
Scenario scenario)
TODO Move this method to PhoenixUtil
Update Phoenix table stats
|
Future<org.apache.phoenix.pherf.workload.WriteWorkload.Info> |
upsertData(Scenario scenario,
List<Column> columns,
String tableName,
int rowCount,
DataLoadThreadTime dataLoadThreadTime) |
public WriteWorkload(XMLConfigParser parser) throws Exception
Exceptionpublic WriteWorkload(XMLConfigParser parser, PherfConstants.GeneratePhoenixStats generateStatistics) throws Exception
Exceptionpublic WriteWorkload(PhoenixUtil util, XMLConfigParser parser, PherfConstants.GeneratePhoenixStats generateStatistics) throws Exception
Exceptionpublic WriteWorkload(PhoenixUtil phoenixUtil, XMLConfigParser parser, Scenario scenario, PherfConstants.GeneratePhoenixStats generateStatistics) throws Exception
Exceptionpublic WriteWorkload(PhoenixUtil phoenixUtil, Properties properties, XMLConfigParser parser, Scenario scenario, PherfConstants.GeneratePhoenixStats generateStatistics) throws Exception
phoenixUtil - PhoenixUtil Query helperproperties - Properties default properties to useparser - XMLConfigParserscenario - Scenario If null is passed
it will run against all scenarios in the parsers list.Exceptionpublic void complete()
Workloadpublic void updatePhoenixStats(String tableName, Scenario scenario) throws Exception
tableName - Exceptionpublic Future<org.apache.phoenix.pherf.workload.WriteWorkload.Info> upsertData(Scenario scenario, List<Column> columns, String tableName, int rowCount, DataLoadThreadTime dataLoadThreadTime)
public XMLConfigParser getParser()
public RulesApplier getRulesApplier()
public int getBatchSize()
public int getThreadPoolSize()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.