Read dictionary from dictionary batch
| 1107 | |
| 1108 | // Read dictionary from dictionary batch |
| 1109 | Status ReadDictionary(const Message& message) { |
| 1110 | DictionaryKind kind; |
| 1111 | IpcReadContext context(&dictionary_memo_, options_, swap_endian_); |
| 1112 | RETURN_NOT_OK(::arrow::ipc::ReadDictionary(message, context, &kind)); |
| 1113 | ++stats_.num_dictionary_batches; |
| 1114 | switch (kind) { |
| 1115 | case DictionaryKind::New: |
| 1116 | break; |
| 1117 | case DictionaryKind::Delta: |
| 1118 | ++stats_.num_dictionary_deltas; |
| 1119 | break; |
| 1120 | case DictionaryKind::Replacement: |
| 1121 | ++stats_.num_replaced_dictionaries; |
| 1122 | break; |
| 1123 | } |
| 1124 | return Status::OK(); |
| 1125 | } |
| 1126 | |
| 1127 | std::shared_ptr<Listener> listener_; |
| 1128 | const IpcReadOptions options_; |
nothing calls this directly
no test coverage detected