This project has retired. For details please refer to its
        
        Attic page.
      
org.apache.gora.hbase.util
Class HBaseByteInterface
java.lang.Object
   org.apache.gora.hbase.util.HBaseByteInterface
org.apache.gora.hbase.util.HBaseByteInterface
- public class HBaseByteInterface 
- extends Object
Contains utility methods for byte[] <-> field
 conversions.
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
decoders
public static final ThreadLocal<org.apache.avro.io.BinaryDecoder> decoders
- Threadlocals maintaining reusable binary decoders and encoders.
 
 
encoders
public static final ThreadLocal<HBaseByteInterface.BinaryEncoderWithStream> encoders
readerMaps
public static final ThreadLocal<Map<String,org.apache.avro.specific.SpecificDatumReader<?>>> readerMaps
writerMaps
public static final ThreadLocal<Map<String,org.apache.avro.specific.SpecificDatumWriter<?>>> writerMaps
HBaseByteInterface
public HBaseByteInterface()
fromBytes
public static Object fromBytes(org.apache.avro.Schema schema,
                               byte[] val)
                        throws IOException
- 
- Throws:
- IOException
 
fromBytes
public static <K> K fromBytes(Class<K> clazz,
                              byte[] val)
- 
 
toBytes
public static byte[] toBytes(Object o)
- 
 
toBytes
public static byte[] toBytes(Object o,
                             org.apache.avro.Schema schema)
                      throws IOException
- 
- Throws:
- IOException
 
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.