Package com.asakusafw.directio.hive.annotation

Examples of com.asakusafw.directio.hive.annotation.HiveField


        assertThat(infos, arrayWithSize(1));
        HiveTableInfo info = infos[0].newInstance();
        assertThat(info.getTableName(), is("model"));

        Method simple = descriptor.getDataModelClass().getMethod("getSimpleOption");
        HiveField field = simple.getAnnotation(HiveField.class);
        assertThat(field, is(notNullValue()));
        assertThat(field.name(), is("simple"));
        assertThat(field.type(), is("int"));
        assertThat(field.ignore(), is(false));
    }
View Full Code Here


        assertThat(property, is(notNullValue()));
        assertThat(property.getFieldName(), is("f"));
        assertThat(property.getInspector().getTypeName(), is("int"));

        Method simple = descriptor.getDataModelClass().getMethod("getSimpleOption");
        HiveField field = simple.getAnnotation(HiveField.class);
        assertThat(field, is(notNullValue()));
        assertThat(field.name(), is("f"));
    }
View Full Code Here

        DataModelDescriptor descriptor = descriptor(loader, "ModelDescriptorFactory");
        assertThat(descriptor.getPropertyDescriptors(), hasSize(1));
        assertThat(descriptor.findPropertyDescriptor("simple"), is(notNullValue()));

        Method simple = descriptor.getDataModelClass().getMethod("getIgnoredOption");
        HiveField field = simple.getAnnotation(HiveField.class);
        assertThat(field, is(notNullValue()));
        assertThat(field.ignore(), is(true));
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.directio.hive.annotation.HiveField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.