com.twitter.elephantbird.util
Class ColumnarMetadata

java.lang.Object
  extended by com.twitter.elephantbird.util.ColumnarMetadata

public class ColumnarMetadata
extends Object

Metadata stored with columnar storage like Hive's RCFile

This is a DynamicMessage equivalent of following protobuf :


 message ColumnarMetadata {
   optional string   classname   = 1;                // FYI only, not used.
   repeated int32    fieldId     = 2;                // list of field ids stored
   optional int32    nesting     = 3 [default = 0];  // when nesting is used
 };
 


Method Summary
 String getClassname()
           
 int getFieldId(int index)
           
 List<Integer> getFieldIdList()
           
 com.google.protobuf.Message getMessage()
           
 int getNesting()
           
static ColumnarMetadata newInstance(String classname, List<Integer> fieldIdList)
           
static ColumnarMetadata newInstance(String classname, List<Integer> fieldIdList, int nesting)
           
static ColumnarMetadata parseFrom(byte[] messageBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessage

public com.google.protobuf.Message getMessage()

getClassname

public String getClassname()

getNesting

public int getNesting()

getFieldId

public int getFieldId(int index)

getFieldIdList

public List<Integer> getFieldIdList()

newInstance

public static ColumnarMetadata newInstance(String classname,
                                           List<Integer> fieldIdList)

newInstance

public static ColumnarMetadata newInstance(String classname,
                                           List<Integer> fieldIdList,
                                           int nesting)

parseFrom

public static ColumnarMetadata parseFrom(byte[] messageBuffer)
                                  throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException


Copyright © 2015 Twitter. All Rights Reserved.