Examples of optLong()


Examples of org.json.JSONArray.optLong()

      results.intervalCount++;
      long min = 0;
      long max = -1;
      if( null != jsonInterval && jsonInterval.length() >= 2 ){
        min = jsonInterval.optLong(0);
        max = jsonInterval.optLong(1);
      }
      if( null != docId && max >= min ){
        Interval interval = new Interval(min,max);
        if( interval.intersectsWith(range) ){
          DocumentWithInterval docWithInt = new DocumentWithInterval(docId, interval);
View Full Code Here

Examples of org.json.JSONArray.optLong()

      String docId = row.optString("id");
      JSONArray jsonInterval = row.optJSONArray("value");
      long min = 0;
      long max = -1;
      if( null != jsonInterval && jsonInterval.length() >= 2 ){
        min = jsonInterval.optLong(0);
        max = jsonInterval.optLong(1);
      }
      if( null != docId && max >= min ){
        Interval interval = new Interval(min,max);
        DocumentWithInterval docWithInt = new DocumentWithInterval(docId, interval);
View Full Code Here

Examples of org.json.JSONArray.optLong()

      JSONArray jsonInterval = row.optJSONArray("value");
      long min = 0;
      long max = -1;
      if( null != jsonInterval && jsonInterval.length() >= 2 ){
        min = jsonInterval.optLong(0);
        max = jsonInterval.optLong(1);
      }
      if( null != docId && max >= min ){
        Interval interval = new Interval(min,max);
        DocumentWithInterval docWithInt = new DocumentWithInterval(docId, interval);
        results.documentWithIntervals.add(docWithInt);
View Full Code Here

Examples of org.json.JSONArray.optLong()

      JSONArray key = row.optJSONArray("value");
      results.intervalCount++;
      long min = 0;
      long max = -1;
      if( null != key && key.length() >= 2 ){
        min = key.optLong(0);
        max = key.optLong(1);
      }
      if( null != docId && max >= min ){
        Interval docInterval = new Interval(min,max);
        if( docInterval.intersectsWith(interval) ){
View Full Code Here

Examples of org.json.JSONArray.optLong()

      results.intervalCount++;
      long min = 0;
      long max = -1;
      if( null != key && key.length() >= 2 ){
        min = key.optLong(0);
        max = key.optLong(1);
      }
      if( null != docId && max >= min ){
        Interval docInterval = new Interval(min,max);
        if( docInterval.intersectsWith(interval) ){
          DocumentWithInterval docWithInt = new DocumentWithInterval(docId, docInterval);
View Full Code Here

Examples of org.json.JSONObject.optLong()

    try {
      scannerDescriptor = new JSONObject(new String(input));

      columnArray = scannerDescriptor.optJSONArray(RESTConstants.COLUMNS);
      timestamp = scannerDescriptor.optLong(RESTConstants.SCANNER_TIMESTAMP);
      startRow = Bytes.toBytes(scannerDescriptor.optString(
          RESTConstants.SCANNER_START_ROW, ""));
      stopRow = Bytes.toBytes(scannerDescriptor.optString(
          RESTConstants.SCANNER_STOP_ROW, ""));
      filters = scannerDescriptor.optString(RESTConstants.SCANNER_FILTER);
View Full Code Here

Examples of org.json.JSONObject.optLong()

        JSONObject cookie = cookies.optJSONObject(i);
        String name = cookie.optString("name");
        String value = cookie.optString("value");
        String domain = cookie.optString("domain");
        String path = cookie.optString("path");
        Date expiry = new Date(cookie.optLong("expires"));
        boolean isSecure = cookie.optBoolean("secure");
        Cookie c = new Cookie(name, value, domain, path, expiry, isSecure);
        res.add(c);
      }
      return res;
View Full Code Here

Examples of org.json.JSONObject.optLong()

                }
                String etag = jo.optString(PROPERTY_ETAG);
                if (etag != null) {
                    history.put(RecrawlAttributeConstants.A_ETAG_HEADER, etag);
                }
                long lastmod = jo.optLong(PROPERTY_LAST_MODIFIED);
                if (lastmod > 0) {
                    history.put(RecrawlAttributeConstants.A_LAST_MODIFIED_HEADER, FetchHistoryHelper.formatHttpDate(lastmod));
                }
            }
        }
View Full Code Here

Examples of org.json_voltpatches.JSONObject.optLong()

                byte[] data = null;
                data = m_zk.getData(VoltZK.restore + "/" + node, false, null);
                String jsonData = new String(data, "UTF8");
                JSONObject json = new JSONObject(jsonData);

                long maxTxnId = json.optLong("max", Long.MIN_VALUE);
                if (maxTxnId != Long.MIN_VALUE) {
                    if (clStartTxnId == null || maxTxnId > clStartTxnId) {
                        clStartTxnId = maxTxnId;
                    }
                }
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.