Tabnine Logo
Diff$Container.getElement
Code IndexAdd Tabnine to your IDE (free)

How to use
getElement
method
in
org.apache.hadoop.hdfs.util.Diff$Container

Best Java code snippets using org.apache.hadoop.hdfs.util.Diff$Container.getElement (Showing top 4 results out of 315)

origin: ch.cern.hadoop/hadoop-hdfs

final INode computed;
if (r != null) {
 computed = r.getElement();
} else {
 final int i = Diff.search(current, inode.getKey());
final INode computed;
if (r != null) {
 computed = r.getElement(); 
} else {
 final int i = Diff.search(previous, inode.getKey());
origin: io.prestosql.hadoop/hadoop-apache

/** @return the child with the given name. */
INode getChild(byte[] name, boolean checkPosterior,
  INodeDirectory currentDir) {
 for(DirectoryDiff d = this; ; d = d.getPosterior()) {
  final Container<INode> returned = d.diff.accessPrevious(name);
  if (returned != null) {
   // the diff is able to determine the inode
   return returned.getElement();
  } else if (!checkPosterior) {
   // Since checkPosterior is false, return null, i.e. not found.
   return null;
  } else if (d.getPosterior() == null) {
   // no more posterior diff, get from current inode.
   return currentDir.getChild(name, Snapshot.CURRENT_STATE_ID);
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

/** @return the child with the given name. */
INode getChild(byte[] name, boolean checkPosterior,
  INodeDirectory currentDir) {
 for(DirectoryDiff d = this; ; d = d.getPosterior()) {
  final Container<INode> returned = d.diff.accessPrevious(name);
  if (returned != null) {
   // the diff is able to determine the inode
   return returned.getElement();
  } else if (!checkPosterior) {
   // Since checkPosterior is false, return null, i.e. not found.
   return null;
  } else if (d.getPosterior() == null) {
   // no more posterior diff, get from current inode.
   return currentDir.getChild(name, Snapshot.CURRENT_STATE_ID);
  }
 }
}
origin: org.apache.hadoop/hadoop-hdfs

/** @return the child with the given name. */
INode getChild(byte[] name, boolean checkPosterior,
  INodeDirectory currentDir) {
 for(DirectoryDiff d = this; ; d = d.getPosterior()) {
  final Container<INode> returned = d.diff.accessPrevious(name);
  if (returned != null) {
   // the diff is able to determine the inode
   return returned.getElement();
  } else if (!checkPosterior) {
   // Since checkPosterior is false, return null, i.e. not found.
   return null;
  } else if (d.getPosterior() == null) {
   // no more posterior diff, get from current inode.
   return currentDir.getChild(name, Snapshot.CURRENT_STATE_ID);
  }
 }
}
org.apache.hadoop.hdfs.utilDiff$ContainergetElement

Popular methods of Diff$Container

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook extensions
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