如何在不使用构造函数的情况下将字符串对象转换为 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/