test_class.file: tajo-common/src/test/java/org/apache/tajo/util/TestNumberUtil.java
test_class.identifier: TestNumberUtil
test_case.body: @Test
    public void testNumberToAsciiBytes() {
      Random r = new Random(System.currentTimeMillis());
  
      Number n = r.nextInt();
      assertArrayEquals(String.valueOf(n.shortValue()).getBytes(), NumberUtil.toAsciiBytes(n.shortValue()));
  
      n = r.nextInt();
      assertArrayEquals(String.valueOf(n.intValue()).getBytes(), NumberUtil.toAsciiBytes(n.intValue()));
  
      n = r.nextLong();
      assertArrayEquals(String.valueOf(n.longValue()).getBytes(), NumberUtil.toAsciiBytes(n.longValue()));
  
      n = r.nextFloat();
      assertArrayEquals(String.valueOf(n.floatValue()).getBytes(), NumberUtil.toAsciiBytes(n.floatValue()));
  
      n = r.nextDouble();
      assertArrayEquals(String.valueOf(n.doubleValue()).getBytes(), NumberUtil.toAsciiBytes(n.doubleValue()));
    }
test_case.class_method_signature: TestNumberUtil.testNumberToAsciiBytes()
test_case.full_signature: @Test public void testNumberToAsciiBytes()
test_case.identifier: testNumberToAsciiBytes
test_case.invocations: currentTimeMillis nextInt assertArrayEquals getBytes valueOf shortValue toAsciiBytes shortValue nextInt assertArrayEquals getBytes valueOf intValue toAsciiBytes intValue nextLong assertArrayEquals getBytes valueOf longValue toAsciiBytes longValue nextFloat assertArrayEquals getBytes valueOf floatValue toAsciiBytes floatValue nextDouble assertArrayEquals getBytes valueOf doubleValue toAsciiBytes doubleValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNumberToAsciiBytes()
focal_class.file: tajo-common/src/main/java/org/apache/tajo/util/NumberUtil.java
focal_class.identifier: NumberUtil
focal_class.class_method_signature: NumberUtil.unsigned32(int n)
focal_class.full_signature: public static long unsigned32(int n)
focal_class.identifier: unsigned32
focal_class.modifiers: public static
focal_class.parameters: (int n)
focal_class.return: long
focal_class.signature: long unsigned32(int n)
focal_class.class_method_signature: NumberUtil.unsigned16(short n)
focal_class.full_signature: public static int unsigned16(short n)
focal_class.identifier: unsigned16
focal_class.modifiers: public static
focal_class.parameters: (short n)
focal_class.return: int
focal_class.signature: int unsigned16(short n)
focal_class.class_method_signature: NumberUtil.toAsciiBytes(Number i)
focal_class.full_signature: public static byte[] toAsciiBytes(Number i)
focal_class.identifier: toAsciiBytes
focal_class.modifiers: public static
focal_class.parameters: (Number i)
focal_class.return: byte[]
focal_class.signature: byte[] toAsciiBytes(Number i)
focal_class.class_method_signature: NumberUtil.toAsciiBytes(short i)
focal_class.full_signature: public static byte[] toAsciiBytes(short i)
focal_class.identifier: toAsciiBytes
focal_class.modifiers: public static
focal_class.parameters: (short i)
focal_class.return: byte[]
focal_class.signature: byte[] toAsciiBytes(short i)
focal_class.class_method_signature: NumberUtil.toAsciiBytes(int i)
focal_class.full_signature: public static byte[] toAsciiBytes(int i)
focal_class.identifier: toAsciiBytes
focal_class.modifiers: public static
focal_class.parameters: (int i)
focal_class.return: byte[]
focal_class.signature: byte[] toAsciiBytes(int i)
focal_class.class_method_signature: NumberUtil.toAsciiBytes(long i)
focal_class.full_signature: public static byte[] toAsciiBytes(long i)
focal_class.identifier: toAsciiBytes
focal_class.modifiers: public static
focal_class.parameters: (long i)
focal_class.return: byte[]
focal_class.signature: byte[] toAsciiBytes(long i)
focal_class.class_method_signature: NumberUtil.toAsciiBytes(float i)
focal_class.full_signature: public static byte[] toAsciiBytes(float i)
focal_class.identifier: toAsciiBytes
focal_class.modifiers: public static
focal_class.parameters: (float i)
focal_class.return: byte[]
focal_class.signature: byte[] toAsciiBytes(float i)
focal_class.class_method_signature: NumberUtil.toAsciiBytes(double i)
focal_class.full_signature: public static byte[] toAsciiBytes(double i)
focal_class.identifier: toAsciiBytes
focal_class.modifiers: public static
focal_class.parameters: (double i)
focal_class.return: byte[]
focal_class.signature: byte[] toAsciiBytes(double i)
focal_class.class_method_signature: NumberUtil.benchmark(int num)
focal_class.full_signature: private static void benchmark(int num)
focal_class.identifier: benchmark
focal_class.modifiers: private static
focal_class.parameters: (int num)
focal_class.return: void
focal_class.signature: void benchmark(int num)
focal_class.class_method_signature: NumberUtil.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_method.body: public static byte[] toAsciiBytes(Number i){
      return Bytes.toASCIIBytes(String.valueOf(i).toCharArray());
    }
focal_method.class_method_signature: NumberUtil.toAsciiBytes(Number i)
focal_method.full_signature: public static byte[] toAsciiBytes(Number i)
focal_method.identifier: toAsciiBytes
focal_method.invocations: toASCIIBytes toCharArray valueOf
focal_method.modifiers: public static
focal_method.parameters: (Number i)
focal_method.return: byte[]
focal_method.signature: byte[] toAsciiBytes(Number i)