Examples of prepare()


Examples of com.inadco.hbl.client.PreparedAggregateQuery.prepare()

             * of the query, only prepare() updates that. but prepare does
             * reset() implicitly, so if we re-prepared the query, the previous
             * parameter set cannot be used.
             */
            long ms = System.currentTimeMillis();
            query.prepare("select dim1, SUM(impCnt) as ?, COUNT(impCnt) as ?, SUM(click) as clickSum, "
                + "COUNT(click) as clickCnt, cannyAvg7d(clickTimeSeries) as ctr " +

                "from Example1 where dim1 in [?] " + ", impressionTime in [?,?) " + ", dim2 in [ '1' ]"
                + "group by dim1");
            System.out.printf("query prepared in %d ms\n", System.currentTimeMillis() - ms);
View Full Code Here

Examples of com.inadco.hbl.client.impl.PreparedAggregateQueryImpl.prepare()

                    Configuration conf = context.getConfiguration();
                    HblQueryClient hblQueryClient = new HblQueryClient(conf);
                    HblInputSplit hblSplit = (HblInputSplit) split;

                    PreparedAggregateQueryImpl paq = (PreparedAggregateQueryImpl) hblQueryClient.createPreparedQuery();
                    paq.prepare(getHblQuery(conf));

                    String cuboidTableName = hblSplit.getCuboidTable();
                    if (cuboidTableName == null)
                        throw new HblException("Invalid cuboid name at backend. Something in MR happened wrong.");
View Full Code Here

Examples of com.mycila.testing.core.api.TestNotifier.prepare()

        ShutdownHook.get().add(new Closeable() {
            public void close() throws Exception {
                testNotifier.shutdown();
            }
        });
        testNotifier.prepare();
        try {
            setUp();
            testNotifier.fireBeforeTest(getTestMethod());
            TestExecution testExecution = (TestExecution) Mycila.currentExecution();
            if (!testExecution.mustSkip()) {
View Full Code Here

Examples of com.opensymphony.xwork2.ActionProxy.prepare()

    public ActionProxy createActionProxy(String namespace, String actionName, Map extraContext,
            boolean executeResult, boolean cleanupContext) throws Exception {
        ActionProxy proxy = new StrutsActionProxy(namespace, actionName, extraContext, executeResult, cleanupContext);
        container.inject(proxy);
        proxy.prepare();
        return proxy;
    }
}
View Full Code Here

Examples of com.prupe.mcpatcher.sky.SkyRenderer$Layer.prepare()

    Iterator texturesToUnload = this.skies.iterator();

    while (texturesToUnload.hasNext()) {
      SkyRenderer$Layer i$ = (SkyRenderer$Layer)texturesToUnload.next();

      if (i$.prepare()) {
        texturesNeeded.add(SkyRenderer$Layer.access$300(i$));
      }
    }

    HashSet texturesToUnload1 = new HashSet();
View Full Code Here

Examples of com.pugh.sockso.db.Database.prepare()

        expect( st.executeQuery() ).andReturn( rs ).times( 1 );
        st.close();
        replay( st );
       
        final Database db = createMock( Database.class );
        expect( db.prepare((String)anyObject()) ).andReturn( st ).times( 1 );
        replay( db );
       
        final MyCoverSearch s = new MyCoverSearch( db );
        final String name = s.getMusicItemName( "ar123" );
       
View Full Code Here

Examples of com.sleepycat.collections.TransactionRunner.prepare()

         }
      } else {
         PreparableTransactionRunner runner = new PreparableTransactionRunner(env);
         com.sleepycat.je.Transaction txn = null;
         try {
            runner.prepare(new ModificationsTransactionWorker(mods));
            txn = CurrentTransaction.getInstance(env).getTransaction();
            txnMap.put(tx, txn);
         } catch (Exception e) {
            e.printStackTrace();
         }
View Full Code Here

Examples of com.sleepycat.je.XAEnvironment.prepare()

            insertData(txn, 0, numRecs - 1, expectedData, 1, commit, NUM_DBS);
      if (!explicitTxn) {
    xaEnv.end(xid, 0);
      }

      xaEnv.prepare(xid);

      if (recover) {
    closeEnv();
    xaRecoverOnly(NUM_DBS);
    xaEnv = (XAEnvironment) env;
View Full Code Here

Examples of com.spoledge.audao.parser.gql.GqlExtDynamic.prepare()

     * Just test that the classpath contains all needed classes.
     */
    @Test
    public void testGqlExt() throws Exception {
        GqlExtDynamic gqlExt = new GqlExtDynamic( gae.getDatastoreService());
        PreparedGql pq = gqlExt.prepare( "SELECT cos(:1*3.1415/180) as 'cos' FROM dual");
        for (Entity ent : pq.executeQuery( 30 )) {
            log.debug("testGqlExt(): " + ent.getProperty("cos"));
        }
    }

View Full Code Here

Examples of com.sun.enterprise.module.ImportPolicy.prepare()

       
        if (moduleDef.getImportPolicyClassName()!=null) {
            try {
                Class<ImportPolicy> importPolicyClass = (Class<ImportPolicy>) getPrivateClassLoader().loadClass(moduleDef.getImportPolicyClassName());
                ImportPolicy importPolicy = importPolicyClass.newInstance();
                importPolicy.prepare(this);
            } catch(ClassNotFoundException e) {
                state = ModuleState.ERROR;
                throw new ResolveError(e);
            } catch(java.lang.InstantiationException e) {
                state = ModuleState.ERROR;
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.