directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r912111 - in /directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman: FreeLogicalRowIdPage.java FreePhysicalRowId.java PhysicalRowId.java
Date Sat, 20 Feb 2010 12:24:38 GMT
Author: akarasulu
Date: Sat Feb 20 12:24:37 2010
New Revision: 912111

URL: http://svn.apache.org/viewvc?rev=912111&view=rev
Log:
formatting

Modified:
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreeLogicalRowIdPage.java
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreePhysicalRowId.java
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/PhysicalRowId.java

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreeLogicalRowIdPage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreeLogicalRowIdPage.java?rev=912111&r1=912110&r2=912111&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreeLogicalRowIdPage.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreeLogicalRowIdPage.java Sat
Feb 20 12:24:37 2010
@@ -44,21 +44,22 @@
  *
  * $Id: FreeLogicalRowIdPage.java,v 1.1 2000/05/06 00:00:31 boisvert Exp $
  */
-
 package jdbm.recman;
 
+
 /**
- *  Class describing a page that holds logical rowids that were freed. Note
- *  that the methods have *physical* rowids in their signatures - this is
- *  because logical and physical rowids are internally the same, only their
- *  external representation (i.e. in the client API) differs.
+ * Class describing a page that holds logical rowids that were freed. Note
+ * that the methods have *physical* rowids in their signatures - this is
+ * because logical and physical rowids are internally the same, only their
+ * external representation (i.e. in the client API) differs.
  */
-class FreeLogicalRowIdPage extends PageHeader {
+class FreeLogicalRowIdPage extends PageHeader 
+{
     // offsets
     private static final short O_COUNT = PageHeader.SIZE; // short count
     static final short O_FREE = (short)(O_COUNT + Magic.SZ_SHORT);
-    static final short ELEMS_PER_PAGE = (short)
-        ((RecordFile.BLOCK_SIZE - O_FREE) / PhysicalRowId.SIZE);
+    static final short ELEMS_PER_PAGE = ( short ) 
+        ( ( RecordFile.BLOCK_SIZE - O_FREE ) / PhysicalRowId.SIZE );
 
     // slots we returned.
     final PhysicalRowId[] slots = new PhysicalRowId[ELEMS_PER_PAGE];

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreePhysicalRowId.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreePhysicalRowId.java?rev=912111&r1=912110&r2=912111&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreePhysicalRowId.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/FreePhysicalRowId.java Sat Feb
20 12:24:37 2010
@@ -44,34 +44,39 @@
  *
  * $Id: FreePhysicalRowId.java,v 1.1 2000/05/06 00:00:31 boisvert Exp $
  */
-
 package jdbm.recman;
 
+
 /**
- *  This class extends the physical rowid with a size value to indicated
- *  the size of a free rowid on the free rowid list.
+ * This class extends the physical rowid with a size value to indicate
+ * the size of a free rowid on the free rowid list.
  */
-final class FreePhysicalRowId extends PhysicalRowId {
+final class FreePhysicalRowId extends PhysicalRowId 
+{
     // offsets
     private static final short O_SIZE = PhysicalRowId.SIZE; // int size
     static final short SIZE = O_SIZE + Magic.SZ_INT;
 
+    
     /**
-     *  Constructs a physical rowid from the indicated data starting at
-     *  the indicated position.
+     * Constructs a physical rowid from the indicated data starting at
+     * the indicated position.
      */
-    FreePhysicalRowId(BlockIo block, short pos) {
-  super(block, pos);
+    FreePhysicalRowId( BlockIo block, short pos ) 
+    {
+        super( block, pos );
     }
+    
 
     /** Returns the size */
-    int getSize() {
-  return block.readInt(pos + O_SIZE);
+    int getSize() 
+    {
+        return block.readInt( pos + O_SIZE );
     }
 
     /** Sets the size */
-    void setSize(int value) {
-  block.writeInt(pos + O_SIZE, value);
+    void setSize( int value ) 
+    {
+        block.writeInt( pos + O_SIZE, value );
     }
-
 }

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/PhysicalRowId.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/PhysicalRowId.java?rev=912111&r1=912110&r2=912111&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/PhysicalRowId.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/PhysicalRowId.java Sat Feb 20
12:24:37 2010
@@ -44,17 +44,18 @@
  *
  * $Id: PhysicalRowId.java,v 1.1 2000/05/06 00:00:31 boisvert Exp $
  */
-
 package jdbm.recman;
 
+
 /**
- *  A physical rowid is nothing else than a pointer to a physical location
- *  in a file - a (block, offset) tuple.
- *  <P>
- *  <B>Note</B>: The fact that the offset is modelled as a short limits 
- *  the block size to 32k.
+ * A physical rowid is nothing else than a pointer to a physical location
+ * in a file - a (block, offset) tuple.
+ * <P>
+ * <B>Note</B>: The fact that the offset is modeled as a short limits 
+ * the block size to 32k.
  */
-class PhysicalRowId {
+class PhysicalRowId 
+{
     // offsets
     private static final short O_BLOCK = 0; // long block
     private static final short O_OFFSET = Magic.SZ_LONG; // short offset
@@ -64,32 +65,42 @@
     BlockIo block;
     short pos;
 
+    
     /**
-     *  Constructs a physical rowid from the indicated data starting at
-     *  the indicated position.
+     * Constructs a physical rowid from the indicated data starting at the 
+     * indicated position.
      */
-    PhysicalRowId(BlockIo block, short pos) {
+    PhysicalRowId( BlockIo block, short pos ) 
+    {
         this.block = block;
         this.pos = pos;
     }
     
+    
     /** Returns the block number */
-    long getBlock() {
-        return block.readLong(pos + O_BLOCK);
+    long getBlock() 
+    {
+        return block.readLong( pos + O_BLOCK );
     }
     
+    
     /** Sets the block number */
-    void setBlock(long value) {
-        block.writeLong(pos + O_BLOCK, value);
+    void setBlock( long value ) 
+    {
+        block.writeLong( pos + O_BLOCK, value );
     }
     
+    
     /** Returns the offset */
-    short getOffset() {
-        return block.readShort(pos + O_OFFSET);
+    short getOffset() 
+    {
+        return block.readShort( pos + O_OFFSET );
     }
     
+    
     /** Sets the offset */
-    void setOffset(short value) {
-        block.writeShort(pos + O_OFFSET, value);
+    void setOffset( short value ) 
+    {
+        block.writeShort( pos + O_OFFSET, value );
     }
-}
+}
\ No newline at end of file



Mime
View raw message