Examples of initialize()

  • org.xtreemfs.babudb.sandbox.RandomGenerator.initialize()
    Generates the static meta-operations scenario. @param seed - has to be the same at every BabuDB. @return the operations scenario.
  • pdp.scrabble.game.Player.initialize()
  • persistence.antlr.collections.AST.initialize()
  • ptolemy.actor.Director.initialize()
    Initialize the model controlled by this director. Set the current time to the start time or the current time of the executive director, and then invoke the initialize() method of this director on each actor that is controlled by this director. If the container is not an instance of CompositeActor, do nothing. This method should typically be invoked once per execution, after the preinitialization phase, but before any iteration. It may be invoked in the middle of an execution, if reinitialization is desired. Since type resolution has been completed and the current time is set, the initialize() method of a contained actor may produce output or schedule events. If stop() is called during this methods execution, then stop initializing actors immediately. This method is not synchronized on the workspace, so the caller should be. @exception IllegalActionException If the initialize() method ofone of the associated actors throws it.
  • ptolemy.actor.Manager.initialize()
    Initialize the model. This calls the preinitialize() method of the container, followed by the resolveTypes() and initialize() methods. Set the Manager's state to PREINITIALIZING and INITIALIZING as appropriate. This method is read synchronized on the workspace. @exception KernelException If the model throws it. @exception IllegalActionException If the model is already running, orif there is no container.
  • ptolemy.copernicus.kernel.GeneratorAttribute.initialize()
    If this GeneratorAttribute has not yet been initialized, the initialized it by reading the moml file named by the initialParametersURL and creating Parameters and Variables accordingly.
  • ptolemy.distributed.common.DistributedActor.initialize()
    Begin execution of the actor. @exception RemoteException If a communication-related exception mayoccur during the execution of a remote method call.
  • ptolemy.graph.InequalityTerm.initialize()
    Initialize the value of this term to the specified CPO element. If this InequalityTerm is a simple variable that can be set to any CPO element, set the value of the variable to the specified argument. In this case, this method is equivalent to setValue() with the same argument. In some applications, this term is a structured object that only part of it is a simple variable. In this case, set that variable part to the specified argument. @param e An Object representing an element in the underlying CPO. @exception IllegalActionException If this term is not a variable.
  • q_impress.pmi.lib.services.loadsave.LoadingService.initialize()
  • q_impress.pmi.lib.services.loadsave.SavingService.initialize()
  • rs.frenjoynet.core.core.BaseFacade.initialize()
  • shapes.OtherClass.initialize()

  • share.LogWriter.initialize()
  • sicel.compiler.parser.Lexer.initialize()
  • sos.stresstest.dialogtest.SOSDialogTest.initialize()
  • structures.Network.initialize()
    Initializes individual columns within the entire Network.
  • sun.security.pkcs11.Secmod.initialize()
    Initialize this Secmod. @param configDir the directory containing the NSS configurationfiles such as secmod.db @param nssLibDir the directory containing the NSS libraries(libnss3.so or nss3.dll) or null if the library is on the system default shared library path @throws IOException if NSS has already been initialized,the specified directories are invalid, or initialization fails for any other reason
  • testrf.shared.TestRequestFactory.initialize()
  • uptimemart.Database.initialize()
    Creates the tables if the table does not already exist

    This method determines whether the SERVERS database has been created, if not create it.

  • us.b3k.kafka.ws.transforms.Transform.initialize()
  • vsv.VSVModel.initialize()
  • waffle.windows.auth.IWindowsCredentialsHandle.initialize()
  • waffle.windows.auth.impl.WindowsSecurityContextImpl.initialize()
  • weka.experiment.InstanceQuery.initialize()
  • wpn.hdri.ss.engine.EngineInitializer.initialize()
  • xbird.xquery.func.constructor.CastingFunction.initialize()

  • Examples of org.apache.hadoop.hive.serde2.SerDe.initialize()

        writer.write(serde.serialize(new MyRow(3,2), inspector));
        serde = new OrcSerde();
        properties.setProperty("columns", "x,y");
        properties.setProperty("columns.types", "int:int");
        serde.initialize(conf, properties);
        assertEquals(OrcSerde.OrcSerdeRow.class, serde.getSerializedClass());
        inspector = (StructObjectInspector) serde.getObjectInspector();
        assertEquals("struct<x:int,y:int>", inspector.getTypeName());
        InputFormat<?,?> in = new OrcInputFormat();
        FileInputFormat.setInputPaths(conf, testFilePath.toString());
    View Full Code Here

    Examples of org.apache.hadoop.hive.serde2.Serializer.initialize()

        Class<? extends Writable> outputClass = null;
        boolean isCompressed = conf.getCompressed();
        TableDesc tableInfo = conf.getTableInfo();
        try {
          Serializer serializer = (Serializer) tableInfo.getDeserializerClass().newInstance();
          serializer.initialize(null, tableInfo.getProperties());
          outputClass = serializer.getSerializedClass();
          hiveOutputFormat = conf.getTableInfo().getOutputFileFormatClass().newInstance();
        } catch (SerDeException e) {
          throw new HiveException(e);
        } catch (InstantiationException e) {
    View Full Code Here

    Examples of org.apache.hadoop.hive.serde2.binarysortable.BinarySortableSerDe.initialize()

            typeSb.length() - 1) : "";
        tbl.setProperty(serdeConstants.LIST_COLUMNS, names);
        tbl.setProperty(serdeConstants.LIST_COLUMN_TYPES, types);
        try {
          serde.initialize(null, tbl);
        } catch (SerDeException e) {
          throw new CrunchRuntimeException("Unable to initialize binary serde");
        return serde;
    View Full Code Here

    Examples of org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.initialize()

          System.out.println("test: testColumnarSerde");
          // Create the SerDe
          ColumnarSerDe serDe = new ColumnarSerDe();
          Configuration conf = new Configuration();
          Properties tbl = createProperties();
          serDe.initialize(conf, tbl);

          // Data
          BytesRefArrayWritable braw = new BytesRefArrayWritable(8);
          String[] data = {"123", "456", "789", "1000", "5.3", "hive and hadoop", "1.", "NULL"};
          for (int i = 0; i < 8; i++) {
    View Full Code Here

    Examples of org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDe.initialize()

        serDDL = serDDL.concat("}");

        dsp.setProperty(Constants.SERIALIZATION_DDL, serDDL);
        dsp.setProperty(Constants.SERIALIZATION_LIB, ds.getClass().toString());
        dsp.setProperty(Constants.FIELD_DELIM, "9");
        ds.initialize(new Configuration(), dsp);

        String row = client.fetchOne();
        Object o = ds.deserialize(new BytesWritable(row.getBytes()));

        assertEquals(o.getClass().toString(), "class java.util.ArrayList");
    View Full Code Here

    Examples of org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe.initialize()

          // Create the SerDe
          System.out.println("test: testLazySimpleSerDe");
          LazySimpleSerDe serDe = new LazySimpleSerDe();
          Configuration conf = new Configuration();
          Properties tbl = createProperties();
          serDe.initialize(conf, tbl);

          // Data
          Text t = new Text("123\t456\t789\t1000\t5.3\thive and hadoop\t1.\tNULL");
          // Test
          deserializeAndSerializeLazySimple(serDe, t);
    View Full Code Here

    Examples of org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe.initialize()

        serDe.initialize(cfg, p);
        return serDe;

    View Full Code Here

    Examples of org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol.initialize()


        // use 3 as the row buffer size to force lots of re-buffering.
        TCTLSeparatedProtocol prot = new TCTLSeparatedProtocol(trans, 1024);
        prot.initialize(new Configuration(), new Properties());


        String hello = prot.readString();
    View Full Code Here

    Examples of org.apache.hadoop.mapred.gridmix.emulators.resourceusage.CumulativeCpuUsageEmulatorPlugin.initialize()

        CumulativeCpuUsageEmulatorPlugin cpuPlugin =
          new CumulativeCpuUsageEmulatorPlugin(fakeCore);
        // test with invalid or missing resource usage value
        ResourceUsageMetrics invalidUsage = createMetrics(0);
        cpuPlugin.initialize(conf, invalidUsage, null, null);
        // test if disabled cpu emulation plugin's emulate() call is a no-operation
        // this will test if the emulation plugin is disabled or not
        int numCallsPre = fakeCore.getNumCalls();
        long cpuUsagePre = fakeCore.getCpuUsage();
    View Full Code Here

    Examples of org.apache.hadoop.mapreduce.RecordReader.initialize()

        // Switch the active context for the RecordReader...
        Configuration conf2 = new Configuration();
        conf2.set(DUMMY_KEY, "STATE2");
        TaskAttemptContext context2 = new TaskAttemptContext(conf2, taskId);
        rr.initialize(split, context2);

        // And verify that the new context is updated into the child record reader.
        assertEquals("Invalid secondary dummy key value", "STATE2",
    View Full Code Here
    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.