All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.elephantbird.hive.serde.LzoProtobufHiveSerde Maven / Gradle / Ivy

There is a newer version: 4.17
Show newest version
package com.twitter.elephantbird.hive.serde;

import java.util.Properties;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hive.serde2.SerDe;
import org.apache.hadoop.hive.serde2.SerDeException;
import org.apache.hadoop.hive.serde2.SerDeStats;
import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector;
import org.apache.hadoop.io.Writable;

public abstract class LzoProtobufHiveSerde implements SerDe {
  
  @Override
  public void initialize(Configuration conf, Properties props) throws SerDeException {
  }
  
  @Override
  public abstract ObjectInspector getObjectInspector() throws SerDeException;

  @Override
  public abstract Object deserialize(Writable w) throws SerDeException;

  @Override
  public Class getSerializedClass() {
    return org.apache.hadoop.io.Text.class; 
    //serialization not supported
  }

  @Override
  public Writable serialize(Object arg0, ObjectInspector arg1) throws SerDeException {
    return null;
    //serialization not supported
  }

  @Override
  public SerDeStats getSerDeStats() {
    return null;
    // stats not supported
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy