class HbaseFieldResolver implements FieldResolver {

    @Override
    public Object getFieldValue(Field field, Object val)
    {
        if (!(val instanceof Result)) {
            String clazz = (val != null) ? val.getClass().getName() : "null";
            throw new IllegalArgumentException("Expected value of type Result but found " + clazz);
        }

        byte[] rawFieldValue = ((Result) val).getValue(family, field.getName().getBytes());
        return HbaseSchemaUtils.coerceType(isNative, field.getType(), rawFieldValue);
    }

    public  HbaseFieldResolver(boolean isNative, byte[] family);

}