Package dovetaildb.iter

Examples of dovetaildb.iter.LiteralIter


    Object[] resultBuf = new Object[numHits-offset];
    for(int i=numHits-offset-1; i>=0; i--) {
      HitRec rec = hits.remove();
      resultBuf[i] = rec.result;
    }
    return new LiteralIter(resultBuf);
  }
View Full Code Here


    ScriptFunction filterFn = (ScriptFunction) options.get("filter");
    i = new OptionsIter(i, offset, limit, mapFn, filterFn);
    ScriptFunction reduceFn = (ScriptFunction) options.get("reduce");
    if (reduceFn != null) {
      Object result = reduceIter(i, reduceFn);
      i = new LiteralIter(new Object[]{result});
    }
    return i;
  }
View Full Code Here

    ScriptFunction filterFn = (ScriptFunction) options.get("filter");
    i = new OptionsIter(i, offset, limit, mapFn, filterFn);
    ScriptFunction reduceFn = (ScriptFunction) options.get("reduce");
    if (reduceFn != null) {
      Object result = reduceIter(i, reduceFn);
      i = new LiteralIter(new Object[]{result});
    }
    return i;
  }
View Full Code Here

TOP

Related Classes of dovetaildb.iter.LiteralIter

Copyright © 2018 www.massapicom. 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.