Examples of create()


Examples of org.ektorp.CouchDbConnector.create()

      System.out.println("\n");
    }
   
//    db = dbInstance.createConnector("suppliers", true);
    for(Supplier s : suppliers.getSupplier()){
      db.create(s);
    }
   
//    db = dbInstance.createConnector("shippers", true);   
    for(Shipper s : shippers.getShipper()){
      db.create(s);

Examples of org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateRequest.create()

    @SuppressWarnings({"unchecked"})
    @Override public void handleRequest(final RestRequest request, final RestChannel channel) {
        PutIndexTemplateRequest putRequest = new PutIndexTemplateRequest(request.param("name"));

        try {
            putRequest.create(request.paramAsBoolean("create", false));
            putRequest.cause(request.param("cause", ""));
            putRequest.timeout(request.paramAsTime("timeout", timeValueSeconds(10)));

            // parse the parameters
            Map<String, Object> source = XContentFactory.xContent(request.contentByteArray(), request.contentByteArrayOffset(), request.contentLength())

Examples of org.elasticsearch.action.index.IndexRequest.create()

        );
    }

    private IndexRequest getSingleApiInsertRequest() {
        IndexRequest request = new IndexRequest("countries", "default");
        request.create(true);
        request.source(singleApiInsertSource);
        return request;
    }

    private BulkRequest getBulkApiInsertRequest() {

Examples of org.elasticsearch.index.analysis.TokenFilterFactory.create()

            "gekosten"
        };

        Tokenizer tokenizer = new StandardTokenizer(Version.LUCENE_36, new StringReader(source));

        assertSimpleTSOutput(tokenFilter.create(tokenizer), expected);

    }

    public AnalysisService createAnalysisService() {
        Settings settings = ImmutableSettings.settingsBuilder().loadFromClasspath("org/xbib/elasticsearch/index/analysis/decompound_analysis.json").build();

Examples of org.elasticsearch.index.shard.service.IndexShard.create()

                        indexShard.index(index);
                        version = index.version();
                        op = index;
                    } else {
                        Engine.Create create = indexShard.prepareCreate(sourceToParse).version(indexRequest.version()).versionType(indexRequest.versionType()).origin(Engine.Operation.Origin.PRIMARY);
                        indexShard.create(create);
                        version = create.version();
                        op = create;
                    }
                    // update the version on request so it will happen on the replicas
                    indexRequest.version(version);

Examples of org.encog.ml.factory.MLMethodFactory.create()

 
  public void process(String methodName, String methodArchitecture,String trainerName, String trainerArgs,int outputNeurons) {
   
    // first, create the machine learning method
    MLMethodFactory methodFactory = new MLMethodFactory();   
    MLMethod method = methodFactory.create(methodName, methodArchitecture, 2, outputNeurons);
   
    // second, create the data set   
    MLDataSet dataSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
   
    // third, create the trainer

Examples of org.encog.ml.factory.MLTrainFactory.create()

    // second, create the data set   
    MLDataSet dataSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
   
    // third, create the trainer
    MLTrainFactory trainFactory = new MLTrainFactory()
    MLTrain train = trainFactory.create(method,dataSet,trainerName,trainerArgs);       
    // reset if improve is less than 1% over 5 cycles
    if( method instanceof MLResettable && !(train instanceof ManhattanPropagation) ) {
      train.addStrategy(new RequiredImprovementStrategy(500));
    }

Examples of org.eobjects.analyzer.job.JaxbJobReader.create()

   * @param configuration
   */
  public void openFile(File file) {
    JaxbJobReader reader = new JaxbJobReader(_configuration);
    try {
      AnalysisJobBuilder ajb = reader.create(file);

      openJob(file, ajb);
    } catch (NoSuchDatastoreException e) {
      AnalysisJobMetadata metadata = reader.readMetadata(file);
      int result = JOptionPane.showConfirmDialog(null, e.getMessage()

Examples of org.erlide.engine.model.IErlModel.create()

        final IContainer c = (IContainer) getResource();
        try {
            // FIXME this is general stuff -> model or model manager?
            final IResource[] members = c.members();
            for (final IResource resource : members) {
                model.create(resource);
            }
        } catch (final CoreException e) {
            throw new ErlModelException(new ErlModelStatus(
                    ErlModelStatusConstants.CORE_EXCEPTION, e));
        }

Examples of org.erlide.engine.services.parsing.InternalScanner.create()

    private boolean parse(final String s) {
        final String scannerModuleName = module.getScannerName();
        // XXX implementation detail - how to do it better?
        final InternalScanner internalScanner = (InternalScanner) ErlangEngine
                .getInstance().getSimpleScannerService();
        internalScanner.create(scannerModuleName);
        boolean result = false;
        try {
            ErlangEngine.getInstance().getScannerProviderService().get(scannerModuleName)
                    .initialScan(s, "", false);
            final ParserService parser = ErlangEngine.getInstance().getParserService();
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.