Examples of persistent()


Examples of clojure.lang.ITransientCollection.persistent()

      jp.nextToken();
      while (jp.getCurrentToken() != JsonToken.END_ARRAY) {
        vec = vec.conj(parse(jp, false, keywords, eofValue));
        jp.nextToken();
      }
      return vec.persistent();
    case VALUE_STRING:
      return jp.getText();
    case VALUE_NUMBER_INT:
      return jp.getNumberValue();
    case VALUE_NUMBER_FLOAT:
View Full Code Here

Examples of clojure.lang.ITransientCollection.persistent()

            jp.nextToken();
            while (jp.getCurrentToken() != JsonToken.END_ARRAY) {
                vec = vec.conj(parse(jp, false, keywords, eofValue));
                jp.nextToken();
            }
            return vec.persistent();
        case VALUE_STRING:
            return jp.getText();
        case VALUE_NUMBER_INT:
            return jp.getNumberValue();
        case VALUE_NUMBER_FLOAT:
View Full Code Here

Examples of clojure.lang.ITransientMap.persistent()

        jp.nextToken();
        Object key = keywords ? Keyword.intern(keyStr) : keyStr;
        map = map.assoc(key, parse(jp, false, keywords, eofValue));
        jp.nextToken();
      }
      return map.persistent();
    case START_ARRAY:
      ITransientCollection vec = PersistentVector.EMPTY.asTransient();
      jp.nextToken();
      while (jp.getCurrentToken() != JsonToken.END_ARRAY) {
        vec = vec.conj(parse(jp, false, keywords, eofValue));
View Full Code Here

Examples of clojure.lang.ITransientMap.persistent()

              (PersistentProtocolBufferMap)fromProtoValue(field, iterator.next());
            Object k = v.valAt(map_field_by);
            PersistentProtocolBufferMap existing = (PersistentProtocolBufferMap)map.valAt(k);
            map = map.assoc(k, def.mapValue(field, existing, v));
          }
          return map.persistent();
        } else if (options.getExtension(Extensions.counter)) {
          Object count = iterator.next();
          while (iterator.hasNext()) {
            count = Numbers.add(count, iterator.next());
          }
View Full Code Here

Examples of clojure.lang.ITransientMap.persistent()

              map = map.assoc(k, ((IPersistentCollection)existing).cons(v));
            } else {
              map = map.assoc(k, v);
            }
          }
          return map.persistent();
        } else if (options.getExtension(Extensions.set)) {
          Descriptors.Descriptor type = field.getMessageType();
          Descriptors.FieldDescriptor item_field = type.findFieldByName("item");
          Descriptors.FieldDescriptor exists_field = type.findFieldByName("exists");
View Full Code Here

Examples of clojure.lang.ITransientMap.persistent()

                jp.nextToken();
                Object key = keywords ? Keyword.intern(keyStr) : keyStr;
                map = map.assoc(key, parse(jp, false, keywords, eofValue));
                jp.nextToken();
            }
            return map.persistent();
        case START_ARRAY:
            ITransientCollection vec = PersistentVector.EMPTY.asTransient();
            jp.nextToken();
            while (jp.getCurrentToken() != JsonToken.END_ARRAY) {
                vec = vec.conj(parse(jp, false, keywords, eofValue));
View Full Code Here

Examples of clojure.lang.ITransientMap.persistent()

          m.assoc(Keyword.intern(key), Float.parseFloat(val));
        } else {
          m.assoc(Keyword.intern(key), val);
        }
      }
      return m.persistent();
    } catch (Exception e) {
      System.err.println("Riemann-jvm-profiler agent takes a list of comma-separated k=v pairs for riemann.jvm-profiler/start. For instance, -javaagent:riemann-jvm-profiler.jar=host=my.riemann.host,port=5556,dt=10");
      System.exit(1);
      return null; // unreachable
    } finally {
View Full Code Here

Examples of clojure.lang.ITransientSet.persistent()

              } catch (Exception e) {
                e.printStackTrace();
              }
            }
          }
          return set.persistent();
        }
      }
      List<Object> list = new ArrayList<Object>(values.size());
      while (iterator.hasNext()) {
        list.add(fromProtoValue(field, iterator.next(), use_extensions));
View Full Code Here

Examples of com.zanox.rabbiteasy.Message.persistent()

    static Message buildMessage(PublisherConfiguration publisherConfiguration, Object event) {
        Message message = new Message(publisherConfiguration.basicProperties)
                .exchange(publisherConfiguration.exchange)
                .routingKey(publisherConfiguration.routingKey);
        if (publisherConfiguration.persistent) {
            message.persistent();
        }
        if (event instanceof ContainsData) {
            message.body(((ContainsData) event).getData());
        } else if (event instanceof ContainsContent) {
            message.body(((ContainsContent) event).getContent());
View Full Code Here

Examples of freenet.node.SendableGet.persistent()

//      synchronized(this) {
//        keysToCheck[priority].remove(key);
//      }
    }
    if(logMINOR) Logger.minor(this, "Checked "+keys.length+" keys");
    if(getter.persistent()) {
      final SendableGet get = getter;
      final ClientRequestScheduler scheduler = sched;
      final boolean valid = anyValid;
      try {
        context.jobRunner.queue(new PersistentJob() {
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.