Codota Logo
Storage$DirIterator
Code IndexAdd Codota to your IDE (free)

How to use
Storage$DirIterator
in
org.apache.hadoop.hdfs.server.common

Best Java code snippets using org.apache.hadoop.hdfs.server.common.Storage$DirIterator (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-hdfs

@Override
public void remove() {
 nextIndex = prevIndex; // restore previous state
 storageDirs.remove(prevIndex); // remove last returned element
 hasNext(); // reset nextIndex to correct place
}

origin: org.apache.hadoop/hadoop-hdfs

@Override
public boolean hasNext() {
 if (storageDirs.isEmpty() || nextIndex >= storageDirs.size())
  return false;
 if (dirType != null || !includeShared) {
  while (nextIndex < storageDirs.size()) {
   if (shouldReturnNextDir())
    break;
   nextIndex++;
  }
  if (nextIndex >= storageDirs.size())
   return false;
 }
 return true;
}

origin: org.apache.hadoop/hadoop-hdfs

/**
 * @param dirType all entries will be of this type of dir
 * @param includeShared true to include any shared directories,
 *        false otherwise
 * @return an iterator over the configured storage dirs.
 */
public Iterator<StorageDirectory> dirIterator(StorageDirType dirType,
  boolean includeShared) {
 return new DirIterator(dirType, includeShared);
}

origin: ch.cern.hadoop/hadoop-hdfs

/**
 * @param dirType all entries will be of this type of dir
 * @param includeShared true to include any shared directories,
 *        false otherwise
 * @return an iterator over the configured storage dirs.
 */
public Iterator<StorageDirectory> dirIterator(StorageDirType dirType,
  boolean includeShared) {
 return new DirIterator(dirType, includeShared);
}

origin: com.facebook.hadoop/hadoop-core

 public void remove() {
  nextIndex = prevIndex; // restore previous state
  storageDirs.remove(prevIndex); // remove last returned element
  hasNext(); // reset nextIndex to correct place
 }
}
origin: io.prestosql.hadoop/hadoop-apache

@Override
public void remove() {
 nextIndex = prevIndex; // restore previous state
 storageDirs.remove(prevIndex); // remove last returned element
 hasNext(); // reset nextIndex to correct place
}

origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Return iterator based on Storage Directory Type
 * This iterator selects entires of storageDirs of type dirType and returns
 * them via the Iterator
 */
public Iterator<StorageDirectory> dirIterator(StorageDirType dirType) {
 return new DirIterator(dirType);
}

origin: com.facebook.hadoop/hadoop-core

/**
 * Return iterator based on Storage Directory Type
 * This iterator selects entires of storageDirs of type dirType and returns
 * them via the Iterator
 */
public Iterator<StorageDirectory> dirIterator(StorageDirType dirType) {
 return new DirIterator(dirType);
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * @param dirType all entries will be of this type of dir
 * @param includeShared true to include any shared directories,
 *        false otherwise
 * @return an iterator over the configured storage dirs.
 */
public Iterator<StorageDirectory> dirIterator(StorageDirType dirType,
  boolean includeShared) {
 return new DirIterator(dirType, includeShared);
}

origin: org.jvnet.hudson.hadoop/hadoop-core

 public void remove() {
  nextIndex = prevIndex; // restore previous state
  storageDirs.remove(prevIndex); // remove last returned element
  hasNext(); // reset nextIndex to correct place
 }
}
origin: io.prestosql.hadoop/hadoop-apache

@Override
public StorageDirectory next() {
 StorageDirectory sd = getStorageDir(nextIndex);
 prevIndex = nextIndex;
 nextIndex++;
 if (dirType != null || !includeShared) {
  while (nextIndex < storageDirs.size()) {
   if (shouldReturnNextDir())
    break;
   nextIndex++;
  }
 }
 return sd;
}

origin: ch.cern.hadoop/hadoop-hdfs

@Override
public StorageDirectory next() {
 StorageDirectory sd = getStorageDir(nextIndex);
 prevIndex = nextIndex;
 nextIndex++;
 if (dirType != null || !includeShared) {
  while (nextIndex < storageDirs.size()) {
   if (shouldReturnNextDir())
    break;
   nextIndex++;
  }
 }
 return sd;
}

origin: org.apache.hadoop/hadoop-hdfs

@Override
public StorageDirectory next() {
 StorageDirectory sd = getStorageDir(nextIndex);
 prevIndex = nextIndex;
 nextIndex++;
 if (dirType != null || !includeShared) {
  while (nextIndex < storageDirs.size()) {
   if (shouldReturnNextDir())
    break;
   nextIndex++;
  }
 }
 return sd;
}

origin: ch.cern.hadoop/hadoop-hdfs

@Override
public boolean hasNext() {
 if (storageDirs.isEmpty() || nextIndex >= storageDirs.size())
  return false;
 if (dirType != null || !includeShared) {
  while (nextIndex < storageDirs.size()) {
   if (shouldReturnNextDir())
    break;
   nextIndex++;
  }
  if (nextIndex >= storageDirs.size())
   return false;
 }
 return true;
}

origin: io.prestosql.hadoop/hadoop-apache

@Override
public boolean hasNext() {
 if (storageDirs.isEmpty() || nextIndex >= storageDirs.size())
  return false;
 if (dirType != null || !includeShared) {
  while (nextIndex < storageDirs.size()) {
   if (shouldReturnNextDir())
    break;
   nextIndex++;
  }
  if (nextIndex >= storageDirs.size())
   return false;
 }
 return true;
}

origin: ch.cern.hadoop/hadoop-hdfs

@Override
public void remove() {
 nextIndex = prevIndex; // restore previous state
 storageDirs.remove(prevIndex); // remove last returned element
 hasNext(); // reset nextIndex to correct place
}

org.apache.hadoop.hdfs.server.commonStorage$DirIterator

Most used methods

  • <init>
  • hasNext
  • shouldReturnNextDir

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • Menu (java.awt)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JFrame (javax.swing)
  • JList (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now