public class HiveInputFormatPartitionReader extends Object implements PartitionReader<HiveTablePartition,RowData>
Modifier and Type | Field and Description |
---|---|
protected ObjectPath |
tablePath |
Constructor and Description |
---|
HiveInputFormatPartitionReader(int threadNum,
org.apache.hadoop.mapred.JobConf jobConf,
String hiveVersion,
ObjectPath tablePath,
DataType[] fieldTypes,
String[] fieldNames,
List<String> partitionKeys,
int[] selectedFields,
boolean useMapRedReader) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the reader, this method should release all resources.
|
void |
open(List<HiveTablePartition> partitions)
Opens the reader with given partitions.
|
RowData |
read(RowData reuse)
Reads the next record from the partitions.
|
protected final ObjectPath tablePath
public void open(List<HiveTablePartition> partitions) throws IOException
PartitionReader
open
in interface PartitionReader<HiveTablePartition,RowData>
IOException
public RowData read(RowData reuse) throws IOException
PartitionReader
When this method is called, the reader it guaranteed to be opened.
read
in interface PartitionReader<HiveTablePartition,RowData>
reuse
- Object that may be reused.IOException
public void close() throws IOException
PartitionReader
When this method is called, the reader it guaranteed to be opened.
close
in interface Closeable
close
in interface AutoCloseable
close
in interface PartitionReader<HiveTablePartition,RowData>
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.