Tabnine Logo
FSEditLogOp$MkdirOp
Code IndexAdd Tabnine to your IDE (free)

How to use
FSEditLogOp$MkdirOp
in
org.apache.hadoop.hdfs.server.namenode

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.FSEditLogOp$MkdirOp (Showing top 11 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

 @Override void fromXml(Stanza st) throws InvalidXmlException {
  this.length = Integer.parseInt(st.getValue("LENGTH"));
  this.inodeId = Long.parseLong(st.getValue("INODEID"));
  this.path = st.getValue("PATH");
  this.timestamp = Long.parseLong(st.getValue("TIMESTAMP"));
  this.permissions = permissionStatusFromXml(st);
  aclEntries = readAclEntriesFromXml(st);
  xAttrs = readXAttrsFromXml(st);
 }
}
origin: io.prestosql.hadoop/hadoop-apache

inst.put(OP_RENAME_OLD, new RenameOldOp());
inst.put(OP_DELETE, new DeleteOp());
inst.put(OP_MKDIR, new MkdirOp());
inst.put(OP_SET_GENSTAMP_V1, new SetGenstampV1Op());
inst.put(OP_SET_PERMISSIONS, new SetPermissionsOp());
origin: ch.cern.hadoop/hadoop-hdfs

inst.put(OP_RENAME_OLD, new RenameOldOp());
inst.put(OP_DELETE, new DeleteOp());
inst.put(OP_MKDIR, new MkdirOp());
inst.put(OP_SET_GENSTAMP_V1, new SetGenstampV1Op());
inst.put(OP_SET_PERMISSIONS, new SetPermissionsOp());
origin: com.facebook.hadoop/hadoop-core

  @Override
  protected EnumMap<FSEditLogOpCodes, FSEditLogOp> initialValue() {
   EnumMap<FSEditLogOpCodes, FSEditLogOp> instances 
    = new EnumMap<FSEditLogOpCodes, FSEditLogOp>(FSEditLogOpCodes.class);
   instances.put(OP_INVALID, new InvalidOp());
   instances.put(OP_ADD, new AddOp());
   instances.put(OP_CLOSE, new CloseOp());
   instances.put(OP_SET_REPLICATION, new SetReplicationOp());
   instances.put(OP_CONCAT_DELETE, new ConcatDeleteOp());
   instances.put(OP_RENAME, new RenameOp());
   instances.put(OP_DELETE, new DeleteOp());
   instances.put(OP_MKDIR, new MkdirOp());
   instances.put(OP_SET_GENSTAMP, new SetGenstampOp());
   instances.put(OP_DATANODE_ADD, new DatanodeAddOp());
   instances.put(OP_DATANODE_REMOVE, new DatanodeRemoveOp());
   instances.put(OP_SET_PERMISSIONS, new SetPermissionsOp());
   instances.put(OP_SET_OWNER, new SetOwnerOp());
   instances.put(OP_SET_NS_QUOTA, new SetNSQuotaOp());
   instances.put(OP_CLEAR_NS_QUOTA, new ClearNSQuotaOp());
   instances.put(OP_SET_QUOTA, new SetQuotaOp());
   instances.put(OP_TIMES, new TimesOp());
   instances.put(OP_START_LOG_SEGMENT,
          new LogSegmentOp(OP_START_LOG_SEGMENT));
   instances.put(OP_END_LOG_SEGMENT,
          new LogSegmentOp(OP_END_LOG_SEGMENT));
   return instances;
  }
};
origin: io.prestosql.hadoop/hadoop-apache

/** 
 * Add create directory record to edit log
 */
public void logMkDir(String path, INode newNode) {
 PermissionStatus permissions = newNode.getPermissionStatus();
 MkdirOp op = MkdirOp.getInstance(cache.get())
  .setInodeId(newNode.getId())
  .setPath(path)
  .setTimestamp(newNode.getModificationTime())
  .setPermissionStatus(permissions);
 AclFeature f = newNode.getAclFeature();
 if (f != null) {
  op.setAclEntries(AclStorage.readINodeLogicalAcl(newNode));
 }
 XAttrFeature x = newNode.getXAttrFeature();
 if (x != null) {
  op.setXAttrs(x.getXAttrs());
 }
 logEdit(op);
}

