Tabnine Logo
Storage$DirIterator
Code IndexAdd Tabnine 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)

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: 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 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 StorageDirectory next() {
 StorageDirectory sd = getStorageDir(nextIndex);
 prevIndex = nextIndex;
 nextIndex++;
 if (dirType != null || !includeShared) {
  while (nextIndex < storageDirs.size()) {
   if (shouldReturnNextDir())
    break;
   nextIndex++;
  }
 }
 return sd;
}

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

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

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

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: 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: 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: 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: 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: 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);
}

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

Most used methods

  • <init>
  • hasNext
  • shouldReturnNextDir

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Github Copilot 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