Examples of keys()


Examples of gnu.trove.map.hash.TIntDoubleHashMap.keys()

  for(RyanFeatureVector curr = fv1; curr.next != null; curr = curr.next) {
      if(curr.index < 0)
    continue;
      hm.put(curr.index,hm.get(curr.index)+curr.value);
  }
  int[] keys = hm.keys();

  for(int i = 0; i < keys.length; i++)
      sum += Math.pow(hm.get(keys[i]),2.0);
   
  return Math.sqrt(sum);
View Full Code Here

Examples of gnu.trove.map.hash.TIntIntHashMap.keys()

      it.advance();
      int value = it.key();
      int key = it.value();
      index.put(key, value);
    }
    int[] idx = index.keys();
    Arrays.sort(idx);
    int length = weights.length;
    HashFeatureAlphabet newfeat = new HashFeatureAlphabet();
    cl.getAlphabetFactory().setDefaultFeatureAlphabet(newfeat);
    TFloatArrayList ww = new TFloatArrayList();
View Full Code Here

Examples of io.crate.planner.projection.GroupProjection.keys()

        mergeNode.contextId(UUID.randomUUID());
        mergeNode.executionNodes(nodes);
        mergeNode.inputTypes(Arrays.<DataType>asList(DataTypes.UNDEFINED, DataTypes.STRING));

        GroupProjection groupProjection = new GroupProjection();
        groupProjection.keys(Arrays.<DataTypeSymbol>asList(new InputColumn(1, DataTypes.STRING)));
        groupProjection.values(Arrays.asList(
                new Aggregation(
                        countAggregation.info(),
                        ImmutableList.<Symbol>of(new InputColumn(0)),
                        Aggregation.Step.PARTIAL,
View Full Code Here

Examples of io.vertx.java.redis.RedisClient.keys()

            .get("/admin", new Middleware() {
                @Override
                public void handle(final YokeRequest request, final Handler<Object> next) {
                    final Config.Domain domain = request.get("domain");

                    db.keys(domain.namespace + "&*", new Handler<Message<JsonObject>>() {
                        @Override
                        public void handle(Message<JsonObject> message) {
                            if (!"ok".equals(message.body().getString("status"))) {
                                next.handle(message.body().getString("message"));
                            } else {
View Full Code Here

Examples of jade.util.ExtendedProperties.keys()

            throws FileNotFoundException, IOException {
        ExtendedProperties p = readPropertiesFromFile(fileName);

        // update the properties in the vector of properties
        // for every property set the value read in the file and set the command line value to null.
        Enumeration e = p.keys();

        while (e.hasMoreElements()) {
            boolean found = false;
            String name = (String) e.nextElement();
            Enumeration it = propertiesVector.elements();
View Full Code Here

Examples of java.nio.channels.Selector.keys()

           r.addAll(pending);
           r.addAll(unselectable_reads);
           w.addAll(unselectable_writes);
          
           // make all sockets blocking as configured again
           for (Iterator i = selector.keys().iterator(); i.hasNext(); ) {
               SelectionKey key = (SelectionKey) i.next();
               SelectableChannel channel = key.channel();
               synchronized(channel.blockingLock()) {
                   RubyIO originalIO = (RubyIO) TypeConverter.convertToType(
                           (IRubyObject) key.attachment(), runtime.getIO(),
View Full Code Here

Examples of java.security.Provider.keys()

    Vector algs = new Vector();

    Provider provider = Security.getProvider(providerName);
    if (provider == null)
      return new String[0];
    Enumeration e = provider.keys();
    while (e.hasMoreElements()) {
      String algorithm = (String) e.nextElement();
      if (algorithm.startsWith(KEYFACTORY_ID) && !algorithm.contains(" ")) {
        algs.addElement(algorithm.substring(KEYFACTORY_ID.length()));
      }
View Full Code Here

Examples of java.util.Dictionary.keys()

    }

    private static Integer getMaxSliderValue(JSlider slider) {
        Dictionary dictionary = slider.getLabelTable();
        if (dictionary != null) {
            Enumeration keys = dictionary.keys();
            int max = slider.getMinimum() - 1;
            while (keys.hasMoreElements()) {
                max = Math.max(max, ((Integer)keys.nextElement()).intValue());
            }
            if (max == slider.getMinimum() - 1) {
View Full Code Here

Examples of java.util.Hashtable.keys()

       + PROPERTY_FILE + "\n"
       + "for " + className);
      */
    } else {       
      try {
        Enumeration enm = typeOptions.keys();
        while (enm.hasMoreElements()) {
          String root = (String) enm.nextElement();
          String typeOption = (String) typeOptions.get(root);
          HierarchyPropertyParser hpp = new HierarchyPropertyParser();
          hpp.build(typeOption, ", ");
View Full Code Here

Examples of java.util.Properties.keys()

            if (jdbcURL.getConnectionURL() != null) {
              info.setProperty(TeiidURL.CONNECTION.SERVER_URL, jdbcURL.getConnectionURL());
            }
            Properties optionalParams = jdbcURL.getProperties();
            JDBCURL.normalizeProperties(info);
            Enumeration keys = optionalParams.keys();
            while (keys.hasMoreElements()) {
                String propName = (String)keys.nextElement();
                // Don't let the URL properties override the passed-in Properties object.
                if (!info.containsKey(propName)) {
                    info.setProperty(propName, optionalParams.getProperty(propName));
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.