Class CDOSessionProtocol.ChunkRange

java.lang.Object
org.eclipse.emf.spi.cdo.CDOSessionProtocol.ChunkRange
Enclosing interface:
CDOSessionProtocol

public static final class CDOSessionProtocol.ChunkRange extends Object
A client/server-coordinate range for a collection chunk request.
Since:
4.31
Author:
Eike Stepper
  • Constructor Details

    • ChunkRange

      public ChunkRange(int accessIndex, int fetchIndex, int fromIndex, int toIndex)
      Creates a client/server-coordinate range.
      Parameters:
      accessIndex - the first client/access index represented by the range
      fetchIndex - the corresponding first server/source index
      fromIndex - the first client/access index to load, inclusive
      toIndex - the last client/access index to load, inclusive
  • Method Details

    • getAccessIndex

      public int getAccessIndex()
      Returns:
      the first client/access index represented by the range
    • getFetchIndex

      public int getFetchIndex()
      Returns:
      the corresponding first server/source index
    • getFromIndex

      public int getFromIndex()
      Returns:
      the first client/access index to load, inclusive
    • getToIndex

      public int getToIndex()
      Returns:
      the last client/access index to load, inclusive