congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FSEditLogOp$MkdirOp.getInstance
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/** 
 * 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

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: 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: 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$MkdirOpgetInstance

Popular methods of FSEditLogOp$MkdirOp

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ImageIO (javax.imageio)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top plugins for Android Studio
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