Examples of index()


Examples of org.atomojo.app.client.Feed.index()

        
         FeedBuilder builder = new FeedBuilder();
         Response response = layoutFeedClient.get(builder);
         if (response.getStatus().isSuccess()) {
            Feed feed = builder.getFeed();
            feed.index();
           
            Set<String> names = new TreeSet<String>();

            List<SecurityGuard.SecureRoute> copyOfRoutes = new ArrayList<SecurityGuard.SecureRoute>();
            copyOfRoutes.addAll(security.getRoutes());
View Full Code Here

Examples of org.bigtesting.routd.NamedParameterElement.index()

        MojaveRoute r = new MojaveRoute(null, "actn", ":id");
        List<NamedParameterElement> params = r.getNamedParameterElements();
        assertEquals(1, params.size());
        NamedParameterElement elem = params.get(0);
        assertEquals("id", elem.name());
        assertEquals(1, elem.index());
    }
   
    @Test
    public void pathParameterElements_OneExistsAlone() {
        MojaveRoute r = new MojaveRoute(null, null, ":id");
View Full Code Here

Examples of org.codehaus.jparsec.Token.index()

        TerminalParser.parse(parser, source.substring(0, source.length() - rest.length())));
  }
 
  static void assertOperator(Parser<?> parser, String source) {
    Token actual = (Token) TerminalParser.parse(parser, source);
    assertEquals(0, actual.index());
    assertEquals(source.length(), actual.length());
    // TODO: do we make adjacent() call Tokens.reserved()?
    // That seems verbose unless we make Tokenizers public.
    assertEquals(source, actual.value().toString());
  }
View Full Code Here

Examples of org.compass.gps.CompassGps.index()

        CompassGps gps = new SingleCompassGps(compass);
        CompassGpsDevice jpaDevice = new JpaGpsDevice("jpa", entityManagerFactory);
        gps.addGpsDevice(jpaDevice);
        gps.start();
        gps.index();
    } catch (IOException e) {
      e.printStackTrace();
    }
    }
}
View Full Code Here

Examples of org.compass.gps.impl.SingleCompassGps.index()

        CompassGps gps = new SingleCompassGps(compass);
        CompassGpsDevice jpaDevice = new JpaGpsDevice("jpa", entityManagerFactory);
        gps.addGpsDevice(jpaDevice);
        gps.start();
        gps.index();
    } catch (IOException e) {
      e.printStackTrace();
    }
    }
}
View Full Code Here

Examples of org.eclipse.jgit.transport.IndexPack.index()

    digest(pack);
    final byte[] raw = pack.toByteArray();
    IndexPack ip = IndexPack.create(repo, new ByteArrayInputStream(raw));
    ip.setFixThin(true);
    ip.index(NullProgressMonitor.INSTANCE);
    ip.renameAndOpenPack();

    assertTrue("has blob", wc.has(id3));

    ObjectLoader ol = wc.open(id3);
View Full Code Here

Examples of org.elasticsearch.action.DocumentRequest.index()

        if (autoCreateIndex.needToCheck()) {
            final Set<String> indices = Sets.newHashSet();
            for (ActionRequest request : bulkRequest.requests) {
                if (request instanceof DocumentRequest) {
                    DocumentRequest req = (DocumentRequest) request;
                    if (!indices.contains(req.index())) {
                        indices.add(req.index());
                    }
                } else {
                    throw new ElasticsearchException("Parsed unknown request in bulk actions: " + request.getClass().getSimpleName());
                }
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterIndexHealth.index()

        numberOfDataNodes = in.readVInt();
        status = ClusterHealthStatus.fromValue(in.readByte());
        int size = in.readVInt();
        for (int i = 0; i < size; i++) {
            ClusterIndexHealth indexHealth = readClusterIndexHealth(in);
            indices.put(indexHealth.index(), indexHealth);
        }
        timedOut = in.readBoolean();
        size = in.readVInt();
        if (size == 0) {
            validationFailures = ImmutableList.of();
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.ping.replication.ReplicationPingResponse.index()

        assertThat(broadcastResponse.failedShards(), equalTo(0));

        logger.info("Replication pinging test1 and test2");
        ReplicationPingResponse replicationResponse = client("server1").admin().cluster().ping(pingReplicationRequest("test1", "test2")).actionGet();
        assertThat(replicationResponse.indices().size(), equalTo(2));
        assertThat(replicationResponse.index("test1").successfulShards(), equalTo(5));
        assertThat(replicationResponse.index("test1").failedShards(), equalTo(0));
    }
}
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.analyze.AnalyzeRequest.index()

    }

    public AnalyzeRequestBuilder<JsonInput, JsonOutput> text(String text) {
        //we need to create a new request since there's no setter for index
        AnalyzeRequest newRequest = new AnalyzeRequest(text);
        newRequest.index(request.index())
                .analyzer(request.analyzer())
                .field(request.field())
                .tokenizer(request.tokenizer())
                .tokenFilters(request.tokenFilters());
        this.request = newRequest;
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.