|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.accumulo.examples.wikisearch.util.TextUtil
public class TextUtil
Constructor Summary | |
---|---|
TextUtil()
|
Method Summary | |
---|---|
static void |
appendNullByte(org.apache.hadoop.io.Text text)
Appends a null byte to the given text |
static void |
textAppend(org.apache.hadoop.io.Text t,
long s)
|
static void |
textAppend(org.apache.hadoop.io.Text text,
String string)
Appends a null byte followed by the UTF-8 bytes of the given string to the given Text |
static void |
textAppend(org.apache.hadoop.io.Text text,
String string,
boolean replaceBadChar)
|
static void |
textAppendNoNull(org.apache.hadoop.io.Text t,
String s)
Appends the UTF-8 bytes of the given string to the given Text |
static void |
textAppendNoNull(org.apache.hadoop.io.Text t,
String s,
boolean replaceBadChar)
Appends the UTF-8 bytes of the given string to the given Text |
static byte[] |
toUtf8(String string)
Converts the given string its UTF-8 bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextUtil()
Method Detail |
---|
public static void textAppend(org.apache.hadoop.io.Text text, String string)
Text
text
- the Text to which to appendstring
- the String to appendpublic static void textAppend(org.apache.hadoop.io.Text text, String string, boolean replaceBadChar)
public static void textAppend(org.apache.hadoop.io.Text t, long s)
public static void appendNullByte(org.apache.hadoop.io.Text text)
text
- the text to which to append the null bytepublic static void textAppendNoNull(org.apache.hadoop.io.Text t, String s)
Text
t
- the Text to which to appends
- the String to appendpublic static void textAppendNoNull(org.apache.hadoop.io.Text t, String s, boolean replaceBadChar)
Text
t
- s
- replaceBadChar
- public static byte[] toUtf8(String string)
String.getBytes(String)
.
string
- the string to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |