Examples of FunctionDescProto


Examples of org.apache.tajo.catalog.proto.CatalogProtos.FunctionDescProto

    CommonTestingUtil.getTestDir(TEST_PATH);
    File save = new File(TEST_PATH + "/save.dat");
    FileUtil.writeProto(save, desc.getProto());

    FunctionDescProto proto = FunctionDescProto.getDefaultInstance();
    proto = (FunctionDescProto) FileUtil.loadProto(save, proto);

    FunctionDesc newDesc = new FunctionDesc(proto);
    assertEquals("sum", newDesc.getSignature());
    assertEquals(TestSum.class, newDesc.getFuncClass());
View Full Code Here

Examples of org.apache.tajo.catalog.proto.CatalogProtos.FunctionDescProto

  @Test
  public void testGetProto() throws InternalException, ClassNotFoundException {
    FunctionDesc desc = new FunctionDesc("sum", TestSum.class, FunctionType.GENERAL,
        CatalogUtil.newSimpleDataType(Type.INT4),
        CatalogUtil.newSimpleDataTypeArray(Type.INT4, Type.INT8));
    FunctionDescProto proto = desc.getProto();
    FunctionDesc fromProto = new FunctionDesc(proto);
    assertEquals(desc, fromProto);
    assertEquals(desc.toJson(), fromProto.toJson());
  }
View Full Code Here

Examples of org.apache.tajo.catalog.proto.CatalogProtos.FunctionDescProto

    CommonTestingUtil.getTestDir(TEST_PATH);
    File save = new File(TEST_PATH + "/save.dat");
    FileUtil.writeProto(save, desc.getProto());

    FunctionDescProto proto = FunctionDescProto.getDefaultInstance();
    proto = (FunctionDescProto) FileUtil.loadProto(save, proto);

    FunctionDesc newDesc = new FunctionDesc(proto);

    assertEquals("sum", newDesc.getSignature());
View Full Code Here

Examples of org.apache.tajo.catalog.proto.CatalogProtos.FunctionDescProto

  @Test
  public void testGetProto() throws InternalException, ClassNotFoundException {
    FunctionDesc desc = new FunctionDesc("sum", TestSum.class, FunctionType.GENERAL,
        CatalogUtil.newSimpleDataType(Type.INT4),
        CatalogUtil.newSimpleDataTypeArray(Type.INT4, Type.INT8));
    FunctionDescProto proto = desc.getProto();
    FunctionDesc fromProto = new FunctionDesc(proto);
    assertEquals(desc, fromProto);
    assertEquals(desc.toJson(), fromProto.toJson());
  }
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.