org.apache.flume.sink.hbase
Class SimpleRowKeyGenerator
java.lang.Object
org.apache.flume.sink.hbase.SimpleRowKeyGenerator
public class SimpleRowKeyGenerator
- extends Object
Utility class for users to generate their own keys. Any key can be used,
this is just a utility that provides a set of simple keys.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRowKeyGenerator
public SimpleRowKeyGenerator()
getUUIDKey
public static byte[] getUUIDKey(String prefix)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getRandomKey
public static byte[] getRandomKey(String prefix)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getTimestampKey
public static byte[] getTimestampKey(String prefix)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getNanoTimestampKey
public static byte[] getNanoTimestampKey(String prefix)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
Copyright © 2009-2013 Apache Software Foundation. All Rights Reserved.