|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.nutch.util.TableUtil
public class TableUtil
| Field Summary | |
|---|---|
static ByteBuffer |
YES_VAL
|
| Constructor Summary | |
|---|---|
TableUtil()
|
|
| Method Summary | |
|---|---|
static String |
getReversedHost(String reversedUrl)
Given a reversed url, returns the reversed host E.g "com.foo.bar:http:8983/to/index.html?a=b" -> "com.foo.bar" |
static String |
reverseHost(String hostName)
|
static String |
reverseUrl(String urlString)
Reverses a url's domain. |
static String |
reverseUrl(URL url)
Reverses a url's domain. |
static String |
toString(org.apache.avro.util.Utf8 utf8)
Convert given Utf8 instance to String |
static String |
unreverseHost(String reversedHostName)
|
static String |
unreverseUrl(String reversedUrl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ByteBuffer YES_VAL
| Constructor Detail |
|---|
public TableUtil()
| Method Detail |
|---|
public static String reverseUrl(String urlString)
throws MalformedURLException
E.g. "http://bar.foo.com:8983/to/index.html?a=b" becomes "com.foo.bar:8983:http/to/index.html?a=b".
url - url to be reversed
MalformedURLExceptionpublic static String reverseUrl(URL url)
E.g. "http://bar.foo.com:8983/to/index.html?a=b" becomes "com.foo.bar:http:8983/to/index.html?a=b".
url - url to be reversed
public static String unreverseUrl(String reversedUrl)
public static String getReversedHost(String reversedUrl)
reversedUrl - Reversed url
public static String reverseHost(String hostName)
public static String unreverseHost(String reversedHostName)
public static String toString(org.apache.avro.util.Utf8 utf8)
utf8 - Utf8 object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||