Examples of containsKey()


Examples of org.apache.cxf.ws.policy.AssertionInfoMap.containsKey()

                        MetadataConstants.USING_ADDRESSING_2004_QNAME,
                        MetadataConstants.USING_ADDRESSING_2005_QNAME,
                        MetadataConstants.USING_ADDRESSING_2006_QNAME
                    };
                    for (QName type : types) {
                        if (aim.containsKey(type) && aim.get(type).size() > 0) {
                            missingWsaHeader = false;
                        }
                    }
                }
                if (missingWsaHeader) {
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableHashtable.containsKey()

    }
    numberOfOrderedColumns = fh.getInt("orderedColumns");
    indexType = (String)fh.get("indexType");
    //isUniqueWithDuplicateNulls attribute won't be present if the index
    //was created in older versions 
    if (fh.containsKey("isUniqueWithDuplicateNulls"))
      isUniqueWithDuplicateNulls = fh.getBoolean(
                                    "isUniqueWithDuplicateNulls");
    else
      isUniqueWithDuplicateNulls = false;
View Full Code Here

Examples of org.apache.excalibur.store.Store.containsKey()

            if (configuration != null && this.getIsAdminProfile(profileID) == false) {
                final String storePrefix = (String)configuration.get(PortalConstants.CONF_PROFILE_CACHE);
                if (storePrefix != null) {
                    final String key = profileID.substring(1);
                    final Store store = this.getProfileStore();
                    if (store.containsKey(key) == true) {
                        result = (Map)store.get(key);
                    }
                }
            }
        } catch (Exception local) {
View Full Code Here

Examples of org.apache.excalibur.store.impl.MRUMemoryStore.containsKey()

        String fallbackUri = getFallbackUri(name);
        if (useCache()) {
            final String pubId = getPublicationId(objectModel);
            String cacheKey = FallbackSourceFactory.getCacheKey(pubId, fallbackUri);
            MRUMemoryStore store = getStore();
            if (store.containsKey(cacheKey)) {
                uri = (String) store.get(cacheKey);
            }
            else {
                uri = resolveSourceUri(name);
            }
View Full Code Here

Examples of org.apache.flex.forks.batik.transcoder.TranscodingHints.containsKey()

    public void writeImage(PNGTranscoder transcoder, BufferedImage img,
            TranscoderOutput output) throws TranscoderException {
        TranscodingHints hints = transcoder.getTranscodingHints();

        int n=-1;
        if (hints.containsKey(PNGTranscoder.KEY_INDEXED)) {
            n=((Integer)hints.get(PNGTranscoder.KEY_INDEXED)).intValue();
            if (n==1||n==2||n==4||n==8)
                //PNGEncodeParam.Palette can handle these numbers only.
                img = IndexImage.getIndexedImage(img,1<<n);
        }
View Full Code Here

Examples of org.apache.hadoop.fs.Path.containsKey()

      // Inherit Java system variables
      String hadoopOpts;
      StringBuilder sb = new StringBuilder();
      Properties p = System.getProperties();
      for (String element : HIVE_SYS_PROP) {
        if (p.containsKey(element)) {
          sb.append(" -D" + element + "=" + p.getProperty(element));
        }
      }
      hadoopOpts = sb.toString();
      // Inherit the environment variables
View Full Code Here

Examples of org.apache.hadoop.hbase.io.RowResult.containsKey()

        assertTrue(table.exists(row, Bytes.toBytes(COLUMN_FAMILY_STR+i)));

      RowResult result = null;
      result = table.getRow(row,  new byte[][] {COLUMN_FAMILY});
      for(int i = 0; i < 5; i++)
        assertTrue(result.containsKey(Bytes.toBytes(COLUMN_FAMILY_STR+i)));
     
      result = table.getRow(row);
      for(int i = 0; i < 5; i++)
        assertTrue(result.containsKey(Bytes.toBytes(COLUMN_FAMILY_STR+i)));
View Full Code Here

Examples of org.apache.hadoop.io.MapWritable.containsKey()

    MapWritable msg = null;
    int userFeatureSize = 0;
    int itemFeatureSize = 0;
    while ((msg = peer.getCurrentMessage()) != null) {
      if (msg.containsKey(OnlineCF.Settings.MSG_INP_ITEM_FEATURES)) {
        // send item feature
        String itemId = ((Text)msg.get(OnlineCF.Settings.MSG_INP_ITEM_FEATURES)).toString();
        inpItemsFeatures.put(itemId, (VectorWritable)msg.get(OnlineCF.Settings.MSG_VALUE));
        itemFeatureSize = ((VectorWritable)msg.get(OnlineCF.Settings.MSG_VALUE)).getVector().getLength();
      } else if (msg.containsKey(OnlineCF.Settings.MSG_INP_USER_FEATURES)) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.ConfigurationParameters.containsKey()

    @Nonnull
    @Override
    public ConfigurationParameters getParameters() {
        ConfigurationParameters params = super.getParameters();
        if (!params.containsKey(UserConstants.PARAM_USER_AUTHENTICATION_FACTORY)) {
            return ConfigurationParameters.of(
                    params,
                    ConfigurationParameters.of(UserConstants.PARAM_USER_AUTHENTICATION_FACTORY, defaultAuthFactory));
        } else {
            return params;
View Full Code Here

Examples of org.apache.ldap.common.util.MultiMap.containsKey()

                return map.isEmpty();
            }

            public boolean containsKey( Object key )
            {
                return map.containsKey( key );
            }

            public void putAll( Map arg0 )
            {
                map.putAll( arg0 );
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.