Package com.asakusafw.directio.hive.annotation

Examples of com.asakusafw.directio.hive.annotation.HiveField.ignore()


        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));
    }

    /**
     * w/o attribute.
     */
 
View Full Code Here


        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));
    }

    private DataModelDescriptor descriptor(ModelLoader loader, String simpleName) {
        try {
            Class<?> aClass = loader.load(HiveDataModelEmitter.CATEGORY, simpleName);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.