/** * Creates a location based on the data of the physical rowid. */ Location( PhysicalRowId src ) { block = src.getBlock(); offset = src.getOffset(); }
/** Returns true if a slot is allocated */ boolean isAllocated(int slot) { return get(slot).getBlock() > 0; }
/** Returns true if a slot is allocated */ boolean isAllocated(int slot) { return get(slot).getBlock() > 0; }
/** * Creates a location based on the data of the physical rowid. */ Location( PhysicalRowId src ) { block = src.getBlock(); offset = src.getOffset(); }
/** * Returns true if a slot is allocated */ private boolean isAllocated( int slot ) { return get( slot ).getBlock() > 0; }
/** * Creates a location based on the data of the physical rowid. * * @param physicalRowId The physical row id used as a base for the Location creation */ Location( PhysicalRowId physicalRowId ) { blockId = physicalRowId.getBlock(); offset = physicalRowId.getOffset(); }
/** * {@inheritDoc} */ public String toString() { StringBuilder sb = new StringBuilder(); sb.append( "FreeLogRowIdPage ( " ); // The blockIO sb.append( super.toString() ).append( ", " ); // The first rowId sb.append( "count: " ).append( getCount() ); // Dump the Physical row id for ( int i = 0; i < ELEMS_PER_PAGE; i++ ) { if ( slots[i] != null ) { sb.append( ", [" ).append( i ).append( "]=<" ).append( slots[i].getBlock() ).append( ", " ).append( slots[i].getOffset() ).append( ">" ); } } sb.append( ")" ); return sb.toString(); } }
/** * {@inheritDoc} */ public String toString() { StringBuilder sb = new StringBuilder(); sb.append( "TranslationPage ( " ); // The blockIO sb.append( super.toString() ).append( ", " ); // Dump the Physical row id for ( int i = 0; i < ELEMS_PER_PAGE; i++ ) { if ( slots[i] != null ) { sb.append( ", [" ).append( i ).append( "]=<" ). append( slots[i].getBlock() ).append( ", " ). append( slots[i].getOffset() ).append( ">" ); } } sb.append( ")" ); return sb.toString(); } }