bereng commented on code in PR #2628:
URL: https://github.com/apache/cassandra/pull/2628#discussion_r1331260606


##########
src/java/org/apache/cassandra/io/sstable/format/big/BigFormat.java:
##########
@@ -66,7 +67,99 @@
 import static 
org.apache.cassandra.io.sstable.format.SSTableFormat.Components.DATA;
 
 /**
- * Legacy bigtable format
+ * Legacy bigtable format. Components and approximate lifecycle:
+ * <br>
+ * {@link SSTableFormat.Components}
+ * <br>
+ * {@link Components#ALL_COMPONENTS}
+ *  <ul>
+ *     <li>
+ *       {@link Components#SUMMARY}: When searching for a PK we go here for a 
first approximation on where to look in the index file. It is
+ *       a small sampling of the Index entries intended for a first fast 
search in-memory.
+ *       <p></p>
+ *       {@link org.apache.cassandra.io.sstable.indexsummary.IndexSummary}
+ *       <br>
+ *       {@link IndexSummaryComponent}
+ *       <p></p>
+ *     </li>
+ *     <li>
+ *       {@link Components#PRIMARY_INDEX}: We'll land here in the approximate 
area where to look for the PK thanks to the Summary. Now we'll search for
+ *       the exact PK to get it's exact position in the data file.
+ *       <p></p>
+ *       {@link BigTableWriter#indexWriter}
+ *       <br>
+ *       {@link RowIndexEntry}
+ *       <br>
+ *       {@link org.apache.cassandra.io.sstable.IndexInfo}
+ *       <br>
+ *       {@link org.apache.cassandra.io.sstable.format.IndexComponent}
+ *       <p></p>
+ *     </li>
+ *     <li>
+ *       {@link Components#DATA}: The actual data/partitions file as an array 
or partitions. Each partition has the form:
+ *       <ul>
+ *       <li>A partition header</li>
+ *       <li>Maybe a static row</li>
+ *       <li>Rows or range tombstone</li>
+ *       </ul>
+ *       I.e. upon flush {@link Flushing.FlushRunnable#writeSortedContents()}

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to