org.apache.hadoop.hbase.io
Interface CodeToClassAndBack

All Known Implementing Classes:
HbaseMapWritable

public interface CodeToClassAndBack

A Static Interface. Instead of having this code in the the HbaseMapWritable code, where it blocks the possibility of altering the variables and changing their types, it is put here in this static interface where the static final Maps are loaded one time. Only byte[] and Cell are supported at this time.


Nested Class Summary
static class CodeToClassAndBack.InternalStaticLoader
          Class that loads the static maps with their values.
 
Field Summary
static Map<Class<?>,Byte> CLASS_TO_CODE
          Static map that contains mapping from class to code
static Class<?>[] classList
          Class list for supported classes
static Map<Byte,Class<?>> CODE_TO_CLASS
          Static map that contains mapping from code to class
static CodeToClassAndBack.InternalStaticLoader sl
          The static loader that is used instead of the static constructor in HbaseMapWritable.
 

Field Detail

CODE_TO_CLASS

static final Map<Byte,Class<?>> CODE_TO_CLASS
Static map that contains mapping from code to class


CLASS_TO_CODE

static final Map<Class<?>,Byte> CLASS_TO_CODE
Static map that contains mapping from class to code


classList

static final Class<?>[] classList
Class list for supported classes


sl

static final CodeToClassAndBack.InternalStaticLoader sl
The static loader that is used instead of the static constructor in HbaseMapWritable.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.