Examples of OrcFileEmitter


Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * @throws Exception if failed
     */
    @Test
    public void simple() throws Exception {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "  simple : INT;",
                "};"
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * w/o attribute.
     */
    @Test
    public void wo_attribute() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "model = {",
                "  simple : INT;",
                "};"
        });
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * simple case.
     */
    @Test
    public void types() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "    c_int : INT;",
                "    c_text : TEXT;",
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * with comment.
     */
    @Test
    public void w_comment() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "'c1'",
                "@directio.hive.orc",
                "model = {",
                "  'c2'",
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * @throws Exception if failed
     */
    @Test
    public void w_field() throws Exception {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "  @directio.hive.field(name = 'f')",
                "  simple : INT;",
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * decimal with string info.
     */
    @Test
    public void decimal_w_string() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "  @directio.hive.string",
                "  simple : DECIMAL;",
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * date with string info.
     */
    @Test
    public void date_w_string() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "  @directio.hive.string",
                "  simple : DATE;",
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * date-time with string info.
     */
    @Test
    public void datetime_w_string() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "  @directio.hive.string",
                "  simple : DATETIME;",
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * with timestamp info.
     */
    @Test
    public void w_timestamp() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "  @directio.hive.timestamp",
                "  simple : DATE;",
View Full Code Here

Examples of com.asakusafw.dmdl.directio.hive.orc.OrcFileEmitter

     * with detail decimal info.
     */
    @Test
    public void w_decimal_detail() {
        emitDrivers.add(new HiveDataModelEmitter());
        emitDrivers.add(new OrcFileEmitter());
        ModelLoader loader = generateJava(new String[] {
                "@directio.hive.orc",
                "model = {",
                "  @directio.hive.decimal(precision = 10, scale = 2)",
                "  simple : DECIMAL;",
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.