| 190 | } |
| 191 | |
| 192 | Status 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 | |
| 221 | Status OrcStringColumnReader::ReadValue(int row_idx, Tuple* tuple, MemPool* pool) { |
| 222 | switch (slot_desc_->type().type) { |
no test coverage detected