@Override public String toString() { return super.toString("table"); }
@Override public String toString() { return super.toString("aggregation"); }
@Override public String toString() { return toString("stream"); }
public int getAttributePosition(String attributeName) { for (int i = 0, attributeListSize = attributeList.size(); i < attributeListSize; i++) { Attribute attribute = attributeList.get(i); if (attribute.getName().equals(attributeName)) { return i; } } throw new AttributeNotExistException("Cannot get attribute position as '" + attributeName + "' does not exist" + " in '" + id + "'; " + this.toString()); }
public Attribute.Type getAttributeType(String attributeName) { for (Attribute attribute : attributeList) { if (attribute.getName().equals(attributeName)) { return attribute.getType(); } } throw new AttributeNotExistException("Cannot find attribute type as '" + attributeName + "' does not exist in" + " '" + id + "'; " + this.toString()); }
protected void checkAttribute(String attributeName) { for (Attribute attribute : attributeList) { if (attribute.getName().equals(attributeName)) { throw new DuplicateAttributeException("'" + attributeName + "' is already defined for with type '" + attribute.getType() + "' for '" + id + "'; " + this.toString(), attribute.getQueryContextStartIndex(), attribute.getQueryContextEndIndex()); } } }
@Override public String toString() { return super.toString("aggregation"); }
@Override public String toString() { return toString("stream"); }
@Override public String toString() { return super.toString("table"); }
public int getAttributePosition(String attributeName) { for (int i = 0, attributeListSize = attributeList.size(); i < attributeListSize; i++) { Attribute attribute = attributeList.get(i); if (attribute.getName().equals(attributeName)) { return i; } } throw new AttributeNotExistException("Cannot get attribute position as '" + attributeName + "' does not exist" + " in '" + id + "'; " + this.toString()); }
public Attribute.Type getAttributeType(String attributeName) { for (Attribute attribute : attributeList) { if (attribute.getName().equals(attributeName)) { return attribute.getType(); } } throw new AttributeNotExistException("Cannot find attribute type as '" + attributeName + "' does not exist in" + " '" + id + "'; " + this.toString()); }
protected void checkAttribute(String attributeName) { for (Attribute attribute : attributeList) { if (attribute.getName().equals(attributeName)) { throw new DuplicateAttributeException("'" + attributeName + "' is already defined for with type '" + attribute.getType() + "' for '" + id + "'; " + this.toString(), attribute.getQueryContextStartIndex(), attribute.getQueryContextEndIndex()); } } }