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 XCube withName(String value) { setName(value); return this; }
public XCube withProperties(XProperties value) { setProperties(value); return this; }
xc.setName(c.getName()); xc.setProperties(new XProperties()); xc.getProperties().getProperty().addAll(xPropertiesFromMap(((AbstractCubeTable) c).getProperties())); return xc;
measures.addAll(dcube.getMeasureNames().getMeasureName()); Map<String, String> properties = mapFromXProperties(cube.getProperties()); return new DerivedCube(cube.getName(), measures, dims, properties, 0L, parent); } else { XBaseCube bcube = (XBaseCube) cube; Map<String, String> properties = mapFromXProperties(cube.getProperties()); return new Cube(cube.getName(), measures, dims, expressions, joinchains, properties, 0L);
/** * 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()); } }
xp.setName(MetastoreConstants.CUBE_ALL_FIELDS_QUERIABLE); xp.setValue("false"); qcube.getProperties().getProperty().add(xp);
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
xc.setName(c.getName()); xc.setProperties(new XProperties()); xc.getProperties().getProperty().addAll(xPropertiesFromMap(((AbstractCubeTable) c).getProperties())); return xc;
measures.addAll(dcube.getMeasureNames().getMeasureName()); Map<String, String> properties = mapFromXProperties(cube.getProperties()); return new DerivedCube(cube.getName(), measures, dims, properties, 0L, parent); } else { XBaseCube bcube = (XBaseCube) cube; Map<String, String> properties = mapFromXProperties(cube.getProperties()); return new Cube(cube.getName(), measures, dims, expressions, joinchains, properties, 0L);
/** * 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 int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
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 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)); } /**