org.apache.hadoop.hive.ql.io.parquet.convert
Class DataWritableGroupConverter

java.lang.Object
  extended by parquet.io.api.Converter
      extended by parquet.io.api.GroupConverter
          extended by org.apache.hadoop.hive.ql.io.parquet.convert.HiveGroupConverter
              extended by org.apache.hadoop.hive.ql.io.parquet.convert.DataWritableGroupConverter

public class DataWritableGroupConverter
extends HiveGroupConverter

A MapWritableGroupConverter, real converter between hive and parquet types recursively for complex types.


Constructor Summary
DataWritableGroupConverter(parquet.schema.GroupType requestedSchema, parquet.schema.GroupType tableSchema)
           
DataWritableGroupConverter(parquet.schema.GroupType groupType, HiveGroupConverter parent, int index)
           
DataWritableGroupConverter(parquet.schema.GroupType selectedGroupType, HiveGroupConverter parent, int index, parquet.schema.GroupType containingGroupType)
           
 
Method Summary
protected  void add(int index, org.apache.hadoop.io.Writable value)
           
 void end()
           
 parquet.io.api.Converter getConverter(int fieldIndex)
           
 org.apache.hadoop.io.ArrayWritable getCurrentArray()
           
protected  void set(int index, org.apache.hadoop.io.Writable value)
           
 void start()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.io.parquet.convert.HiveGroupConverter
getConverterFromDescription
 
Methods inherited from class parquet.io.api.GroupConverter
asGroupConverter, isPrimitive
 
Methods inherited from class parquet.io.api.Converter
asPrimitiveConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataWritableGroupConverter

public DataWritableGroupConverter(parquet.schema.GroupType requestedSchema,
                                  parquet.schema.GroupType tableSchema)

DataWritableGroupConverter

public DataWritableGroupConverter(parquet.schema.GroupType groupType,
                                  HiveGroupConverter parent,
                                  int index)

DataWritableGroupConverter

public DataWritableGroupConverter(parquet.schema.GroupType selectedGroupType,
                                  HiveGroupConverter parent,
                                  int index,
                                  parquet.schema.GroupType containingGroupType)
Method Detail

getCurrentArray

public final org.apache.hadoop.io.ArrayWritable getCurrentArray()

set

protected final void set(int index,
                         org.apache.hadoop.io.Writable value)
Specified by:
set in class HiveGroupConverter

getConverter

public parquet.io.api.Converter getConverter(int fieldIndex)
Specified by:
getConverter in class parquet.io.api.GroupConverter

start

public void start()
Specified by:
start in class parquet.io.api.GroupConverter

end

public void end()
Specified by:
end in class parquet.io.api.GroupConverter

add

protected void add(int index,
                   org.apache.hadoop.io.Writable value)
Specified by:
add in class HiveGroupConverter


Copyright © 2014 The Apache Software Foundation. All rights reserved.