MCPcopy Create free account
hub / github.com/apache/impala / InitNewRange

Method InitNewRange

be/src/exec/sequence/hdfs-sequence-scanner.cc:92–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92Status HdfsSequenceScanner::InitNewRange() {
93 DCHECK(header_ != nullptr);
94 only_parsing_header_ = false;
95
96 HdfsPartitionDescriptor* hdfs_partition = context_->partition_descriptor();
97
98 text_converter_.reset(new TextConverter(hdfs_partition->escape_char(),
99 scan_node_->hdfs_table()->null_column_value()));
100
101 delimited_text_parser_.reset(new SequenceDelimitedTextParser(
102 scan_node_->hdfs_table()->num_cols(), scan_node_->num_partition_keys(),
103 scan_node_->is_materialized_col(), '\0', hdfs_partition->field_delim(),
104 hdfs_partition->collection_delim(), hdfs_partition->escape_char()));
105
106 num_buffered_records_in_compressed_block_ = 0;
107
108 SeqFileHeader* seq_header = reinterpret_cast<SeqFileHeader*>(header_);
109 if (seq_header->is_compressed) {
110 RETURN_IF_ERROR(UpdateDecompressor(header_->codec));
111 }
112
113 // Initialize codegen fn
114 RETURN_IF_ERROR(InitializeWriteTuplesFn(hdfs_partition,
115 THdfsFileFormat::SEQUENCE_FILE, "HdfsSequenceScanner"));
116 return Status::OK();
117}
118
119Status HdfsSequenceScanner::Open(ScannerContext* context) {
120 RETURN_IF_ERROR(BaseSequenceScanner::Open(context));

Callers

nothing calls this directly

Calls 10

OKFunction · 0.85
partition_descriptorMethod · 0.80
hdfs_tableMethod · 0.80
num_colsMethod · 0.80
num_partition_keysMethod · 0.80
is_materialized_colMethod · 0.80
field_delimMethod · 0.80
collection_delimMethod · 0.80
resetMethod · 0.65
escape_charMethod · 0.45

Tested by

no test coverage detected