Examples of tailMap()


Examples of java.util.TreeMap.tailMap()

        lock.lock();
        try {
            TreeMap pool = getPool(direct ? directPools[index]
                    : heapPools[index]);
            if (pool != null) {
                for (Iterator iter = pool.tailMap(key).values().iterator(); iter
                        .hasNext();) {
                    Entry first = (Entry) iter.next();
                    Entry next = first.next;
                    if (next != null) {
                        first.next = next.next;
View Full Code Here

Examples of java.util.TreeMap.tailMap()

        Object comparable = super.evaluateLookup(event, context);
        if (comparable == null) {
            return null;
        }
        comparable = EventBeanUtility.coerce(comparable, coercionType);
        return CompositeIndexQueryRange.handle(event, index.tailMap(comparable), null, result, next);
    }

    public Collection<EventBean> lookup(EventBean[] eventPerStream, Map parent, Collection<EventBean> result, CompositeIndexQuery next, ExprEvaluatorContext context) {
        TreeMap index = (TreeMap) parent;
        Object comparable = super.evaluatePerStream(eventPerStream, context);
View Full Code Here

Examples of java.util.TreeMap.tailMap()

        Object comparable = super.evaluatePerStream(eventPerStream, context);
        if (comparable == null) {
            return null;
        }
        comparable = EventBeanUtility.coerce(comparable, coercionType);
        return CompositeIndexQueryRange.handle(eventPerStream, index.tailMap(comparable), null, result, next);
    }
}
View Full Code Here

Examples of java.util.TreeMap.tailMap()

        Object comparable = super.evaluateLookup(event, context);
        if (comparable == null) {
            return null;
        }
        comparable = EventBeanUtility.coerce(comparable, coercionType);
        return CompositeIndexQueryRange.handle(event, index.tailMap(comparable, false), null, result, next);
    }

    public Collection<EventBean> lookup(EventBean[] eventPerStream, Map parent, Collection<EventBean> result, CompositeIndexQuery next, ExprEvaluatorContext context) {
        TreeMap index = (TreeMap) parent;
        Object comparable = super.evaluatePerStream(eventPerStream, context);
View Full Code Here

Examples of java.util.TreeMap.tailMap()

        Object comparable = super.evaluatePerStream(eventPerStream, context);
        if (comparable == null) {
            return null;
        }
        comparable = EventBeanUtility.coerce(comparable, coercionType);
        return CompositeIndexQueryRange.handle(eventPerStream, index.tailMap(comparable, false), null, result, next);
    }
}
View Full Code Here

Examples of java.util.TreeMap.tailMap()

    public SortedMap getNodesAfter(Fqn fqn)
    {
        SortedMap sm = new TreeMap(fqnComparator);
        sm.putAll( nodes );
        return sm.tailMap(fqn);
    }

    public boolean isVersioningImplicit()
    {
        return versioningImplicit;
View Full Code Here

Examples of java.util.concurrent.ConcurrentNavigableMap.tailMap()

    /**
     * headMap returns map with keys in requested range
     */
    public void testTailMapContents() {
        ConcurrentNavigableMap map = map5();
        SortedMap sm = map.tailMap(two);
        assertFalse(sm.containsKey(one));
        assertTrue(sm.containsKey(two));
        assertTrue(sm.containsKey(three));
        assertTrue(sm.containsKey(four));
        assertTrue(sm.containsKey(five));
View Full Code Here

Examples of lombok.val.tailMap()

      }
    });
   
    for (CommentInfo javadoc : javadocs) {
      try {
        Integer key = nodePositions.tailMap(javadoc.endPos).firstKey();
        Node node = nodePositions.get(key);
        if (node instanceof JavadocContainer) {
          attachJavadocToNode(javadoc, (JavadocContainer) node);
        }
      } catch (NoSuchElementException e) {
View Full Code Here

Examples of org.apache.commons.collections.SortedBidiMap.tailMap()

        Object second = it.next();
        Object firstValue = sm.get(first);
        Object fromKeyValue = sm.get(fromKey);
        Object secondValue = sm.get(second);
       
        SortedMap sub = sm.tailMap(fromKey);
        assertEquals(sm.size() - 1, sub.size());
        assertEquals(true, sm.containsKey(first));
        assertEquals(false, sub.containsKey(first));
        assertEquals(true, sm.containsValue(firstValue));
        assertEquals(false, sub.containsValue(firstValue));
View Full Code Here

Examples of org.apache.commons.collections.SortedBidiMap.tailMap()

       
        Object firstValue = sm.get(first);
        Object fromKeyValue = sm.get(fromKey);
        Object secondValue = sm.get(second);
       
        SortedMap sub = sm.tailMap(fromKey);
        int size = sm.size();
        assertEquals(size - 3, sub.size());
        sub.clear();
        assertEquals(0, sub.size());
        assertEquals(3, sm.size());
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.