congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
HiveSerDeWrapper.getDeserializer
Code IndexAdd Tabnine to your IDE (free)

How to use
getDeserializer
method
in
org.apache.gobblin.hive.HiveSerDeWrapper

Best Java code snippets using org.apache.gobblin.hive.HiveSerDeWrapper.getDeserializer (Showing top 4 results out of 315)

origin: apache/incubator-gobblin

@Override
public List<WorkUnit> getWorkunits(SourceState state) {
 if (!state.contains(HadoopFileInputSource.FILE_INPUT_FORMAT_CLASS_KEY)) {
  state.setProp(HadoopFileInputSource.FILE_INPUT_FORMAT_CLASS_KEY,
    HiveSerDeWrapper.getDeserializer(state).getInputFormatClassName());
 }
 return super.getWorkunits(state);
}
origin: apache/incubator-gobblin

@Override
public HiveSerDeConverter init(WorkUnitState state) {
 super.init(state);
 Configuration conf = HadoopUtils.getConfFromState(state);
 try {
  this.serializer = HiveSerDeWrapper.getSerializer(state).getSerDe();
  this.deserializer = HiveSerDeWrapper.getDeserializer(state).getSerDe();
  this.deserializer.initialize(conf, state.getProperties());
  setColumnsIfPossible(state);
  this.serializer.initialize(conf, state.getProperties());
 } catch (IOException e) {
  log.error("Failed to instantiate serializer and deserializer", e);
  throw Throwables.propagate(e);
 } catch (SerDeException e) {
  log.error("Failed to initialize serializer and deserializer", e);
  throw Throwables.propagate(e);
 }
 return this;
}
origin: org.apache.gobblin/gobblin-core

@Override
public List<WorkUnit> getWorkunits(SourceState state) {
 if (!state.contains(HadoopFileInputSource.FILE_INPUT_FORMAT_CLASS_KEY)) {
  state.setProp(HadoopFileInputSource.FILE_INPUT_FORMAT_CLASS_KEY,
    HiveSerDeWrapper.getDeserializer(state).getInputFormatClassName());
 }
 return super.getWorkunits(state);
}
origin: org.apache.gobblin/gobblin-core

@Override
public HiveSerDeConverter init(WorkUnitState state) {
 super.init(state);
 Configuration conf = HadoopUtils.getConfFromState(state);
 try {
  this.serializer = HiveSerDeWrapper.getSerializer(state).getSerDe();
  this.deserializer = HiveSerDeWrapper.getDeserializer(state).getSerDe();
  this.deserializer.initialize(conf, state.getProperties());
  setColumnsIfPossible(state);
  this.serializer.initialize(conf, state.getProperties());
 } catch (IOException e) {
  log.error("Failed to instantiate serializer and deserializer", e);
  throw Throwables.propagate(e);
 } catch (SerDeException e) {
  log.error("Failed to initialize serializer and deserializer", e);
  throw Throwables.propagate(e);
 }
 return this;
}
org.apache.gobblin.hiveHiveSerDeWrappergetDeserializer

Javadoc

Get an instance of HiveSerDeWrapper from a State.

Popular methods of HiveSerDeWrapper

  • getInputFormatClassName
    Get the input format class name associated with this HiveSerDeWrapper.
  • getOutputFormatClassName
    Get the output format class name associated with this HiveSerDeWrapper.
  • getSerDe
    Get the SerDe instance associated with this HiveSerDeWrapper. This method performs lazy initializati
  • <init>
  • get
    Get an instance of HiveSerDeWrapper.
  • getSerializer
    Get an instance of HiveSerDeWrapper from a State.

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JComboBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Join (org.hibernate.mapping)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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