Package org.projectnessie.gc.repository
Class NessieRepositoryConnector
- java.lang.Object
-
- org.projectnessie.gc.repository.NessieRepositoryConnector
-
- All Implemented Interfaces:
java.lang.AutoCloseable,RepositoryConnector
public final class NessieRepositoryConnector extends java.lang.Object implements RepositoryConnector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Stream<java.util.Map.Entry<org.projectnessie.model.ContentKey,org.projectnessie.model.Content>>allContents(org.projectnessie.model.Detached ref, java.util.Set<org.projectnessie.model.Content.Type> types)Retrieves all remaining contents at the last live commit (the commit right before the first non-live commit).java.util.stream.Stream<org.projectnessie.model.Reference>allReferences()Retrieve all references to walk.voidclose()java.util.stream.Stream<org.projectnessie.model.LogResponse.LogEntry>commitLog(org.projectnessie.model.Reference ref)Retrieve the commit log of a single reference returned viaRepositoryConnector.allReferences().static RepositoryConnectornessie(org.projectnessie.client.api.NessieApiV1 api)
-
-
-
Method Detail
-
nessie
public static RepositoryConnector nessie(org.projectnessie.client.api.NessieApiV1 api)
-
allReferences
public java.util.stream.Stream<org.projectnessie.model.Reference> allReferences() throws org.projectnessie.error.NessieNotFoundExceptionDescription copied from interface:RepositoryConnectorRetrieve all references to walk. References are usually walked in parallel.- Specified by:
allReferencesin interfaceRepositoryConnector- Throws:
org.projectnessie.error.NessieNotFoundException
-
commitLog
public java.util.stream.Stream<org.projectnessie.model.LogResponse.LogEntry> commitLog(org.projectnessie.model.Reference ref) throws org.projectnessie.error.NessieNotFoundExceptionDescription copied from interface:RepositoryConnectorRetrieve the commit log of a single reference returned viaRepositoryConnector.allReferences().- Specified by:
commitLogin interfaceRepositoryConnector- Throws:
org.projectnessie.error.NessieNotFoundException
-
allContents
public java.util.stream.Stream<java.util.Map.Entry<org.projectnessie.model.ContentKey,org.projectnessie.model.Content>> allContents(org.projectnessie.model.Detached ref, java.util.Set<org.projectnessie.model.Content.Type> types)Description copied from interface:RepositoryConnectorRetrieves all remaining contents at the last live commit (the commit right before the first non-live commit).- Specified by:
allContentsin interfaceRepositoryConnector
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-