Example #1
0
            public override bool LessThan(System.Object o1, System.Object o2)
            {
                SpansCell spans1 = (SpansCell)o1;
                SpansCell spans2 = (SpansCell)o2;

                if (spans1.Doc() == spans2.Doc())
                {
                    if (spans1.Start() == spans2.Start())
                    {
                        if (spans1.End() == spans2.End())
                        {
                            return(spans1.index > spans2.index);
                        }
                        else
                        {
                            return(spans1.End() < spans2.End());
                        }
                    }
                    else
                    {
                        return(spans1.Start() < spans2.Start());
                    }
                }
                else
                {
                    return(spans1.Doc() < spans2.Doc());
                }
            }
Example #2
0
 public override int End()
 // TODO: Remove warning after API has been finalized
 /// <summary>
 /// WARNING: The List is not necessarily in order of the the positions </summary>
 /// <returns> Collection of <code>byte[]</code> payloads </returns>
 /// <exception cref="IOException"> if there is a low-level I/O error </exception>
 {
     return(Max.End());
 }
Example #3
0
 public virtual int End()
 {
     return(max.End());
 }
 public override int End()
 {
     return(max.End());
 }