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