Text also has a find() method, which is analogous to String's indexOf(): Text t = new Text("hadoop"); assertThat("Find a substring", t.find("do"), ...
確定! 回上一頁