int tmp = (idx >>> (bitLen-bucket.getTrieBitLen())) ;
if ( tmp != bucket.getTrieValue())
error("[%d] Bucket %d : hash prefix 0x%X, expected 0x%X : %s", idx, bucket.getId(), bucket.getTrieValue(), tmp, bucket) ;
// Check the contents.
Record prevKey = Record.NO_REC ;
for ( int i = 0 ; i < bucket.getCount() ; i++ )
{
Record rec = bucket.get(i) ;
if ( prevKey != Record.NO_REC && Record.keyLT(rec,prevKey) )
error("[%d] Bucket %d: Not sorted (slot %d) : %s", idx, bucket.getId(), i, bucket) ;
prevKey = rec ;
int x = trieKey(rec, bucket.getTrieBitLen()) ;
// Check the key is bucket-compatible.