Skip to content
Snippets Groups Projects
Commit bad6ea0f authored by Dimitrii's avatar Dimitrii
Browse files

Add allow index field

parent b21bafac
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ public class ERISAttribute {
private String type;
private int typeLength;
private boolean unique;
private boolean allowIndex;
private ERISAttributeStatistics statistics;
public ERISAttribute(JSONObject jsonObject){
......@@ -24,6 +25,7 @@ public class ERISAttribute {
type = jsonObject.get("type").toString();
typeLength = jsonObject.getInt("typeLength");
unique = jsonObject.getBoolean("unique");
allowIndex = jsonObject.getBoolean("allowIndex");
}
public int getId() {
......@@ -98,6 +100,10 @@ public class ERISAttribute {
this.unique = unique;
}
public boolean isAllowIndex() { return allowIndex; }
public void setAllowIndex(boolean allowIndex) { this.allowIndex = allowIndex; }
public ERISAttributeStatistics getStatistics() {
return statistics;
}
......
......@@ -219,6 +219,10 @@ public class ERISConnector {
Map<String, Map<List<String>, List<String>>> partitionStorageConfigAttributes = new HashMap<>();
for (Assignment assignment : solution.getAssignmentList()) {
// logger.debug(assignment.getRequest().getTarget().getRef().name());
// logger.debug(assignment.getResourceMapping().getResource().name());
String[] attributeGlobal = assignment.getRequest().getTarget().getRef().name().split("_");
StringBuilder sb = new StringBuilder();
String containerNodePartitionPath;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment