Package com.odiago.flumebase.exec

Examples of com.odiago.flumebase.exec.BuiltInSymbolTable


  /**
   * Main constructor.
   */
  public LocalEnvironment(Configuration conf) {
    this(conf,
        new HashSymbolTable(new BuiltInSymbolTable()),
        new HashMap<String, MemoryOutputElement>(),
        new EmbeddedFlumeConfig(conf));
  }
View Full Code Here


  @Test
  public void testLengthFn() throws Exception {
    FnCallExpr fnCallExpr;
    TypeChecker checker;
    Object value;
    SymbolTable symbols = new HashSymbolTable(new BuiltInSymbolTable());

    // This is expected to succeed.
    fnCallExpr = new FnCallExpr("length");
    fnCallExpr.addArg(new ConstExpr(Type.getPrimitive(Type.TypeName.STRING), "meep"));
    checker = new TypeChecker(symbols);
View Full Code Here

  private Map<String, MemoryOutputElement> mOutputs;
  private EmbeddedFlumeConfig mFlumeConfig;

  @BeforeMethod
  public void setUp() {
    mSymbolTable = new HashSymbolTable(new BuiltInSymbolTable());
    mConf = new Configuration();
    mOutputs = Collections.synchronizedMap(new HashMap<String, MemoryOutputElement>());
    mFlumeConfig = new EmbeddedFlumeConfig(mConf);
    mEnvironment = new LocalEnvironment(mConf, mSymbolTable, mOutputs, mFlumeConfig);
  }
View Full Code Here

TOP

Related Classes of com.odiago.flumebase.exec.BuiltInSymbolTable

Copyright © 2018 www.massapicom. 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.