/** * Create cube based on the JAXB cube object * * @param cube cube spec * @throws LensException */ @Override public void createCube(LensSessionHandle sessionid, XCube cube) throws LensException { try (SessionContext ignored = new SessionContext(sessionid)){ getClient(sessionid).createCube(cube); log.info("Created cube " + cube.getName()); } }
/** * Update cube * * @param cube JAXB Cube object * @throws LensException */ @Override public void updateCube(LensSessionHandle sessionid, XCube cube) throws LensException { try (SessionContext ignored = new SessionContext(sessionid)){ getClient(sessionid).alterCube(cube); log.info("Cube updated " + cube.getName()); } catch (HiveException e) { throw new LensException(e); } }
public void alterCube(XCube cube) throws HiveException, LensException { Cube parent = cube instanceof XDerivedCube ? (Cube) getCube( ((XDerivedCube) cube).getParent()) : null; alterCube(cube.getName(), JAXBUtils.hiveCubeFromXCube(cube, parent)); } /**
public void alterCube(XCube cube) throws HiveException, LensException { Cube parent = cube instanceof XDerivedCube ? (Cube) getCube( ((XDerivedCube) cube).getParent()) : null; alterCube(cube.getName(), JAXBUtils.hiveCubeFromXCube(cube, parent)); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XProperties theProperties; theProperties = this.getProperties(); strategy.appendField(locator, this, "properties", buffer, theProperties); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XProperties theProperties; theProperties = this.getProperties(); strategy.appendField(locator, this, "properties", buffer, theProperties); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XProperties theProperties; theProperties = this.getProperties(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "properties", theProperties), currentHashCode, theProperties); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XProperties theProperties; theProperties = this.getProperties(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "properties", theProperties), currentHashCode, theProperties); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription); } return currentHashCode; }