|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.formatter.output.BucketPath
public class BucketPath
Field Summary | |
---|---|
static String |
TAG_REGEX
These are useful to other classes which might want to search for tags in strings. |
static Pattern |
tagPattern
|
Constructor Summary | |
---|---|
BucketPath()
|
Method Summary | |
---|---|
static boolean |
containsTag(String in)
Returns true if in contains a substring matching TAG_REGEX (i.e. |
static String |
escapeString(String in,
Map<String,String> headers)
Replace all substrings of form %{tagname} with get(tagname).toString() and all shorthand substrings of form %x with a special value. |
static String |
expandShorthand(char c)
|
static Map<String,String> |
getEscapeMapping(String in,
Map<String,String> headers)
Instead of replacing escape sequences in a string, this method returns a mapping of an attribute name to the value based on the escape sequence found in the argument string. |
static String |
replaceShorthand(char c,
Map<String,String> headers)
Hardcoded lookups for %x style escape replacement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAG_REGEX
public static final Pattern tagPattern
Constructor Detail |
---|
public BucketPath()
Method Detail |
---|
public static boolean containsTag(String in)
public static String expandShorthand(char c)
public static String replaceShorthand(char c, Map<String,String> headers)
public static String escapeString(String in, Map<String,String> headers)
public static Map<String,String> getEscapeMapping(String in, Map<String,String> headers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |