Tabnine Logo
XCube
Code IndexAdd Tabnine to your IDE (free)

How to use
XCube
in
org.apache.lens.api.metastore

Best Java code snippets using org.apache.lens.api.metastore.XCube (Showing top 20 results out of 315)

origin: apache/lens

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;
}
origin: org.apache.lens/lens-api

public XCube withName(String value) {
  setName(value);
  return this;
}
origin: org.apache.lens/lens-api

public XCube withProperties(XProperties value) {
  setProperties(value);
  return this;
}
origin: org.apache.lens/lens-cube

xc.setName(c.getName());
xc.setProperties(new XProperties());
xc.getProperties().getProperty().addAll(xPropertiesFromMap(((AbstractCubeTable) c).getProperties()));
return xc;
origin: org.apache.lens/lens-cube

 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);
origin: apache/lens

/**
 * 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());
 }
}
origin: apache/lens

xp.setName(MetastoreConstants.CUBE_ALL_FIELDS_QUERIABLE);
xp.setValue("false");
qcube.getProperties().getProperty().add(xp);
origin: apache/lens

public int hashCode() {
  final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
  return this.hashCode(null, strategy);
}
origin: org.apache.lens/lens-api

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;
}
origin: apache/lens

public boolean equals(Object object) {
  final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
  return equals(null, null, object, strategy);
}
origin: org.apache.lens/lens-api

public String toString() {
  final ToStringStrategy strategy = new YAMLToStringStrategy();
  final StringBuilder buffer = new StringBuilder();
  append(null, buffer, strategy);
  return buffer.toString();
}
origin: apache/lens

xc.setName(c.getName());
xc.setProperties(new XProperties());
xc.getProperties().getProperty().addAll(xPropertiesFromMap(((AbstractCubeTable) c).getProperties()));
return xc;
origin: apache/lens

 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);
origin: apache/lens

/**
 * 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);
 }
}
origin: org.apache.lens/lens-api

public int hashCode() {
  final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
  return this.hashCode(null, strategy);
}
origin: apache/lens

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;
}
origin: org.apache.lens/lens-api

public boolean equals(Object object) {
  final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
  return equals(null, null, object, strategy);
}
origin: apache/lens

public String toString() {
  final ToStringStrategy strategy = new YAMLToStringStrategy();
  final StringBuilder buffer = new StringBuilder();
  append(null, buffer, strategy);
  return buffer.toString();
}
origin: org.apache.lens/lens-api

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;
}
origin: org.apache.lens/lens-cube

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));
}
/**
org.apache.lens.api.metastoreXCube

Javadoc

XCube can either be a Base cube for which the user would give the full specification of the measures and dimensions or can be a Derived cube, for which the user would specify only the measure names, dimension names and parent. Derived cube can have subset of measure names and dimension names associated with its parent. It can have different properties associated with it than the parent.

Java class for x_cube complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="x_cube"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="properties" type="{uri:lens:cube:0.1}x_properties" minOccurs="0"/> 
</sequence> 
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 
<attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • getName
    Gets the value of the name property.
  • getProperties
    Gets the value of the properties property.
  • setName
    Sets the value of the name property.
  • setProperties
    Sets the value of the properties property.
  • append
  • appendFields
  • equals
  • getDescription
    Gets the value of the description property.
  • hashCode
  • setDescription
    Sets the value of the description property.

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • String (java.lang)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Notification (javax.management)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now