Package com.asakusafw.directio.hive.annotation

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


        assertThat(property, is(notNullValue()));
        assertThat(property.getFieldName(), is("simple"));
        assertThat(property.getTypeInfo(), is((TypeInfo) TypeInfoFactory.intTypeInfo));
        assertThat(property.getFieldComment(), is(nullValue()));

        HiveTable table = descriptor.getDataModelClass().getAnnotation(HiveTable.class);
        assertThat(table, is(notNullValue()));
        Class<? extends HiveTableInfo>[] infos = table.value();
        assertThat(infos, arrayWithSize(1));
        HiveTableInfo info = infos[0].newInstance();
        assertThat(info.getTableName(), is("model"));

        Method simple = descriptor.getDataModelClass().getMethod("getSimpleOption");
View Full Code Here

TOP

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

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.