org.apache.hadoop.hive.ql.io.orc
Class OrcStruct

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.orc.OrcStruct
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public final class OrcStruct
extends Object
implements org.apache.hadoop.io.Writable


Method Summary
static ObjectInspector createObjectInspector(TypeInfo info)
           
 boolean equals(Object other)
           
 int getNumFields()
           
 int hashCode()
           
 void readFields(DataInput dataInput)
           
 void setNumFields(int numFields)
          Change the number of fields in the struct.
 String toString()
           
 void write(DataOutput dataOutput)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getNumFields

public int getNumFields()

setNumFields

public void setNumFields(int numFields)
Change the number of fields in the struct. No effect if the number of fields is the same. The old field values are copied to the new array.

Parameters:
numFields - the new number of fields

write

public void write(DataOutput dataOutput)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput dataInput)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

createObjectInspector

public static ObjectInspector createObjectInspector(TypeInfo info)


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