哪个版本的 Cassandra 和 Thrift API 完全支持 C#?
哪个版本的 Cassandra 和 Thrift API 完全支持 C#?
因为创建 Thrift.dll 的 C# 源当前与生成 Thrift.jar
C# .net 的 Java 源不同,此处
\thrift-0.6.1\lib\csharp\src
缺少 TFastFramedTransport 类,该类位于此文件夹中的 Java 源代码中
\thrift-0.6.1\lib\java\src\org\apache\thrift
Which version of Cassandra and the Thrift API fully supports C#?
Because the C# source to create the Thrift.dll is currently different from the Java source to generate the Thrift.jar
C# .net here
\thrift-0.6.1\lib\csharp\src
or here in the Apache Thrift SVN
Is missing the class TFastFramedTransport which is in the Java source found in this folder
\thrift-0.6.1\lib\java\src\org\apache\thrift
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Thrift 0.6 版本已经完全支持 C#。
Cassandra是用java编写的,但它通过套接字接受来自应用程序的请求,Thrift API支持这使其更容易。所以!您只需通过命令提示符生成 Cassandra 客户端并使用它:),取决于您的应用程序使用哪种编程语言,
例如,生成 C# Cassandra 客户端:
生成 java Cassandra 客户端:
...但是,它是 强烈建议使用 Aquiles 或 Hector 等更高级别的客户端,而不是尝试直接使用 Thrift。它不是为此而设计的。
(具体来说,关于框架传输,C# 多年来一直支持它,只是没有与 Java 的类名完全相同。)
Thrift version 0.6 fully supports C# already.
Cassandra is written in java, but it takes requests from applications through sockets, which is supported by Thrift API to make it easier. So! you just generate Cassandra client by command prompt and use it :), Depend on which programming language you are using for your application
for example, to generate C# Cassandra client:
to generate java Cassandra client:
... however, it is strongly recommended to use a higher level client like Aquiles or Hector instead of trying to use Thrift directly. It's not designed for that.
(Re the framed transport specifically, that's been supported from C# for years, just not with the exact same class name as Java.)
我在这里向 Thrift 邮件列表提出了同样的问题:
IFastFramedTransport 缺失C# 源码
得到了这个答案:
I asked the same question of the Thrift mailing list here:
IFastFramedTransport missing in C# source
And got this answer: