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

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

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

origin: apache/lens

public XProperties withProperty(Collection<XProperty> values) {
  if (values!= null) {
    getProperty().addAll(values);
  }
  return this;
}
origin: org.apache.lens/lens-api

/**
 * Create an instance of {@link XProperties }
 * 
 */
public XProperties createXProperties() {
  return new XProperties();
}
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: org.apache.lens/lens-cube

public static XStorage xstorageFromStorage(Storage storage) {
 if (storage == null) {
  return null;
 }
 XStorage xstorage = null;
 xstorage = XCF.createXStorage();
 xstorage.setProperties(new XProperties());
 xstorage.setName(storage.getName());
 xstorage.setClassname(storage.getClass().getCanonicalName());
 xstorage.getProperties().getProperty().addAll(xPropertiesFromMap(storage.getProperties()));
 return xstorage;
}
origin: apache/lens

dimension.setExpressions(new XExpressions());
dimension.setJoinChains(new XJoinChains());
dimension.setProperties(new XProperties().withProperty(
 new XProperty().withName(MetastoreUtil.getDimTimedDimensionKey(dimName)).withValue("dt"))
);
xp1.setName("dimension.foo");
xp1.setValue("dim.bar");
dimension.getProperties().getProperty().add(xp1);
return dimension;
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 int hashCode() {
  final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
  return this.hashCode(null, strategy);
}
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 static XStorage xstorageFromStorage(Storage storage) {
 if (storage == null) {
  return null;
 }
 XStorage xstorage = null;
 xstorage = XCF.createXStorage();
 xstorage.setProperties(new XProperties());
 xstorage.setName(storage.getName());
 xstorage.setClassname(storage.getClass().getCanonicalName());
 xstorage.getProperties().getProperty().addAll(xPropertiesFromMap(storage.getProperties()));
 return xstorage;
}
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 int hashCode() {
  final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
  return this.hashCode(null, strategy);
}
origin: apache/lens

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

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

public XProperties withProperty(XProperty... values) {
  if (values!= null) {
    for (XProperty value: values) {
      getProperty().add(value);
    }
  }
  return this;
}
origin: apache/lens

/**
 * Create an instance of {@link XProperties }
 * 
 */
public XProperties createXProperties() {
  return new XProperties();
}
origin: apache/lens

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

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

public XProperties withProperty(Collection<XProperty> values) {
  if (values!= null) {
    getProperty().addAll(values);
  }
  return this;
}
origin: apache/lens

private XPartition createPartition(String cubeTableName, final List<XTimePartSpecElement>
  timePartSpecs, String updatePeriod) {
 XPartition xp = cubeObjectFactory.createXPartition();
 xp.setLocation(new Path(new File("target").getAbsolutePath(), "part/test_part").toString());
 xp.setFactOrDimensionTableName(cubeTableName);
 xp.setNonTimePartitionSpec(new XPartSpec());
 xp.setTimePartitionSpec(new XTimePartSpec());
 xp.setPartitionParameters(new XProperties());
 xp.setSerdeParameters(new XProperties());
 for (XTimePartSpecElement timePartSpec : timePartSpecs) {
  xp.getTimePartitionSpec().getPartSpecElement().add(timePartSpec);
 }
 if (updatePeriod==null) {
  xp.setUpdatePeriod(XUpdatePeriod.HOURLY);
 } else {
  XUpdatePeriod updatePeriod1=XUpdatePeriod.valueOf(updatePeriod.toUpperCase());
  xp.setUpdatePeriod(updatePeriod1);
 }
 return xp;
}
origin: org.apache.lens/lens-cube

public static XFactTable factTableFromCubeFactTable(FactTable cFact) {
 XFactTable fact = XCF.createXFactTable();
 fact.setName(cFact.getName());
 fact.setColumns(new XColumns());
 fact.setProperties(new XProperties());
 fact.setStorageTables(new XStorageTables());
 fact.getProperties().getProperty().addAll(xPropertiesFromMap(cFact.getProperties()));
 fact.getColumns().getColumn().addAll(columnsFromFieldSchemaList(cFact.getColumns()));
 fact.setWeight(cFact.weight());
 fact.setCubeName(cFact.getCubeName());
 return fact;
}
org.apache.lens.api.metastoreXProperties

Javadoc

A list of property elements.

Java class for x_properties complex type.

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

 
<complexType name="x_properties"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="property" type="{uri:lens:cube:0.1}x_property" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • getProperty
    Gets the value of the property property. This accessor method returns a reference to the live list,
  • <init>
  • append
  • appendFields
  • equals
  • hashCode
  • withProperty

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • CodeWhisperer 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