forked from apache/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHOENIX-3868 Pherf - Create sync/async index as part of a scenario
- Loading branch information
Mujtaba
committed
Jun 6, 2017
1 parent
adf1c2d
commit b1f0bf7
Showing
10 changed files
with
221 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,5 @@ public String toString() { | |
} | ||
return stringBuilder.toString(); | ||
} | ||
|
||
} |
50 changes: 50 additions & 0 deletions
50
phoenix-pherf/src/main/java/org/apache/phoenix/pherf/configuration/Ddl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package org.apache.phoenix.pherf.configuration; | ||
|
||
import javax.xml.bind.annotation.XmlAttribute; | ||
|
||
public class Ddl { | ||
private String statement; | ||
private String tableName; | ||
|
||
public Ddl() { | ||
} | ||
|
||
public Ddl(String statement, String tableName) { | ||
this.statement = statement; | ||
this.tableName = tableName; | ||
} | ||
|
||
/** | ||
* DDL | ||
* @return | ||
*/ | ||
@XmlAttribute | ||
public String getStatement() { | ||
return statement; | ||
} | ||
public void setStatement(String statement) { | ||
this.statement = statement; | ||
} | ||
|
||
/** | ||
* Table name used in the DDL | ||
* @return | ||
*/ | ||
@XmlAttribute | ||
public String getTableName() { | ||
return tableName; | ||
} | ||
public void setTableName(String tableName) { | ||
this.tableName = tableName; | ||
} | ||
|
||
public String toString(){ | ||
if (statement.contains("?")) { | ||
return statement.replace("?", tableName); | ||
} else { | ||
return statement; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.