Class AuthorPlan
- java.lang.Object
-
- org.apache.iotdb.db.qp.physical.PhysicalPlan
-
- org.apache.iotdb.db.qp.physical.sys.AuthorPlan
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest
public class AuthorPlan extends PhysicalPlan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
PhysicalPlan.Factory, PhysicalPlan.PhysicalPlanType
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, index
-
-
Constructor Summary
Constructors Constructor Description AuthorPlan(Operator.OperatorType operatorType)AuthorPlan(AuthorOperator.AuthorType authorType, java.lang.String userName, java.lang.String roleName, java.lang.String password, java.lang.String newPassword, java.lang.String[] authorizationList, java.util.List<org.apache.iotdb.commons.path.PartialPath> nodeNameList)AuthorPlan Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(java.nio.ByteBuffer buffer)Deserialize the plan from the given buffer.booleanequals(java.lang.Object o)AuthorOperator.AuthorTypegetAuthorType()java.lang.StringgetNewPassword()java.util.List<org.apache.iotdb.commons.path.PartialPath>getNodeNameList()java.lang.StringgetPassword()java.util.List<org.apache.iotdb.commons.path.PartialPath>getPaths()java.util.Set<java.lang.Integer>getPermissions()java.lang.StringgetRoleName()java.lang.StringgetUserName()inthashCode()voidserialize(java.io.DataOutputStream stream)Serialize the plan into the given buffer.voidserializeImpl(java.nio.ByteBuffer buffer)voidsetAuthorType(AuthorOperator.AuthorType type)voidsetPermissions(java.util.Set<java.lang.Integer> permissions)java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, checkIntegrity, deserialize, getAggregations, getAuthPaths, getIndex, getLoginUserName, getOperatorName, getOperatorType, isAuthenticationRequired, isDebug, isPrefixMatch, isQuery, isSelectInto, putString, putString, putStrings, putStrings, readString, readStrings, serialize, serializeToByteBuffer, setDebug, setIndex, setLoginUserName, setOperatorType, setPaths, setPrefixMatch, setQuery
-
-
-
-
Constructor Detail
-
AuthorPlan
public AuthorPlan(AuthorOperator.AuthorType authorType, java.lang.String userName, java.lang.String roleName, java.lang.String password, java.lang.String newPassword, java.lang.String[] authorizationList, java.util.List<org.apache.iotdb.commons.path.PartialPath> nodeNameList) throws org.apache.iotdb.commons.auth.AuthException
AuthorPlan Constructor.- Parameters:
authorType- author typeuserName- user nameroleName- role namepassword- passwordnewPassword- new passwordauthorizationList- authorization list in String[] structurenodeNameList- node name in Path structure- Throws:
org.apache.iotdb.commons.auth.AuthException- Authentication Exception
-
AuthorPlan
public AuthorPlan(Operator.OperatorType operatorType) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
setAuthorType
public void setAuthorType(AuthorOperator.AuthorType type)
-
getAuthorType
public AuthorOperator.AuthorType getAuthorType()
-
getRoleName
public java.lang.String getRoleName()
-
getPassword
public java.lang.String getPassword()
-
getNewPassword
public java.lang.String getNewPassword()
-
getPermissions
public java.util.Set<java.lang.Integer> getPermissions()
-
setPermissions
public void setPermissions(java.util.Set<java.lang.Integer> permissions)
-
getNodeNameList
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getNodeNameList()
-
getUserName
public java.lang.String getUserName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getPaths
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPaths()
- Specified by:
getPathsin classPhysicalPlan
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
serialize
public void serialize(java.io.DataOutputStream stream) throws java.io.IOExceptionDescription copied from class:PhysicalPlanSerialize the plan into the given buffer. All necessary fields will be serialized.- Overrides:
serializein classPhysicalPlan- Throws:
java.io.IOException
-
serializeImpl
public void serializeImpl(java.nio.ByteBuffer buffer)
- Overrides:
serializeImplin classPhysicalPlan
-
deserialize
public void deserialize(java.nio.ByteBuffer buffer) throws org.apache.iotdb.commons.exception.IllegalPathExceptionDescription copied from class:PhysicalPlanDeserialize the plan from the given buffer.- Overrides:
deserializein classPhysicalPlan- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
-