public static CubeVirtualFactTable cubeVirtualFactFromFactTable(XVirtualFactTable fact, FactTable sourceFactTable) throws LensException { Optional<Double> optionalWeight = Optional.fromNullable(fact.getWeight()); return new CubeVirtualFactTable(fact.getCubeName(), fact.getName(), optionalWeight, mapFromXProperties(fact.getProperties()), sourceFactTable); }
public static CubeVirtualFactTable cubeVirtualFactFromFactTable(XVirtualFactTable fact, FactTable sourceFactTable) throws LensException { Optional<Double> optionalWeight = Optional.fromNullable(fact.getWeight()); return new CubeVirtualFactTable(fact.getCubeName(), fact.getName(), optionalWeight, mapFromXProperties(fact.getProperties()), sourceFactTable); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { XProperties theProperties; theProperties = this.getProperties(); strategy.appendField(locator, this, "properties", buffer, theProperties); } { String theSourceFactName; theSourceFactName = this.getSourceFactName(); strategy.appendField(locator, this, "sourceFactName", buffer, theSourceFactName); } { Double theWeight; theWeight = this.getWeight(); strategy.appendField(locator, this, "weight", buffer, theWeight); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { XProperties theProperties; theProperties = this.getProperties(); strategy.appendField(locator, this, "properties", buffer, theProperties); } { String theSourceFactName; theSourceFactName = this.getSourceFactName(); strategy.appendField(locator, this, "sourceFactName", buffer, theSourceFactName); } { Double theWeight; theWeight = this.getWeight(); strategy.appendField(locator, this, "weight", buffer, theWeight); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { XProperties theProperties; theProperties = this.getProperties(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "properties", theProperties), currentHashCode, theProperties); } { String theSourceFactName; theSourceFactName = this.getSourceFactName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sourceFactName", theSourceFactName), currentHashCode, theSourceFactName); } { Double theWeight; theWeight = this.getWeight(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "weight", theWeight), currentHashCode, theWeight); } return currentHashCode; }
public static XVirtualFactTable virtualFactTableFromVirtualCubeFactTable(CubeVirtualFactTable vFact) { XVirtualFactTable fact = XCF.createXVirtualFactTable(); fact.setName(vFact.getName()); fact.setProperties(new XProperties()); fact.getProperties().getProperty().addAll(xPropertiesFromMap(vFact.getProperties())); fact.setWeight(vFact.weight()); fact.setSourceFactName(vFact.getSourceCubeFactTable().getName()); fact.setCubeName(vFact.getCubeName()); return fact; }
public static XVirtualFactTable virtualFactTableFromVirtualCubeFactTable(CubeVirtualFactTable vFact) { XVirtualFactTable fact = XCF.createXVirtualFactTable(); fact.setName(vFact.getName()); fact.setProperties(new XProperties()); fact.getProperties().getProperty().addAll(xPropertiesFromMap(vFact.getProperties())); fact.setWeight(vFact.weight()); fact.setSourceFactName(vFact.getSourceCubeFactTable().getName()); fact.setCubeName(vFact.getCubeName()); return fact; }
lhsProperties = this.getProperties(); XProperties rhsProperties; rhsProperties = that.getProperties(); if (!strategy.equals(LocatorUtils.property(thisLocator, "properties", lhsProperties), LocatorUtils.property(thatLocator, "properties", rhsProperties), lhsProperties, rhsProperties)) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { XProperties theProperties; theProperties = this.getProperties(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "properties", theProperties), currentHashCode, theProperties); } { String theSourceFactName; theSourceFactName = this.getSourceFactName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sourceFactName", theSourceFactName), currentHashCode, theSourceFactName); } { Double theWeight; theWeight = this.getWeight(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "weight", theWeight), currentHashCode, theWeight); } return currentHashCode; }
lhsProperties = this.getProperties(); XProperties rhsProperties; rhsProperties = that.getProperties(); if (!strategy.equals(LocatorUtils.property(thisLocator, "properties", lhsProperties), LocatorUtils.property(thatLocator, "properties", rhsProperties), lhsProperties, rhsProperties)) { return false;
private XVirtualFactTable createVirtualFactTable(String factName, final String cubeName, String sourceFactName) { XVirtualFactTable f = cubeObjectFactory.createXVirtualFactTable(); f.setProperties(new XProperties()); f.setName(factName); f.setWeight(10.0); f.setCubeName(cubeName); f.setSourceFactName(sourceFactName); Map<String, String> properties = LensUtil.getHashMap("foo1", "bar1"); f.getProperties().getProperty().addAll(JAXBUtils.xPropertiesFromMap(properties)); return f; }
public void createFactTable(XFact fact) throws LensException { if (fact instanceof XVirtualFactTable) { XVirtualFactTable xvf = (XVirtualFactTable) fact; createVirtualFactTable(xvf.getCubeName(), xvf.getName(), xvf.getSourceFactName(), xvf.getWeight(), JAXBUtils.mapFromXProperties(xvf.getProperties())); } else { XFactTable xf = (XFactTable) fact; createCubeFactTable(fact.getCubeName(), fact.getName(), JAXBUtils.fieldSchemaListFromColumns(xf.getColumns()), JAXBUtils.getFactUpdatePeriodsFromStorageTables(xf.getStorageTables()), xf.getWeight(), addFactColStartTimePropertyToFactProperties(xf), JAXBUtils.tableDescPrefixMapFromXStorageTables(xf.getStorageTables()), JAXBUtils.storageTablePrefixMapOfStorage(xf.getStorageTables())); } }
public void createFactTable(XFact fact) throws LensException { if (fact instanceof XVirtualFactTable) { XVirtualFactTable xvf = (XVirtualFactTable) fact; createVirtualFactTable(xvf.getCubeName(), xvf.getName(), xvf.getSourceFactName(), xvf.getWeight(), JAXBUtils.mapFromXProperties(xvf.getProperties())); } else { XFactTable xf = (XFactTable) fact; createCubeFactTable(fact.getCubeName(), fact.getName(), JAXBUtils.fieldSchemaListFromColumns(xf.getColumns()), JAXBUtils.getFactUpdatePeriodsFromStorageTables(xf.getStorageTables()), xf.getWeight(), addFactColStartTimePropertyToFactProperties(xf), JAXBUtils.tableDescPrefixMapFromXStorageTables(xf.getStorageTables()), JAXBUtils.storageTablePrefixMapOfStorage(xf.getStorageTables()), JAXBUtils.getStorageTablePartitionColumnsFromTableDescs(xf.getStorageTables())); } }