Package org.projectnessie.client.builder
Class BaseUpdateNamespaceBuilder
- java.lang.Object
-
- org.projectnessie.client.builder.BaseUpdateNamespaceBuilder
-
- All Implemented Interfaces:
ModifyNamespaceBuilder<UpdateNamespaceBuilder>,OnNamespaceBuilder<UpdateNamespaceBuilder>,OnReferenceBuilder<UpdateNamespaceBuilder>,UpdateNamespaceBuilder
- Direct Known Subclasses:
ClientSideUpdateNamespace
public abstract class BaseUpdateNamespaceBuilder extends java.lang.Object implements UpdateNamespaceBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected org.projectnessie.model.CommitMetacommitMetaprotected java.lang.StringhashOnRefprotected org.projectnessie.model.Namespacenamespaceprotected java.util.Set<java.lang.String>propertyRemovalsprotected java.util.Map<java.lang.String,java.lang.String>propertyUpdatesprotected java.lang.StringrefName
-
Constructor Summary
Constructors Constructor Description BaseUpdateNamespaceBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateNamespaceBuildercommitMeta(org.projectnessie.model.CommitMeta commitMeta)UpdateNamespaceBuilderhashOnRef(java.lang.String hashOnRef)Optional commit ID with an optional sequence of relative lookups.UpdateNamespaceBuildernamespace(org.projectnessie.model.Namespace namespace)UpdateNamespaceBuilderrefName(java.lang.String refName)UpdateNamespaceBuilderremoveProperties(java.util.Set<java.lang.String> propertyRemovals)UpdateNamespaceBuilderremoveProperty(java.lang.String key)UpdateNamespaceBuilderupdateProperties(java.util.Map<java.lang.String,java.lang.String> propertyUpdates)UpdateNamespaceBuilderupdateProperty(java.lang.String key, java.lang.String value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projectnessie.client.api.OnNamespaceBuilder
namespace
-
Methods inherited from interface org.projectnessie.client.api.OnReferenceBuilder
reference
-
Methods inherited from interface org.projectnessie.client.api.UpdateNamespaceBuilder
update, updateWithResponse
-
-
-
-
Field Detail
-
propertyUpdates
protected final java.util.Map<java.lang.String,java.lang.String> propertyUpdates
-
propertyRemovals
protected final java.util.Set<java.lang.String> propertyRemovals
-
namespace
protected org.projectnessie.model.Namespace namespace
-
refName
protected java.lang.String refName
-
hashOnRef
protected java.lang.String hashOnRef
-
commitMeta
protected org.projectnessie.model.CommitMeta commitMeta
-
-
Method Detail
-
commitMeta
public UpdateNamespaceBuilder commitMeta(org.projectnessie.model.CommitMeta commitMeta)
- Specified by:
commitMetain interfaceModifyNamespaceBuilder<UpdateNamespaceBuilder>
-
namespace
public UpdateNamespaceBuilder namespace(org.projectnessie.model.Namespace namespace)
- Specified by:
namespacein interfaceOnNamespaceBuilder<UpdateNamespaceBuilder>
-
refName
public UpdateNamespaceBuilder refName(java.lang.String refName)
- Specified by:
refNamein interfaceOnReferenceBuilder<UpdateNamespaceBuilder>
-
hashOnRef
public UpdateNamespaceBuilder hashOnRef(@Nullable @Nullable java.lang.String hashOnRef)
Description copied from interface:OnReferenceBuilderOptional commit ID with an optional sequence of relative lookups. Relative lookups can be by-timestamp, by-n-th-predecessor or by-n-th-parent.Relative lookups are only supported for REST API
v2against servers announcingNessie specification2.1.0for most functionalities.- Lookup by timestamp starts with
*followed by the numeric value of the timestamp in milliseconds since epoch. - Lookup by n-th predecessor starts with
~followed by the value for the n-th commit in the commit log. - Lookup by n-th parent starts with
^followed by either 1, referencing the direct parent, or 2, referencing the merge parent.
Valid values are:
~10-> the 10th parent from theHEAD11223344~10-> the 10th parent of the commit1122334411223344^2-> the merge parent of the commit1122334411223344~10^2-> the merge parent of the 10th parent of the commit1122334411223344~10^1-> the direct parent of the 10th parent of the commit11223344- functionally equal to11223344~1111223344*10000000000-> the commit in the commit log starting at11223344with a commit-created timestamp of 10000000000 or less.*10000000000-> the commit in the commit log starting atHEADwith a commit-created timestamp of 10000000000 or less.
- Specified by:
hashOnRefin interfaceOnReferenceBuilder<UpdateNamespaceBuilder>
- Lookup by timestamp starts with
-
removeProperty
public UpdateNamespaceBuilder removeProperty(java.lang.String key)
- Specified by:
removePropertyin interfaceUpdateNamespaceBuilder
-
removeProperties
public UpdateNamespaceBuilder removeProperties(java.util.Set<java.lang.String> propertyRemovals)
- Specified by:
removePropertiesin interfaceUpdateNamespaceBuilder
-
updateProperty
public UpdateNamespaceBuilder updateProperty(java.lang.String key, java.lang.String value)
- Specified by:
updatePropertyin interfaceUpdateNamespaceBuilder
-
updateProperties
public UpdateNamespaceBuilder updateProperties(java.util.Map<java.lang.String,java.lang.String> propertyUpdates)
- Specified by:
updatePropertiesin interfaceUpdateNamespaceBuilder
-
-