com.thinkaurelius.titan.graphdb.database.idassigner

## Interface IDBlockSizer

- All Known Implementing Classes:
    StaticIDBlockSizer

      public interface IDBlockSizer

  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getBlockSize(int idNamespace)` The size of the id block to be returned by calls `IDAuthority.getIDBlock(int,int, com.thinkaurelius.titan.core.attribute.Duration)` for the given id namespace.
    `long` | `getIdUpperBound(int idNamespace)` Returns the upper bound for any id block returned by `IDAuthority.getIDBlock(int,int, com.thinkaurelius.titan.core.attribute.Duration)` for the given id namespace.

- - ### Method Detail

    - #### getBlockSize

          long getBlockSize(int idNamespace)

      The size of the id block to be returned by calls `IDAuthority.getIDBlock(int,int, com.thinkaurelius.titan.core.attribute.Duration)` for the given id namespace. In other words, for the returned array of the above mentioned call, it must hold that the difference between the second and first value is equal to the block size returned by this method (for the same partition id).
      Parameters:
        `idNamespace` -
      Returns:

    - #### getIdUpperBound

          long getIdUpperBound(int idNamespace)

      Returns the upper bound for any id block returned by `IDAuthority.getIDBlock(int,int, com.thinkaurelius.titan.core.attribute.Duration)` for the given id namespace. In other words, it must hold that the second value of the returned array is smaller than this value for the same partition id.
      Parameters:
        `idNamespace` -
      Returns:

Copyright © 2012–2014. All rights reserved.