Examples of addValue()


Examples of org.apache.jorphan.math.StatCalculatorLong.addValue()

                            StatCalculatorLong value = subList.get(startTimeIntervalLong);
                            if (value==null) {
                                value = new StatCalculatorLong();
                                subList.put(startTimeIntervalLong, value);
                            }
                            value.addValue(respTime, 1);
                        } else {
                            // We want to retain insertion order, so LinkedHashMap is necessary
                            Map<Long, StatCalculatorLong> newSubList = new LinkedHashMap<Long, StatCalculatorLong>(5);
                            StatCalculatorLong helper = new StatCalculatorLong();
                            helper.addValue(Long.valueOf(sampleResult.getTime()),1);
View Full Code Here

Examples of org.apache.lenya.cms.metadata.LenyaMetaData.addValue()

        newVersions[number] = version;

        String string = number + " " + encodeVersion(workflow, version, (LenyaSituation) situation);
        try {
            LenyaMetaData meta = this.document.getMetaDataManager().getLenyaMetaData();
            meta.addValue(LenyaMetaData.ELEMENT_WORKFLOW_VERSION, string);
            meta.save();
        } catch (DocumentException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.lenya.cms.metadata.MetaData.addValue()

            String[] areas = getDocument().getPublication().getAreaNames();
            for (int i = 0; i < areas.length; i++) {
                if (getDocument().existsAreaVersion(areas[i])) {
                    Document doc = getDocument().getAreaVersion(areas[i]);
                    MetaData meta = doc.getMetaData(METADATA_NAMESPACE);
                    meta.addValue(METADATA_VERSION, versionString);
                }
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.apache.lucene.codecs.bloom.FuzzySet.addValue()

        //FuzzySet lFilter = FuzzySet.createSetBasedOnQuality(ELEMENTS, 0.97f);

        for (int i = 0; i < ELEMENTS; i++) {
            BytesRef bytesRef = new BytesRef(Strings.randomBase64UUID(random));
            gFilter.put(bytesRef);
            lFilter.addValue(bytesRef);
        }

        int lFalse = 0;
        int gFalse = 0;
        for (int i = 0; i < ELEMENTS; i++) {
View Full Code Here

Examples of org.apache.openjpa.conf.OpenJPAConfigurationImpl.addValue()

        conf.metaFactoryPlugin.setAlias(ALIAS_EJB,
            PersistenceMetaDataFactory.class.getName());
        conf.metaFactoryPlugin.setAlias(SPEC_JPA,
            PersistenceMetaDataFactory.class.getName());
       
        conf.addValue(new EntityManagerFactoryValue());
        return true;
    }

    @Override
    public boolean afterSpecificationSet(Configuration c) {
View Full Code Here

Examples of org.apache.pluto.container.om.portlet.Preference.addValue()

                    Preference pref = prefs.addPreference(p.name);
                    if (p.value != null)
                    {
                        for (String value : p.value)
                        {
                            pref.addValue(value);
                        }
                    }
                    if (p.readOnly != null)
                    {
                        pref.setReadOnly(p.readOnly.booleanValue());
View Full Code Here

Examples of org.apache.sling.jcr.contentloader.internal.PropertyDescription.addValue()

    public void testPropertiesMultiValue() throws IOException, JSONException {
        List<PropertyDescription> properties = new ArrayList<PropertyDescription>();
        PropertyDescription prop = new PropertyDescription();
        prop.setName("p1");
        prop.addValue("v1");
        properties.add(prop);

        String json = this.toJsonObject(properties).toString();

        NodeDescription node = this.parse(json);
View Full Code Here

Examples of org.apache.solr.common.SolrInputField.addValue()

      : (SolrInputField)stack.pop();

    if (val == null) return;

    float boost = (f.getValue()==null)?f.getBoost():1.0f;
    f.addValue( val,boost );
  }


}
View Full Code Here

Examples of org.apache.stanbol.commons.jsonld.JsonLdProperty.addValue()

                        jldValue.setType(JsonLdCommon.ID);
                        strValue = uriRef.getUnicodeString();
                    }
                   
                    jldValue.setValue(convertValueType(strValue));
                    jldProperty.addValue(jldValue);
                    resource.putProperty(jldProperty);
                }
            }

            jsonLd.put(resource.getSubject(), resource);
View Full Code Here

Examples of org.apache.syncope.client.to.AttributeTO.addValue()

                    attributeTO.setSchema(mapping.getIntAttrName());

                    for (Object value : attribute == null || attribute.getValue() == null
                            ? Collections.EMPTY_LIST
                            : attribute.getValue()) {
                        attributeTO.addValue(value.toString());
                    }

                    userTO.addVirtualAttribute(attributeTO);
                    break;
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.