case INLINE:
return new SpecificCellDecoder<T>(cellSpec);
case PROTOBUF:
return new ProtobufCellDecoder<T>(cellSpec);
case RAW_BYTES:
return new RawBytesCellDecoder(cellSpec);
case COUNTER:
// purposefully forget the type (long) param of cell decoders for counters.
@SuppressWarnings("unchecked")
final KijiCellDecoder<T> counterCellDecoder = (KijiCellDecoder<T>) CounterCellDecoder.get();
return counterCellDecoder;