public final class OrcStruct extends Object implements org.apache.hadoop.io.Writable
| Modifier and Type | Class and Description |
|---|---|
static class |
OrcStruct.Field |
static class |
OrcStruct.OrcListObjectInspector |
static class |
OrcStruct.OrcMapObjectInspector |
static class |
OrcStruct.OrcStructInspector |
| Constructor and Description |
|---|
OrcStruct() |
OrcStruct(List<String> fieldNames) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendField(String fieldName) |
boolean |
equals(Object other) |
List<String> |
getFieldNames() |
Object |
getFieldValue(int fieldIndex) |
int |
getNumFields() |
int |
hashCode() |
void |
readFields(DataInput dataInput) |
void |
setFieldNames(List<String> fieldNames)
Change the names and number of fields in the struct.
|
void |
setFieldValue(int fieldIndex,
Object value) |
String |
toString() |
void |
write(DataOutput dataOutput) |
public Object getFieldValue(int fieldIndex)
public void setFieldValue(int fieldIndex,
Object value)
public int getNumFields()
public void setFieldNames(List<String> fieldNames)
numFields - the new number of fieldspublic void appendField(String fieldName)
public void write(DataOutput dataOutput) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput dataInput) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2013–2021. All rights reserved.