gpt4 book ai didi

java - 在 hadoop 中将 String 对象转换为 TEXT 对象

转载 作者:可可西里 更新时间:2023-11-01 15:39:19 25 4
gpt4 key购买 nike

如何在不使用构造函数的情况下将字符串对象转换为 hadoop 中的文本对象?有可用的 Text to String 方法,但我找不到 String to Text 方法。

最佳答案

Text text = new Text("your-string");

Text text = new Text();
text.set("your-string");

关于java - 在 hadoop 中将 String 对象转换为 TEXT 对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19424740/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com