Examples of MethodFactory


Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    if (implementation == null)
      implementation = AccessFactoryGlobals.SORT_EXTERNAL;

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory;
    mfactory = accessmanager.findMethodFactoryByImpl(implementation);
    if (mfactory == null || !(mfactory instanceof SortFactory))
        {
      throw(
              StandardException.newException(
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    if (implementation == null)
      implementation = AccessFactoryGlobals.SORT_EXTERNAL;

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory;
    mfactory = accessmanager.findMethodFactoryByImpl(implementation);
    if (mfactory == null || !(mfactory instanceof SortFactory))
        {
      throw(
              StandardException.newException(
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

        // System.out.println("before new code.");

        conglom_map = new ConglomerateFactory[2];

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory = findMethodFactoryByImpl("heap");

    if (mfactory == null || !(mfactory instanceof ConglomerateFactory))
        {
      throw StandardException.newException(
                    SQLState.AM_NO_SUCH_CONGLOMERATE_TYPE, "heap");
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    Find an access method that implements a format type.
    @see AccessFactory#findMethodFactoryByFormat
    **/
    public MethodFactory findMethodFactoryByFormat(UUID format)
    {
        MethodFactory factory;
       
        // See if there's an access method that supports the desired
        // format type as its primary format type.
        factory = (MethodFactory) formathash.get(format);
        if (factory != null)
            return factory;

        // No primary format.  See if one of the access methods
        // supports it as a secondary format.
        Enumeration e = formathash.elements();
        while (e.hasMoreElements())
        {
            factory = (MethodFactory) e.nextElement();
            if (factory.supportsFormat(format))
                return factory;
        }

        // No such implementation.
        return null;
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    public MethodFactory findMethodFactoryByImpl(String impltype)
        throws StandardException
    {
        // See if there's an access method that supports the desired
        // implementation type as its primary implementation type.
        MethodFactory factory = (MethodFactory) implhash.get(impltype);
        if (factory != null)
        return factory;

        // No primary implementation.  See if one of the access methods
        // supports the implementation type as a secondary.
        Enumeration e = implhash.elements();
        while (e.hasMoreElements())
        {
            factory = (MethodFactory) e.nextElement();
            if (factory.supportsImplementation(impltype))
                return factory;
        }
    factory = null;

    // try and load an implementation.  a new properties object needs
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

        // System.out.println("before new code.");

        conglom_map = new ConglomerateFactory[2];

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory = findMethodFactoryByImpl("heap");

    if (mfactory == null || !(mfactory instanceof ConglomerateFactory))
        {
      throw StandardException.newException(
                    SQLState.AM_NO_SUCH_CONGLOMERATE_TYPE, "heap");
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    Find an access method that implements a format type.
    @see AccessFactory#findMethodFactoryByFormat
    **/
    public MethodFactory findMethodFactoryByFormat(UUID format)
    {
        MethodFactory factory;
       
        // See if there's an access method that supports the desired
        // format type as its primary format type.
        factory = (MethodFactory) formathash.get(format);
        if (factory != null)
            return factory;

        // No primary format.  See if one of the access methods
        // supports it as a secondary format.
        Enumeration e = formathash.elements();
        while (e.hasMoreElements())
        {
            factory = (MethodFactory) e.nextElement();
            if (factory.supportsFormat(format))
                return factory;
        }

        // No such implementation.
        return null;
View Full Code Here

Examples of org.encog.ml.MethodFactory

    final Map<String, String> args = ArchitectureParse.parseParams(argsStr);
    final ParamsHolder holder = new ParamsHolder(args);
    final int populationSize = holder.getInt(
        MLTrainFactory.PROPERTY_POPULATION_SIZE, false, 5000);
   
    MLTrain train = new MLMethodGeneticAlgorithm(new MethodFactory(){
      @Override
      public MLMethod factor() {
        final MLMethod result = (MLMethod) ObjectCloner.deepCopy(method);
        ((MLResettable)result).reset();
        return result;
View Full Code Here

Examples of org.jruby.runtime.MethodFactory

   
    public static final TypePopulator DEFAULT = new DefaultTypePopulator();
    public static class DefaultTypePopulator extends TypePopulator {
        public void populate(RubyModule clsmod, Class clazz) {
            // fallback on non-pregenerated logic
            MethodFactory methodFactory = MethodFactory.createFactory(clsmod.getRuntime().getJRubyClassLoader());
           
            RubyModule.MethodClumper clumper = new RubyModule.MethodClumper();
            clumper.clump(clazz);
           
            for (Map.Entry<String, List<JavaMethodDescriptor>> entry : clumper.getStaticAnnotatedMethods().entrySet()) {
View Full Code Here

Examples of org.jruby.runtime.MethodFactory

       
        performNormalMethodChecks(containingClass, runtime, name);
       
        StaticScope scope = creatScopeForClass(context, scopeNames, required, optional, rest);
       
        MethodFactory factory = MethodFactory.createFactory(compiledClass.getClassLoader());
        DynamicMethod method = constructNormalMethod(name, visibility, factory, containingClass, javaName, arity, scope, scriptObject, callConfig);
       
        addInstanceMethod(containingClass, name, method, visibility,context, runtime);
       
        return runtime.getNil();
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.