com.twitter.elephantbird.util
Class ColumnarMetadata
java.lang.Object
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
};
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.