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

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

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

origin: apache/lens

public static void updatePartitionFromXPartition(Partition partition, XPartition xp) throws ClassNotFoundException {
 partition.getParameters().putAll(mapFromXProperties(xp.getPartitionParameters()));
 partition.getTPartition().getSd().getSerdeInfo().setParameters(mapFromXProperties(xp.getSerdeParameters()));
 partition.setLocation(xp.getLocation());
 if (xp.getInputFormat() != null) {
  partition.setInputFormatClass(Class.forName(xp.getInputFormat()).asSubclass(InputFormat.class));
 }
 if (xp.getOutputFormat() != null) {
  Class<? extends HiveOutputFormat> outputFormatClass =
   Class.forName(xp.getOutputFormat()).asSubclass(HiveOutputFormat.class);
  partition.setOutputFormatClass(outputFormatClass);
 }
 partition.getParameters().put(MetastoreConstants.PARTITION_UPDATE_PERIOD, xp.getUpdatePeriod().name());
 partition.getTPartition().getSd().getSerdeInfo().setSerializationLib(xp.getSerdeClassname());
}
origin: org.apache.lens/lens-cube

public static void updatePartitionFromXPartition(Partition partition, XPartition xp) throws ClassNotFoundException {
 partition.getParameters().putAll(mapFromXProperties(xp.getPartitionParameters()));
 partition.getTPartition().getSd().getSerdeInfo().setParameters(mapFromXProperties(xp.getSerdeParameters()));
 partition.setLocation(xp.getLocation());
 if (xp.getInputFormat() != null) {
  partition.setInputFormatClass(Class.forName(xp.getInputFormat()).asSubclass(InputFormat.class));
 }
 if (xp.getOutputFormat() != null) {
  Class<? extends HiveOutputFormat> outputFormatClass =
   Class.forName(xp.getOutputFormat()).asSubclass(HiveOutputFormat.class);
  partition.setOutputFormatClass(outputFormatClass);
 }
 partition.getParameters().put(MetastoreConstants.PARTITION_UPDATE_PERIOD, xp.getUpdatePeriod().name());
 partition.getTPartition().getSd().getSerdeInfo().setSerializationLib(xp.getSerdeClassname());
}
origin: org.apache.lens/lens-cube

public static StoragePartitionDesc storagePartSpecFromXPartition(
 XPartition xpart) {
 StoragePartitionDesc partDesc = new StoragePartitionDesc(
  xpart.getFactOrDimensionTableName(),
  timePartSpecfromXTimePartSpec(xpart.getTimePartitionSpec()),
  nonTimePartSpecfromXNonTimePartSpec(xpart.getNonTimePartitionSpec()),
  UpdatePeriod.valueOf(xpart.getUpdatePeriod().name()));
 partDesc.setPartParams(mapFromXProperties(xpart.getPartitionParameters()));
 partDesc.setSerdeParams(mapFromXProperties(xpart.getSerdeParameters()));
 partDesc.setLocation(xpart.getLocation());
 partDesc.setInputFormat(xpart.getInputFormat());
 partDesc.setOutputFormat(xpart.getOutputFormat());
 partDesc.setSerializationLib(xpart.getSerdeClassname());
 return partDesc;
}
origin: apache/lens

public static StoragePartitionDesc storagePartSpecFromXPartition(
 XPartition xpart) {
 StoragePartitionDesc partDesc = new StoragePartitionDesc(
  xpart.getFactOrDimensionTableName(),
  timePartSpecfromXTimePartSpec(xpart.getTimePartitionSpec()),
  nonTimePartSpecfromXNonTimePartSpec(xpart.getNonTimePartitionSpec()),
  UpdatePeriod.valueOf(xpart.getUpdatePeriod().name()));
 partDesc.setPartParams(mapFromXProperties(xpart.getPartitionParameters()));
 partDesc.setSerdeParams(mapFromXProperties(xpart.getSerdeParameters()));
 partDesc.setLocation(xpart.getLocation());
 partDesc.setInputFormat(xpart.getInputFormat());
 partDesc.setOutputFormat(xpart.getOutputFormat());
 partDesc.setSerializationLib(xpart.getSerdeClassname());
 return partDesc;
}
origin: org.apache.lens/lens-api

theInputFormat = this.getInputFormat();
strategy.appendField(locator, this, "inputFormat", buffer, theInputFormat);
origin: apache/lens

theInputFormat = this.getInputFormat();
strategy.appendField(locator, this, "inputFormat", buffer, theInputFormat);
origin: org.apache.lens/lens-api

lhsInputFormat = this.getInputFormat();
String rhsInputFormat;
rhsInputFormat = that.getInputFormat();
if (!strategy.equals(LocatorUtils.property(thisLocator, "inputFormat", lhsInputFormat), LocatorUtils.property(thatLocator, "inputFormat", rhsInputFormat), lhsInputFormat, rhsInputFormat)) {
  return false;
origin: apache/lens

lhsInputFormat = this.getInputFormat();
String rhsInputFormat;
rhsInputFormat = that.getInputFormat();
if (!strategy.equals(LocatorUtils.property(thisLocator, "inputFormat", lhsInputFormat), LocatorUtils.property(thatLocator, "inputFormat", rhsInputFormat), lhsInputFormat, rhsInputFormat)) {
  return false;
origin: apache/lens

theInputFormat = this.getInputFormat();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "inputFormat", theInputFormat), currentHashCode, theInputFormat);
origin: org.apache.lens/lens-api

theInputFormat = this.getInputFormat();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "inputFormat", theInputFormat), currentHashCode, theInputFormat);
org.apache.lens.api.metastoreXPartitiongetInputFormat

Javadoc

Gets the value of the inputFormat 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.
  • setNonTimePartitionSpec
    Sets the value of the nonTimePartitionSpec property.
  • getTimePartitionSpec,
  • setNonTimePartitionSpec,
  • setPartitionParameters,
  • setSerdeParameters,
  • getOutputFormat,
  • getPartitionParameters,
  • getSerdeClassname,
  • getSerdeParameters,
  • setFullPartitionSpec

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Notification (javax.management)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for Android Studio
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