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
-
Method Summary
Modifier and TypeMethodDescriptionint
static WritableComparable
createValue
(TypeDescription type) boolean
getFieldValue
(int fieldIndex) getFieldValue
(String fieldName) int
Get the schema for this object.int
hashCode()
void
readFields
(DataInput input) void
setAllFields
(WritableComparable... values) Set all of the fields in the structvoid
setFieldValue
(int fieldIndex, WritableComparable value) void
setFieldValue
(String fieldName, WritableComparable value) toString()
void
write
(DataOutput output)
-
Constructor Details
-
OrcStruct
-
-
Method Details
-
getFieldValue
-
setFieldValue
-
getNumFields
public int getNumFields() -
write
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-
readFields
- Specified by:
readFields
in 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:
compareTo
in interfaceComparable<OrcStruct>
-