Skip to content

Commit d27e3c3

Browse files
author
Matthew Topol
committed
switching to unordered_map
1 parent 858b44b commit d27e3c3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cpp/src/arrow/io/hdfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define ARROW_IO_HDFS
2020

2121
#include <cstdint>
22-
#include <map>
22+
#include <unordered_map>
2323
#include <memory>
2424
#include <string>
2525
#include <vector>
@@ -64,7 +64,7 @@ struct HdfsConnectionConfig {
6464
int port;
6565
std::string user;
6666
std::string kerb_ticket;
67-
std::map<std::string, std::string> extra_conf;
67+
std::unordered_map<std::string, std::string> extra_conf;
6868
HdfsDriver driver;
6969
};
7070

python/pyarrow/includes/libarrow.pxd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# distutils: language = c++
1919

2020
from pyarrow.includes.common cimport *
21-
from libcpp.map cimport map as cppmap
2221

2322
cdef extern from "arrow/util/key_value_metadata.h" namespace "arrow" nogil:
2423
cdef cppclass CKeyValueMetadata" arrow::KeyValueMetadata":
@@ -651,7 +650,7 @@ cdef extern from "arrow/io/api.h" namespace "arrow::io" nogil:
651650
int port
652651
c_string user
653652
c_string kerb_ticket
654-
cppmap[c_string, c_string] extra_conf
653+
unordered_map[c_string, c_string] extra_conf
655654
HdfsDriver driver
656655

657656
cdef cppclass HdfsPathInfo:

0 commit comments

Comments
 (0)