Examples of properties()


Examples of org.elasticsearch.hadoop.serialization.dto.mapping.Field.properties()

    @Test
    public void testIpParsing() throws Exception {
        Map value = new ObjectMapper().readValue(getClass().getResourceAsStream("ip.json"), Map.class);
        Field fl = Field.parseField(value);
        assertEquals(1, fl.properties().length);
    }

    @Test
    public void testUnsupportedParsing() throws Exception {
        Map value = new ObjectMapper().readValue(getClass().getResourceAsStream("attachment.json"), Map.class);
View Full Code Here

Examples of org.elasticsearch.hadoop.serialization.dto.mapping.Field.properties()

    @Test
    public void testUnsupportedParsing() throws Exception {
        Map value = new ObjectMapper().readValue(getClass().getResourceAsStream("attachment.json"), Map.class);
        Field fl = Field.parseField(value);
        assertEquals("person", fl.name());
        assertEquals(0, fl.properties().length);
    }

    @Test
    public void testFieldValidation() throws Exception {
        Map value = new ObjectMapper().readValue(getClass().getResourceAsStream("nested.json"), Map.class);
View Full Code Here

Examples of org.geoserver.monitor.MonitorQuery.properties()

    }
   
    @Override
    protected Map<String,Integer> gatherData(Monitor monitor) {
        MonitorQuery q = new MonitorQuery();
        q.properties("owsService").filter("owsService", null, Comparison.NEQ);
       
        DataGatherer g = new DataGatherer();
        monitor.query(q, g);
       
        return g.getData();
View Full Code Here

Examples of org.geoserver.monitor.Query.properties()

        });
    }
   
    BufferedDynamicImageResource queryAndRenderChart(Monitor monitor, Date[] range) {
        Query q = new Query();
        q.properties("startTime").between(range[0], range[1]);
       
        DataGatherer gatherer = new DataGatherer();
        monitor.query(q, gatherer);
       
        HashMap<RegularTimePeriod,Integer> data = gatherer.getData();
View Full Code Here

Examples of org.geoserver.ows.util.ClassProperties.properties()

    /**
     * Method which reflectively sets all collections when they are null.
     */
    protected void resolveCollections(Object object) {
        ClassProperties properties = OwsUtils.getClassProperties(object.getClass());
        for (String property : properties.properties()) {
            Method g = properties.getter(property, null);
            if (g == null) {
                continue;
            }

View Full Code Here

Examples of org.grails.cxf.utils.GrailsCxfEndpoint.properties()

        return properties;
    }

    protected void setupProperties(){
        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);
        if(annotation != null && annotation.properties().length > 0) {
            for(GrailsCxfEndpointProperty prop : annotation.properties()){
                properties.put(prop.name(), prop.value());
            }
            log.debug("Endpoint [" + getFullName() + "] configured to use properties " + properties + ".");
        }
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.ggfs.GridGgfsFileInfo.properties()

            String key2 = UUID.randomUUID().toString();

            GridGgfsFileInfo info = mgr.info(fileId);

            assertNull("Expects empty properties are not stored: " + info, getFieldValue(info, "props"));
            assertEquals("Expects empty properties are not stored: " + info, Collections.emptyMap(), info.properties());

            info = mgr.updateProperties(ROOT_ID, fileId, fileName, F.asMap(key1, "1"));

            assertEquals("Unexpected stored properties: " + info, F.asMap(key1, "1"), info.properties());
View Full Code Here

Examples of org.ibeans.annotation.Call.properties()

    protected AnnotatedEndpointData createEndpointData(Annotation annotation) throws MuleException
    {
        Call call = (Call) annotation;
        AnnotatedEndpointData epd = new AnnotatedEndpointData(MessageExchangePattern.REQUEST_RESPONSE, ChannelType.Outbound, call);
        epd.setAddress(call.uri());
        epd.setProperties(AnnotatedEndpointData.convert(call.properties()));
        return epd;
    }

    protected String getIdentifier()
    {
View Full Code Here

Examples of org.infinispan.configuration.cache.IndexingConfiguration.properties()

   @Test
   public void testWithoutAutoConfig() {
      IndexingConfiguration cfg = new ConfigurationBuilder()
              .indexing().index(Index.ALL).create();
     
      assertTrue(cfg.properties().isEmpty());
   }

   @Test
   public void testLocalWitAutoConfig() {
      IndexingConfiguration cfg = new ConfigurationBuilder()
View Full Code Here

Examples of org.infinispan.configuration.cache.IndexingConfiguration.properties()

   public void testLocalWitAutoConfig() {
      IndexingConfiguration cfg = new ConfigurationBuilder()
              .indexing().index(Index.ALL).autoConfig(true)
              .create();

      assertFalse(cfg.properties().isEmpty());
      assertEquals(cfg.properties().get("hibernate.search.default.directory_provider"), "filesystem");
   }

   @Test
   public void testDistWitAutoConfig() {
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.