Class PathPrivilege
- java.lang.Object
-
- org.apache.iotdb.commons.auth.entity.PathPrivilege
-
public class PathPrivilege extends java.lang.ObjectThis class represents a privilege on a specific seriesPath. If the privilege is seriesPath-free, the seriesPath will be null.I
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<PathPrivilege>REFERENCE_DESCENT_SORTERSort PathPrivilege by referenceCnt in descent order.
-
Constructor Summary
Constructors Constructor Description PathPrivilege()PathPrivilege(PartialPath path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(java.nio.ByteBuffer buffer)booleanequals(java.lang.Object o)PartialPathgetPath()java.util.Set<java.lang.Integer>getPrivileges()java.util.concurrent.atomic.AtomicIntegergetReferenceCnt()inthashCode()java.nio.ByteBufferserialize()voidsetPath(PartialPath path)voidsetPrivileges(java.util.Set<java.lang.Integer> privileges)voidsetReferenceCnt(java.util.concurrent.atomic.AtomicInteger referenceCnt)java.lang.StringtoString()
-
-
-
Field Detail
-
REFERENCE_DESCENT_SORTER
public static final java.util.Comparator<PathPrivilege> REFERENCE_DESCENT_SORTER
Sort PathPrivilege by referenceCnt in descent order.
-
-
Constructor Detail
-
PathPrivilege
public PathPrivilege()
-
PathPrivilege
public PathPrivilege(PartialPath path)
-
-
Method Detail
-
getPrivileges
public java.util.Set<java.lang.Integer> getPrivileges()
-
setPrivileges
public void setPrivileges(java.util.Set<java.lang.Integer> privileges)
-
getPath
public PartialPath getPath()
-
setPath
public void setPath(PartialPath path)
-
getReferenceCnt
public java.util.concurrent.atomic.AtomicInteger getReferenceCnt()
-
setReferenceCnt
public void setReferenceCnt(java.util.concurrent.atomic.AtomicInteger referenceCnt)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
serialize
public java.nio.ByteBuffer serialize()
-
deserialize
public void deserialize(java.nio.ByteBuffer buffer)
-
-