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

org.apache.hadoop.hive.dynamodb.shims.Hive3SerDeParametersShim Maven / Gradle / Ivy

package org.apache.hadoop.hive.dynamodb.shims;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hive.serde2.SerDeException;
import org.apache.hadoop.hive.serde2.lazy.LazySerDeParameters;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfo;

import java.util.List;
import java.util.Properties;

class Hive3SerDeParametersShim implements SerDeParametersShim {

  private final LazySerDeParameters realSerDeParameters;

  Hive3SerDeParametersShim(Configuration configuration, Properties properties, String serDeName)
      throws SerDeException {
    this.realSerDeParameters = new LazySerDeParameters(configuration, properties, serDeName);
  }

  @Override
  public List getColumnNames() {
    return this.realSerDeParameters.getColumnNames();
  }

  @Override
  public List getColumnTypes() {
    return this.realSerDeParameters.getColumnTypes();
  }

  @Override
  public byte[] getSeparators() {
    return this.realSerDeParameters.getSeparators();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy