private BTreeKeySerializer<?> getBTreeKeySerializerFromClass(Class<?> klass) {
        if(klass == Integer.class) {
            return BTreeKeySerializer.ZERO_OR_POSITIVE_INT;
        }
        else if(klass == Long.class) {
            return BTreeKeySerializer.ZERO_OR_POSITIVE_LONG;
        }
        else if(klass == String.class) {
            return BTreeKeySerializer.STRING;
        }
        return null; //Default POJO serializer
    }
private BTreeKeySerializer < ? > getBTreeKeySerializerFromClass ( Class < ? > klass ) { if ( klass == Integer . class ) { return BTreeKeySerializer . ZERO_OR_POSITIVE_INT ; } else if ( klass == Long . class ) { return BTreeKeySerializer . ZERO_OR_POSITIVE_LONG ; } else if ( klass == String . class ) { return BTreeKeySerializer . STRING ; } return null ; }
Returns the appropriate BTreeKeySerializer (if one exists) else null.

@param klass
@return