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

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

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.FSEditLogOp$MkdirOp.setTimestamp (Showing top 4 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: 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$MkdirOpsetTimestamp

Popular methods of FSEditLogOp$MkdirOp

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

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JPanel (javax.swing)
  • Join (org.hibernate.mapping)
  • Top PhpStorm plugins
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