@Test public void testDataBucketOffset() { assertEquals(0, BucketReadTrx.dataBucketOffset(0)); assertEquals(127, BucketReadTrx.dataBucketOffset(127)); assertEquals(0, BucketReadTrx.dataBucketOffset(128)); assertEquals(127, BucketReadTrx.dataBucketOffset(16383)); assertEquals(0, BucketReadTrx.dataBucketOffset(16384)); assertEquals(127, BucketReadTrx.dataBucketOffset(2097151)); assertEquals(0, BucketReadTrx.dataBucketOffset(2097152)); }
protected static final int dataBucketOffset(final long pDataKey) { final long dataBucketOffset = (pDataKey - ((pDataKey >> IConstants.INDIRECT_BUCKET_COUNT[3]) << IConstants.INDIRECT_BUCKET_COUNT[3])); return (int)dataBucketOffset; }
BucketReadTrx implements IBucketReadTrx { protected static final int dataBucketOffset(final long pDataKey) { final long dataBucketOffset = (pDataKey - ((pDataKey >> IConstants.INDIRECT_BUCKET_COUNT[3]) << IConstants.INDIRECT_BUCKET_COUNT[3])); return (int)dataBucketOffset; } }
BucketReadTrx implements IBucketReadTrx { protected static final int dataBucketOffset(final long pDataKey) { final long dataBucketOffset = (pDataKey - ((pDataKey >> IConstants.INDIRECT_BUCKET_COUNT[3]) << IConstants.INDIRECT_BUCKET_COUNT[3])); return (int)dataBucketOffset; } protected  BucketReadTrx(final ISession pSession, final UberBucket pUberBucket,
        final RevisionRootBucket pRevBucket, final MetaBucket pMetaBucket, final IBackendReader pReader); }
BucketReadTrx implements IBucketReadTrx { protected static final int dataBucketOffset(final long pDataKey) { final long dataBucketOffset = (pDataKey - ((pDataKey >> IConstants.INDIRECT_BUCKET_COUNT[3]) << IConstants.INDIRECT_BUCKET_COUNT[3])); return (int)dataBucketOffset; } protected  BucketReadTrx(final ISession pSession, final UberBucket pUberBucket,
        final RevisionRootBucket pRevBucket, final MetaBucket pMetaBucket, final IBackendReader pReader); IData getData(final long pDataKey); boolean close(); long getRevision(); @Override boolean isClosed(); @Override MetaBucket getMetaBucket(); @Override String toString(); }
BucketReadTrx implements IBucketReadTrx { protected static final int dataBucketOffset(final long pDataKey) { final long dataBucketOffset = (pDataKey - ((pDataKey >> IConstants.INDIRECT_BUCKET_COUNT[3]) << IConstants.INDIRECT_BUCKET_COUNT[3])); return (int)dataBucketOffset; } protected  BucketReadTrx(final ISession pSession, final UberBucket pUberBucket,
        final RevisionRootBucket pRevBucket, final MetaBucket pMetaBucket, final IBackendReader pReader); IData getData(final long pDataKey); boolean close(); long getRevision(); @Override boolean isClosed(); @Override MetaBucket getMetaBucket(); @Override String toString();  }