Skip to content

Commit

Permalink
Merge pull request #584 from ApptiveGrid/Categorize-Some
Browse files Browse the repository at this point in the history
Categorize some methods
  • Loading branch information
noha authored Jan 29, 2024
2 parents 6dc52a5 + 7e7efb6 commit 3cdcc64
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/Soil-Core/Soil.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Soil >> destroy [
path delete
]

{ #category : #'as yet unclassified' }
{ #category : #public }
Soil >> findRecord: aBlock [
| tx |
tx := self newTransaction.
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilClusterRecord.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ SoilClusterRecord >> committed [
committed := true
]

{ #category : #'as yet unclassified' }
{ #category : #api }
SoilClusterRecord >> findReferencesTo [
^ SoilReferenceFinder new
soil: transaction database;
Expand Down
4 changes: 2 additions & 2 deletions src/Soil-Core/SoilCopyOnWriteSkipList.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ SoilCopyOnWriteSkipList >> newPage [
^ wrapped newPage
]

{ #category : #'as yet unclassified' }
{ #category : #reindexing }
SoilCopyOnWriteSkipList >> reIndex [
wrapped reIndex.
self flushCachedPages
]

{ #category : #'as yet unclassified' }
{ #category : #reindexing }
SoilCopyOnWriteSkipList >> reIndexUsing: itemBlock [
wrapped reIndexUsing: itemBlock.
self flushCachedPages
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilDatabaseJournal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SoilDatabaseJournal >> do: aBlock [
transactionJournals do: aBlock
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilDatabaseJournal >> lastIndex [
^ self lastTransactionJournal
ifNotNil: [ :journal | journal index ]
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilJournalConverter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#category : #'Soil-Core-Journal'
}

{ #category : #'as yet unclassified' }
{ #category : #api }
SoilJournalConverter >> convert [
| allJournalFiles |
"reset database checkpoint to process all of the transaction logs and set the
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilJournalEntry.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#category : #'Soil-Core-Journal'
}

{ #category : #'as yet unclassified' }
{ #category : #api }
SoilJournalEntry class >> allMapped [
| map |
map := Dictionary new.
Expand Down
10 changes: 5 additions & 5 deletions src/Soil-Core/SoilJournalFragmentFile.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SoilJournalFragmentFile >> basename [
^ path basename
]

{ #category : #'initialize-release' }
{ #category : #'open/close' }
SoilJournalFragmentFile >> close [
stream close
]
Expand All @@ -65,12 +65,12 @@ SoilJournalFragmentFile >> createdPosition [
^ self versionPosition + self versionSize
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilJournalFragmentFile >> createdSize [
^ 6
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilJournalFragmentFile >> currentLogSequenceNumber [
^ SoilLogSequenceNumber
fileNumber: (ByteArray readHexFrom: path pathSegments last) asInteger
Expand Down Expand Up @@ -130,7 +130,7 @@ SoilJournalFragmentFile >> initializeVersion [

]

{ #category : #'as yet unclassified' }
{ #category : #inspector }
SoilJournalFragmentFile >> inspectionTransactionJournals [
<inspectorPresentationOrder: 0 title: 'transaction journals'>

Expand Down Expand Up @@ -184,7 +184,7 @@ SoilJournalFragmentFile >> printOn: aStream [
<< path asString
]

{ #category : #'as yet unclassified' }
{ #category : #journal }
SoilJournalFragmentFile >> transactionJournals [
| transactionJournals entry |
self stream position: self dataPosition.
Expand Down
8 changes: 4 additions & 4 deletions src/Soil-Core/SoilLogSequenceNumber.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#category : #'Soil-Core-Journal'
}

{ #category : #'as yet unclassified' }
{ #category : #'instance creation' }
SoilLogSequenceNumber class >> fileNumber: number offset: offset [
^ self new
fileNumber: number offset: offset
Expand All @@ -31,12 +31,12 @@ SoilLogSequenceNumber >> fileNumber: number offset: offset [
value := value bitOr: offset
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilLogSequenceNumber >> fileOffset [
^ value bitAnd: 16rFFFFFF
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilLogSequenceNumber >> hexOffset [
^ (self fileOffset printStringBase: 16 length: 6 padded: true) asLowercase
]
Expand All @@ -46,7 +46,7 @@ SoilLogSequenceNumber >> isInitial [
^ value = 0
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilLogSequenceNumber >> nextFilename [
^ self filename: self fileNumber + 1
]
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilMemoryDatabaseJournal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SoilMemoryDatabaseJournal >> initialize [
transactionJournals := Dictionary new
]

{ #category : #'as yet unclassified' }
{ #category : #inspector }
SoilMemoryDatabaseJournal >> inspectionTransactionJournals [
<inspectorPresentationOrder: 0 title: 'transaction journals'>

Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilNewClusterVersion.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ SoilNewClusterVersion >> shouldBeCommitted [
^ true
]

{ #category : #'as yet unclassified' }
{ #category : #api }
SoilNewClusterVersion >> validateReadVersion [
"a new object record cannot conflict as the record is not on disk"
| currentPosition |
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilPersistentDatabaseJournal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ SoilPersistentDatabaseJournal >> initializeFilesystem [

]

{ #category : #tools }
{ #category : #inspector }
SoilPersistentDatabaseJournal >> inspectionContent [
<inspectorPresentationOrder: 0 title: 'transaction journals'>

Expand Down
14 changes: 7 additions & 7 deletions src/Soil-Core/SoilSetup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@ Class {
#category : #'Soil-Core-Model'
}

{ #category : #'as yet unclassified' }
{ #category : #caching }
SoilSetup >> cacheMetaRecords: anInteger [
soil objectRepository cacheSegmentAt: 0 upTo: anInteger
]

{ #category : #'as yet unclassified' }
{ #category : #caching }
SoilSetup >> cacheObjectRecords: anInteger [
1 to: soil objectRepository segments size do: [:n |
soil objectRepository cacheSegmentAt: n upTo: anInteger ]
]

{ #category : #'as yet unclassified' }
{ #category : #caching }
SoilSetup >> cacheRecords [
self cacheRecords: self defaultCacheRecordsSize
]

{ #category : #'as yet unclassified' }
{ #category : #caching }
SoilSetup >> cacheRecords: anInteger [
self
cacheMetaRecords: anInteger;
cacheObjectRecords: anInteger
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilSetup >> defaultCacheRecordsSize [
^ 1000
]
Expand All @@ -41,13 +41,13 @@ SoilSetup >> flushCachedIndexes [
segment flushIndexes ]
]

{ #category : #accessing }
{ #category : #flushing }
SoilSetup >> flushCachedObjectRecords [
soil objectRepository segmentsDo: [ :segment |
segment flushCachedObjectRecords ]
]

{ #category : #accessing }
{ #category : #flushing }
SoilSetup >> flushCaches [
self
flushCachedObjectRecords;
Expand Down
6 changes: 3 additions & 3 deletions src/Soil-Core/SoilSkipList.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ SoilSkipList >> newPage [
yourself
]

{ #category : #'as yet unclassified' }
{ #category : #reindexing }
SoilSkipList >> newReIndexer [
^ SoilReindexer new
index: self
Expand Down Expand Up @@ -129,12 +129,12 @@ SoilSkipList >> path: aStringOrFileReference [
path := aStringOrFileReference asFileReference
]

{ #category : #'as yet unclassified' }
{ #category : #reindexing }
SoilSkipList >> reIndex [
self newReIndexer run
]

{ #category : #'as yet unclassified' }
{ #category : #reindexing }
SoilSkipList >> reIndexUsing: itemBlock [
self newReIndexer
itemBlock: itemBlock;
Expand Down
12 changes: 6 additions & 6 deletions src/Soil-Core/SoilTransactionJournal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SoilTransactionJournal >> addEntry: aJournalEntry [
entries add: aJournalEntry
]

{ #category : #'as yet unclassified' }
{ #category : #searching }
SoilTransactionJournal >> anyEntrySatisfy: aBlock [
^ entries anySatisfy: aBlock
]
Expand Down Expand Up @@ -69,7 +69,7 @@ SoilTransactionJournal >> commitIn: soil [
entries do: [ :each | each commitIn: soil ]
]

{ #category : #'as yet unclassified' }
{ #category : #committing }
SoilTransactionJournal >> committedAt [
^ entries last committedAt
]
Expand Down Expand Up @@ -122,7 +122,7 @@ SoilTransactionJournal >> initialize [
entries := OrderedCollection new
]

{ #category : #tools }
{ #category : #inspector }
SoilTransactionJournal >> inspectionEntries [
<inspectorPresentationOrder: 0 title: 'journal entries'>

Expand Down Expand Up @@ -162,7 +162,7 @@ SoilTransactionJournal >> printOn: aStream [

]

{ #category : #'as yet unclassified' }
{ #category : #'reading-writing' }
SoilTransactionJournal >> readFrom: aStream [
| entry |
[ aStream atEnd ] whileFalse: [
Expand Down Expand Up @@ -191,14 +191,14 @@ SoilTransactionJournal >> validateIn: aSoilTransaction [
entries do: [ :each | each validateIn: aSoilTransaction ]
]

{ #category : #writing }
{ #category : #'reading-writing' }
SoilTransactionJournal >> writeOn: aStream [
entries do: [ :each | each writeOn: aStream ].
aStream
flush
]

{ #category : #writing }
{ #category : #'reading-writing' }
SoilTransactionJournal >> writeVersion [
^ entries first transactionId
]

0 comments on commit 3cdcc64

Please sign in to comment.