Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ベンチマークに YCSB を使用しています。Javaでカスタムコードを書いています。String 型と Int 型の 2 つのフィールドがありますが、db.insert メソッドはHashMapof<String,ByteIterator>型を取ります。ByteIterator文字列と整数を型に変換するにはどうすればよいですか? 助けてください
HashMap
<String,ByteIterator>
ByteIterator
使用できます
new com.yahoo.ycsb.StringByteIterator(string);
MongoDbClientを見て、すでにどのようにサポートされているかを確認することをお勧めします。
MongoDbClient