@Override public Set<String> getAllFieldNames() { Set<String> fieldNames = new HashSet<>(); fieldNames.addAll(getMeasureNames()); fieldNames.addAll(getDimAttributeNames()); fieldNames.addAll(getTimedDimensions()); return fieldNames; }
@Override public Set<String> getAllFieldNames() { Set<String> fieldNames = new HashSet<>(); fieldNames.addAll(getMeasureNames()); fieldNames.addAll(getDimAttributeNames()); fieldNames.addAll(getTimedDimensions()); return fieldNames; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } DerivedCube other = (DerivedCube) obj; if (!this.getParent().equals(other.getParent())) { return false; } if (this.getMeasureNames() == null) { if (other.getMeasureNames() != null) { return false; } } else if (!this.getMeasureNames().equals(other.getMeasureNames())) { return false; } if (this.getDimAttributeNames() == null) { if (other.getDimAttributeNames() != null) { return false; } } else if (!this.getDimAttributeNames().equals(other.getDimAttributeNames())) { return false; } return true; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } DerivedCube other = (DerivedCube) obj; if (!this.getParent().equals(other.getParent())) { return false; } if (this.getMeasureNames() == null) { if (other.getMeasureNames() != null) { return false; } } else if (!this.getMeasureNames().equals(other.getMeasureNames())) { return false; } if (this.getDimAttributeNames() == null) { if (other.getDimAttributeNames() != null) { return false; } } else if (!this.getDimAttributeNames().equals(other.getDimAttributeNames())) { return false; } return true; }
for (DerivedCube dcube : dcubes) { if (dcube.getDimAttributeNames().containsAll(chainedSrcColumns) && dcube.getDimAttributeNames().containsAll(queriedDimAttrs)) { log.info("Derived cube found: {}", dcube.getName());
for (DerivedCube dcube : dcubes) { if (dcube.getDimAttributeNames().containsAll(chainedSrcColumns) && dcube.getDimAttributeNames().containsAll(queriedDimAttrs)) { log.info("Derived cube found: {}", dcube.getName());
assertTrue(dcube2.getTimedDimensions().isEmpty()); assertEquals(moreMeasures.size(), dcube2.getMeasureNames().size()); assertEquals(moreDimensions.size(), dcube2.getDimAttributeNames().size()); assertEquals(moreMeasures.size(), dcube2.getMeasures().size()); assertEquals(moreDimensions.size(), dcube2.getDimAttributes().size());
assertTrue(dcube2.getTimedDimensions().isEmpty()); assertEquals(measures.size(), dcube2.getMeasureNames().size()); assertEquals(dimensions.size(), dcube2.getDimAttributeNames().size()); assertEquals(measures.size(), dcube2.getMeasures().size()); assertEquals(dimensions.size(), dcube2.getDimAttributes().size());