org.apache.hadoop.hbase.hbql.io
Class JavaSerialization

java.lang.Object
  extended by org.apache.hadoop.hbase.hbql.io.Serialization
      extended by org.apache.hadoop.hbase.hbql.io.JavaSerialization

public class JavaSerialization
extends Serialization


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.hbql.io.Serialization
Serialization.TYPE
 
Constructor Summary
JavaSerialization()
           
 
Method Summary
 byte[] getArrayAsBytes(FieldType fieldType, Object obj)
           
 Object getArrayFromBytes(FieldType fieldType, Class clazz, byte[] b)
           
 byte[] getScalarAsBytes(FieldType fieldType, Object obj)
           
 Object getScalarFromBytes(FieldType fieldType, byte[] b)
           
 
Methods inherited from class org.apache.hadoop.hbase.hbql.io.Serialization
getBooleanFromBytes, getByteFromBytes, getExceptionMessage, getNumberEqualityBytes, getNumberFromBytes, getObjectAsBytes, getObjectFromBytes, getSerializationStrategy, getStringAsBytes, getStringFromBytes, isSerializable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSerialization

public JavaSerialization()
Method Detail

getScalarFromBytes

public Object getScalarFromBytes(FieldType fieldType,
                                 byte[] b)
                          throws HBqlException
Specified by:
getScalarFromBytes in class Serialization
Throws:
HBqlException

getScalarAsBytes

public byte[] getScalarAsBytes(FieldType fieldType,
                               Object obj)
                        throws HBqlException
Specified by:
getScalarAsBytes in class Serialization
Throws:
HBqlException

getArrayFromBytes

public Object getArrayFromBytes(FieldType fieldType,
                                Class clazz,
                                byte[] b)
                         throws HBqlException
Specified by:
getArrayFromBytes in class Serialization
Throws:
HBqlException

getArrayAsBytes

public byte[] getArrayAsBytes(FieldType fieldType,
                              Object obj)
                       throws HBqlException
Specified by:
getArrayAsBytes in class Serialization
Throws:
HBqlException


Copyright © 2011. All Rights Reserved.