@InterfaceAudience.Public @InterfaceStability.Stable @Deprecated public class Keying extends Object
TODO: Add createSchemeless key, a key that doesn't care if scheme is http or https.
Bytes.split(byte[], byte[], int)
Constructor and Description |
---|
Keying()
Deprecated.
|
public static String createKey(String u)
host
portion of
the URI authority is reversed so subdomains sort under their parent
domain. The returned String is an opaque URI of an artificial
r:
scheme to prevent the result being considered an URI of
the original scheme. Here is an example of the transform: The url
http://lucene.apache.org/index.html?query=something#middle is
returned as
r:http://org.apache.lucene/index.html?query=something#middle
The transforms are reversible. No transform is done if passed URI is
not hierarchical.
If authority userinfo
is present, will mess up the sort
(until we do more work).
u
- URL to transform.keyToUri(String)
,
RFC2396public static String keyToUri(String s)
createKey(String)
transform.s
- URI
made by createKey(String)
.createKey(String)
transform.Copyright © 2013 The Apache Software Foundation. All rights reserved.