Package org.projectnessie.gc.contents
Class LiveContentSetsRepository
- java.lang.Object
-
- org.projectnessie.gc.contents.LiveContentSetsRepository
-
@Immutable public abstract class LiveContentSetsRepository extends java.lang.ObjectBinds information about contents, allows unordered addition of content information and grouped retrieval per content.In particular:
- Retrieval whether a particular content-id is still "live", whether any live Nessie commit references a particular content-id. This handles the case when a content has been deleted and its data storage can eventually be completely removed.
- Addition of base locations per content-id and retrieval of all known base locations by content-id.
- Inventory of
identify runsand information about the collected contents, storing the collected live content in an unordered way, retrieval of the collected live content per content-id toExpireimplementations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLiveContentSetsRepository.Builder
-
Constructor Summary
Constructors Constructor Description LiveContentSetsRepository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LiveContentSetsRepository.Builderbuilder()java.util.stream.Stream<LiveContentSet>getAllLiveContents()LiveContentSetgetLiveContentSet(java.util.UUID id)Retrieve an existing live-content-set, created via a previous invocation ofnewAddContents().AddContentsnewAddContents()Provides the interface used byIdentifyLiveContentsto persist information about live content.
-
-
-
Method Detail
-
builder
public static LiveContentSetsRepository.Builder builder()
-
getLiveContentSet
public LiveContentSet getLiveContentSet(java.util.UUID id) throws LiveContentSetNotFoundException
Retrieve an existing live-content-set, created via a previous invocation ofnewAddContents().- Throws:
LiveContentSetNotFoundException
-
getAllLiveContents
@MustBeClosed public java.util.stream.Stream<LiveContentSet> getAllLiveContents()
-
newAddContents
@MustBeClosed public AddContents newAddContents()
Provides the interface used byIdentifyLiveContentsto persist information about live content.
-
-