public LiteralTransformFunction(LiteralContext literalContext) {
    _literalContext = literalContext;
  }
@Test
  public void testLiteralTransformFunction() {
    LiteralTransformFunction function = new LiteralTransformFunction(new LiteralContext(DataType.STRING, "1234"));
    assertFalse(function.getBooleanLiteral());
    assertEquals(function.getIntLiteral(), 1234);
    assertEquals(function.getLongLiteral(), 1234L);
    assertEquals(function.getFloatLiteral(), 1234.0f);
    assertEquals(function.getDoubleLiteral(), 1234.0);
    assertEquals(function.getBigDecimalLiteral(), new BigDecimal("1234"));
    assertEquals(function.getStringLiteral(), "1234");
    assertEquals(function.getBytesLiteral(), BytesUtils.toBytes("1234"));
    assertFalse(function.isNull());
    TransformResultMetadata resultMetadata = function.getResultMetadata();
    assertEquals(resultMetadata.getDataType(), DataType.STRING);
    assertTrue(resultMetadata.isSingleValue());
    assertFalse(resultMetadata.hasDictionary());

    ValueBlock valueBlock = mock(ValueBlock.class);
    when(valueBlock.getNumDocs()).thenReturn(NUM_DOCS);
    int[] intValues = function.transformToIntValuesSV(valueBlock);
    assertEquals(intValues.length, NUM_DOCS);
    for (int i = 0; i < NUM_DOCS; i++) {
      assertEquals(intValues[i], 1234);
    }
    long[] longValues = function.transformToLongValuesSV(valueBlock);
    assertEquals(longValues.length, NUM_DOCS);
    for (int i = 0; i < NUM_DOCS; i++) {
      assertEquals(longValues[i], 1234L);
    }
    float[] floatValues = function.transformToFloatValuesSV(valueBlock);
    assertEquals(floatValues.length, NUM_DOCS);
    for (int i = 0; i < NUM_DOCS; i++) {
      assertEquals(floatValues[i], 1234.0f);
    }
    double[] doubleValues = function.transformToDoubleValuesSV(valueBlock);
    assertEquals(doubleValues.length, NUM_DOCS);
    for (int i = 0; i < NUM_DOCS; i++) {
      assertEquals(doubleValues[i], 1234.0);
    }
    String[] stringValues = function.transformToStringValuesSV(valueBlock);
    assertEquals(stringValues.length, NUM_DOCS);
    for (int i = 0; i < NUM_DOCS; i++) {
      assertEquals(stringValues[i], "1234");
    }
    byte[][] bytesValues = function.transformToBytesValuesSV(valueBlock);
    assertEquals(bytesValues.length, NUM_DOCS);
    for (int i = 0; i < NUM_DOCS; i++) {
      assertEquals(bytesValues[i], BytesUtils.toBytes("1234"));
    }
    assertNull(function.getNullBitmap(valueBlock));
  }