Tabnine Logo
XPartition.setNonTimePartitionSpec
Code IndexAdd Tabnine to your IDE (free)

How to use
setNonTimePartitionSpec
method
in
org.apache.lens.api.metastore.XPartition

Best Java code snippets using org.apache.lens.api.metastore.XPartition.setNonTimePartitionSpec (Showing top 5 results out of 315)

origin: apache/lens

public XPartition withNonTimePartitionSpec(XPartSpec value) {
  setNonTimePartitionSpec(value);
  return this;
}
origin: org.apache.lens/lens-api

public XPartition withNonTimePartitionSpec(XPartSpec value) {
  setNonTimePartitionSpec(value);
  return this;
}
origin: apache/lens

xp.setNonTimePartitionSpec(new XPartSpec());
for (Map.Entry<String, String> entry : partSpec.entrySet()) {
 if (timePartCols.contains(entry.getKey())) {
log.debug("can't form time part spec from " + partSpec, exc);
xp.setTimePartitionSpec(null);
xp.setNonTimePartitionSpec(null);
origin: org.apache.lens/lens-cube

xp.setNonTimePartitionSpec(new XPartSpec());
for (Map.Entry<String, String> entry : partSpec.entrySet()) {
 if (timePartCols.contains(entry.getKey())) {
log.debug("can't form time part spec from " + partSpec, exc);
xp.setTimePartitionSpec(null);
xp.setNonTimePartitionSpec(null);
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;
}
org.apache.lens.api.metastoreXPartitionsetNonTimePartitionSpec

Javadoc

Sets the value of the nonTimePartitionSpec property.

Popular methods of XPartition

  • setLocation
    Sets the value of the location property.
  • setFactOrDimensionTableName
    Sets the value of the factOrDimensionTableName property.
  • setTimePartitionSpec
    Sets the value of the timePartitionSpec property.
  • setUpdatePeriod
    Sets the value of the updatePeriod property.
  • <init>
  • getLocation
    Gets the value of the location property.
  • getUpdatePeriod
    Gets the value of the updatePeriod property.
  • getFactOrDimensionTableName
    Gets the value of the factOrDimensionTableName property.
  • getFullPartitionSpec
    Gets the value of the fullPartitionSpec property.
  • getNonTimePartitionSpec
    Gets the value of the nonTimePartitionSpec property.
  • getTimePartitionSpec
    Gets the value of the timePartitionSpec property.
  • setPartitionParameters
    Sets the value of the partitionParameters property.
  • getTimePartitionSpec,
  • setPartitionParameters,
  • setSerdeParameters,
  • getInputFormat,
  • getOutputFormat,
  • getPartitionParameters,
  • getSerdeClassname,
  • getSerdeParameters,
  • setFullPartitionSpec

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • From CI to AI: The AI layer in your organization
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