Package org.apache.orc.mapred
Class OrcStruct
java.lang.Object
org.apache.orc.mapred.OrcStruct
- All Implemented Interfaces:
Comparable<OrcStruct>,Writable,WritableComparable<OrcStruct>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic WritableComparablecreateValue(TypeDescription type) booleangetFieldValue(int fieldIndex) getFieldValue(String fieldName) intGet the schema for this object.inthashCode()voidreadFields(DataInput input) voidsetAllFields(WritableComparable... values) Set all of the fields in the structvoidsetFieldValue(int fieldIndex, WritableComparable value) voidsetFieldValue(String fieldName, WritableComparable value) toString()voidwrite(DataOutput output)
-
Constructor Details
-
OrcStruct
-
-
Method Details
-
getFieldValue
-
setFieldValue
-
getNumFields
public int getNumFields() -
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceWritable- Throws:
IOException
-
getSchema
Get the schema for this object.- Returns:
- the schema object
-
setAllFields
Set all of the fields in the struct- Parameters:
values- the list of values for each of the fields.
-
setFieldValue
-
getFieldValue
-
equals
-
hashCode
public int hashCode() -
toString
-
createValue
-
compareTo
- Specified by:
compareToin interfaceComparable<OrcStruct>
-