| 1142 | } |
| 1143 | |
| 1144 | bool MapVector::isSorted(vector_size_t index) const { |
| 1145 | if (isNullAt(index)) { |
| 1146 | return true; |
| 1147 | } |
| 1148 | auto offset = rawOffsets_[index]; |
| 1149 | auto size = rawSizes_[index]; |
| 1150 | for (auto i = 1; i < size; ++i) { |
| 1151 | if (keys_->compare(keys_.get(), offset + i - 1, offset + i) >= 0) { |
| 1152 | return false; |
| 1153 | } |
| 1154 | } |
| 1155 | return true; |
| 1156 | } |
| 1157 | |
| 1158 | void MapVector::setType(const TypePtr& type) { |
| 1159 | BaseVector::setType(type); |