| Constructor and Description |
|---|
WriteWorkload(PhoenixUtil phoenixUtil,
Properties properties,
XMLConfigParser parser,
Scenario scenario)
Default the writers to use up all available cores for threads.
|
WriteWorkload(PhoenixUtil util,
XMLConfigParser parser) |
WriteWorkload(PhoenixUtil phoenixUtil,
XMLConfigParser parser,
Scenario scenario) |
WriteWorkload(XMLConfigParser parser) |
| 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)
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(PhoenixUtil util, XMLConfigParser parser) throws Exception
Exceptionpublic WriteWorkload(PhoenixUtil phoenixUtil, XMLConfigParser parser, Scenario scenario) throws Exception
Exceptionpublic WriteWorkload(PhoenixUtil phoenixUtil, Properties properties, XMLConfigParser parser, Scenario scenario) 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) 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.