origin: ch.cern.hadoop/hadoop-hdfs

/** 
 * Add create directory record to edit log
 */
public void logMkDir(String path, INode newNode) {
 PermissionStatus permissions = newNode.getPermissionStatus();
 MkdirOp op = MkdirOp.getInstance(cache.get())
  .setInodeId(newNode.getId())
  .setPath(path)
  .setTimestamp(newNode.getModificationTime())
  .setPermissionStatus(permissions);
 AclFeature f = newNode.getAclFeature();
 if (f != null) {
  op.setAclEntries(AclStorage.readINodeLogicalAcl(newNode));
 }
 XAttrFeature x = newNode.getXAttrFeature();
 if (x != null) {
  op.setXAttrs(x.getXAttrs());
 }
 logEdit(op);
}

origin: io.prestosql.hadoop/hadoop-apache

 @Override void fromXml(Stanza st) throws InvalidXmlException {
  this.length = Integer.parseInt(st.getValue("LENGTH"));
  this.inodeId = Long.parseLong(st.getValue("INODEID"));
  this.path = st.getValue("PATH");
  this.timestamp = Long.parseLong(st.getValue("TIMESTAMP"));
  this.permissions = permissionStatusFromXml(st);
  aclEntries = readAclEntriesFromXml(st);
  xAttrs = readXAttrsFromXml(st);
 }
}
origin: com.facebook.hadoop/hadoop-core

/** 
 * Add create directory record to edit log
 */
public void logMkDir(String path, INode newNode) {
 MkdirOp op = MkdirOp.getInstance();
 op.set(path, newNode.getModificationTime(), 
   newNode.getPermissionStatus());
 logEdit(op);
}

origin: ch.cern.hadoop/hadoop-hdfs

 @Override void fromXml(Stanza st) throws InvalidXmlException {
  this.length = Integer.parseInt(st.getValue("LENGTH"));
  this.inodeId = Long.parseLong(st.getValue("INODEID"));
  this.path = st.getValue("PATH");
  this.timestamp = Long.parseLong(st.getValue("TIMESTAMP"));
  this.permissions = permissionStatusFromXml(st);
  aclEntries = readAclEntriesFromXml(st);
  xAttrs = readXAttrsFromXml(st);
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

public static FSEditLogOp createMkdirOp(String path) {
 MkdirOp op = MkdirOp.getInstance(new FSEditLogOp.OpInstanceCache())
  .setPath(path)
  .setTimestamp(0)
  .setPermissionStatus(new PermissionStatus(
      "testuser", "testgroup", FsPermission.getDefault()));
 return op;
}

origin: org.apache.hadoop/hadoop-hdfs

/** 
 * Add create directory record to edit log
 */
public void logMkDir(String path, INode newNode) {
 PermissionStatus permissions = newNode.getPermissionStatus();
 MkdirOp op = MkdirOp.getInstance(cache.get())
  .setInodeId(newNode.getId())
  .setPath(path)
  .setTimestamp(newNode.getModificationTime())
  .setPermissionStatus(permissions);
 AclFeature f = newNode.getAclFeature();
 if (f != null) {
  op.setAclEntries(AclStorage.readINodeLogicalAcl(newNode));
 }
 XAttrFeature x = newNode.getXAttrFeature();
 if (x != null) {
  op.setXAttrs(x.getXAttrs());
 }
 logEdit(op);
}

org.apache.hadoop.hdfs.server.namenodeFSEditLogOp$MkdirOp

Javadoc

@Idempotent for ClientProtocol#mkdirs

Most used methods

  • getInstance
  • setPath
  • setPermissionStatus
  • setTimestamp
  • <init>
  • permissionStatusFromXml
  • setAclEntries
  • setInodeId
  • setXAttrs
  • set

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now