test_class.file: tajo-core/src/test/java/org/apache/tajo/engine/function/TestGeneralFunction.java
test_class.identifier: TestGeneralFunction
test_case.body: @Test
    public void testDate() {
      Date date = new Date();
      Tuple tuple = new VTuple(new Datum[] {new TextDatum("25/12/2012 00:00:00")});
      Int8Datum unixtime = (Int8Datum) date.eval(tuple);
      Calendar c = Calendar.getInstance();
      c.setTimeInMillis(unixtime.asInt8());
      assertEquals(2012, c.get(Calendar.YEAR));
      assertEquals(11, c.get(Calendar.MONTH));
      assertEquals(25, c.get(Calendar.DAY_OF_MONTH));
      assertEquals(0, c.get(Calendar.HOUR_OF_DAY));
      assertEquals(0, c.get(Calendar.MINUTE));
      assertEquals(0, c.get(Calendar.SECOND));
    }
test_case.class_method_signature: TestGeneralFunction.testDate()
test_case.full_signature: @Test public void testDate()
test_case.identifier: testDate
test_case.invocations: eval getInstance setTimeInMillis asInt8 assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDate()
focal_class.file: tajo-core/src/main/java/org/apache/tajo/engine/function/GeneralFunction.java
focal_class.identifier: GeneralFunction
focal_class.interfaces: implements GsonObject
focal_class.class_method_signature: GeneralFunction.GeneralFunction(Column[] definedArgs)
focal_class.full_signature: public  GeneralFunction(Column[] definedArgs)
focal_class.identifier: GeneralFunction
focal_class.modifiers: public
focal_class.parameters: (Column[] definedArgs)
focal_class.signature:  GeneralFunction(Column[] definedArgs)
focal_class.class_method_signature: GeneralFunction.init(FunctionEval.ParamType [] paramTypes)
focal_class.full_signature: public void init(FunctionEval.ParamType [] paramTypes)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (FunctionEval.ParamType [] paramTypes)
focal_class.return: void
focal_class.signature: void init(FunctionEval.ParamType [] paramTypes)
focal_class.class_method_signature: GeneralFunction.eval(Tuple params)
focal_class.full_signature: public abstract Datum eval(Tuple params)
focal_class.identifier: eval
focal_class.modifiers: public abstract
focal_class.parameters: (Tuple params)
focal_class.return: Datum
focal_class.signature: Datum eval(Tuple params)
focal_class.class_method_signature: GeneralFunction.toJson()
focal_class.full_signature: @Override public String toJson()
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toJson()
focal_class.class_method_signature: GeneralFunction.getFunctionType()
focal_class.full_signature: @Override public CatalogProtos.FunctionType getFunctionType()
focal_class.identifier: getFunctionType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: CatalogProtos.FunctionType
focal_class.signature: CatalogProtos.FunctionType getFunctionType()
focal_class.superclass: extends Function
focal_method.body: public abstract Datum eval(Tuple params);
focal_method.class_method_signature: GeneralFunction.eval(Tuple params)
focal_method.full_signature: public abstract Datum eval(Tuple params)
focal_method.identifier: eval
focal_method.modifiers: public abstract
focal_method.parameters: (Tuple params)
focal_method.return: Datum
focal_method.signature: Datum eval(Tuple params)