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

Method ReadValueBatch

be/src/exec/orc/orc-column-readers.cc:192–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192Status OrcStringColumnReader::ReadValueBatch(int row_idx,
193 ScratchTupleBatch* scratch_batch, MemPool* pool, int scratch_batch_idx) {
194 switch (slot_desc_->type().type) {
195 case TYPE_STRING:
196 if (batch_->isEncoded) {
197 return ReadValueBatchInternal<TYPE_STRING, true>(
198 row_idx, scratch_batch, scratch_batch_idx);
199 }
200 return ReadValueBatchInternal<TYPE_STRING, false>(
201 row_idx, scratch_batch, scratch_batch_idx);
202 case TYPE_CHAR:
203 if (batch_->isEncoded) {
204 return ReadValueBatchInternal<TYPE_CHAR, true>(
205 row_idx, scratch_batch, scratch_batch_idx);
206 }
207 return ReadValueBatchInternal<TYPE_CHAR, false>(
208 row_idx, scratch_batch, scratch_batch_idx);
209 case TYPE_VARCHAR:
210 if (batch_->isEncoded) {
211 return ReadValueBatchInternal<TYPE_VARCHAR, true>(
212 row_idx, scratch_batch, scratch_batch_idx);
213 }
214 return ReadValueBatchInternal<TYPE_VARCHAR, false>(
215 row_idx, scratch_batch, scratch_batch_idx);
216 default:
217 return Status("Illegal string type: " + TypeToString(slot_desc_->type().type));
218 }
219}
220
221Status OrcStringColumnReader::ReadValue(int row_idx, Tuple* tuple, MemPool* pool) {
222 switch (slot_desc_->type().type) {

Callers 1

Calls 4

OKFunction · 0.85
StatusClass · 0.50
TypeToStringFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected