Examples of index()


Examples of com.tll.util.PropertyPath.index()

      final Model m = (Model) value;
      Model old = null;

      final int index;
      try {
        index = pp.index();
      }
      catch(final IllegalArgumentException e) {
        throw new MalformedPropPathException(e.getMessage());
      }
      final int size = size();
View Full Code Here

Examples of com.vtence.molecule.middlewares.StaticAssets.index()

        // Serve static assets (e.g. js files, images, css files, etc) for any request whose path starts
        // with one of the url prefixes specified (in this example, we're serving all requests).
        StaticAssets assets = new StaticAssets(files).serve("/");
        // If request targets a directory (i.e. request path ends with "/"),
        // serve the index.html file located in that directory (the default behavior).
        assets.index("index.html");

        // Log all accesses to the server in apache common log format
        server.add(new ApacheCommonLogger(logger))
              .start(assets);
    }
View Full Code Here

Examples of crate.elasticsearch.action.import_.ImportRequest.index()

                    if (querySource != null) {
                        importRequest.source(querySource, false);
                    }
                }
            }
            importRequest.index(request.param("index"));
            importRequest.type(request.param("type"));
        } catch (Exception e) {
            try {
                XContentBuilder builder = RestXContentBuilder.restContentBuilder(request);
                channel.sendResponse(new XContentRestResponse(request, BAD_REQUEST, builder.startObject().field("error", e.getMessage()).endObject()));
View Full Code Here

Examples of dcamapi.DCAMDEV_OPEN.index()

      final DCAMDEV_OPEN lDCAMDEV_OPEN = new DCAMDEV_OPEN();
      final long size = BridJ.sizeOf(DCAMDEV_OPEN.class);
      assertTrue(size == 16);
      lDCAMDEV_OPEN.size(size);

      lDCAMDEV_OPEN.index(0);
      final IntValuedEnum<DCAMERR> dcamdevOpen = DcamapiLibrary.dcamdevOpen(pointerTo(lDCAMDEV_OPEN));
      System.out.format("%s \n", dcamdevOpen.toString());

      assertTrue(dcamdevOpen.toString().contains("DCAMERR_SUCCESS"));
    }
View Full Code Here

Examples of edu.stanford.nlp.ling.CoreLabel.index()

  /** Returns a 0-based index of the head of the tree.  Assumes the leaves had been indexed from 1 */
  static int headIndex(Tree tree) {
    CoreLabel label = ErasureUtils.uncheckedCast(tree.label());
    Tree head = label.get(TreeCoreAnnotations.HeadWordAnnotation.class);
    CoreLabel headLabel = ErasureUtils.uncheckedCast(head.label());
    return headLabel.index() - 1;
  }

  /** Returns a 0-based index of the left leaf of the tree.  Assumes the leaves had been indexed from 1 */
  static int leftIndex(Tree tree) {
    if (tree.isLeaf()) {
View Full Code Here

Examples of edu.stanford.nlp.ling.HasIndex.index()

        afl.set(CoreAnnotations.IndexAnnotation.class, startIndex);
      }*/

      if(label() instanceof HasIndex) {
        HasIndex hi = (HasIndex) label();
        int oldIndex = hi.index();
        if (!overWrite && oldIndex >= 0) {
          startIndex = oldIndex;
        } else {
          hi.setIndex(startIndex);
        }
View Full Code Here

Examples of edu.stanford.nlp.ling.IndexedWord.index()

      SemanticGraph graph = graphs.get(i);
      for (IndexedWord vertex : graph.vertexSet()) {
        IndexedWord newVertex = new IndexedWord(vertex);
        newVertex.setIndex(vertex.index() + vertexOffset);
        newGraph.addVertex(newVertex);
        newWords.put(newVertex.index(), newVertex);
      }
      for (SemanticGraphEdge edge : graph.edgeIterable()) {
        IndexedWord gov = newWords.get(edge.getGovernor().index() +
                                       vertexOffset);
        IndexedWord dep = newWords.get(edge.getDependent().index() +
View Full Code Here

Examples of elephantdb.persistence.Persistence.index()

        public void write(IntWritable shard, ElephantRecordWritable carrier) throws IOException {
            Persistence lp = retrieveShard(shard.get());

            KeyValDocument doc = new KeyValDocument(carrier.key, carrier.value);

            lp.index(doc);

            bumpProgress();
        }

        public void bumpProgress() {
View Full Code Here

Examples of fr.inra.lipm.jezlucene.action.Index.index()

        final String[] parameters = Arrays.copyOfRange(args, 1, args.length);
        final Main main = new Main();
        if (args[0].equalsIgnoreCase("index")) {
            final Index indexer = new Index();
            main.parseParameters(indexer, parameters);
            indexer.index();
        }
        else if (args[0].equalsIgnoreCase("search")) {
            final Search searcher = new Search();
            main.parseParameters(searcher, parameters);
            System.out.println(searcher.search());
View Full Code Here

Examples of indexing.IndexTest.index()

      // ElasticSearch HelloWorld
      IndexTest indexTest = new IndexTest();
      // "id" is mandatory if you want to update your document or to get by id else "id" is not mandatory
      indexTest.id = "1";
      indexTest.name = "hello World";
      indexTest.index();

      IndexTest byId = IndexTest.find.byId("1");

      IndexResults<IndexTest> all = IndexTest.find.all();
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.