Java 类org.apache.hadoop.fs.HasFileDescriptor 实例源码

项目:hadoop-oss    文件:CryptoInputStream.java   
@Override
public FileDescriptor getFileDescriptor() throws IOException {
  if (in instanceof HasFileDescriptor) {
    return ((HasFileDescriptor) in).getFileDescriptor();
  } else if (in instanceof FileInputStream) {
    return ((FileInputStream) in).getFD();
  } else {
    return null;
  }
}
项目:hadoop    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hadoop    文件:CryptoInputStream.java   
@Override
public FileDescriptor getFileDescriptor() throws IOException {
  if (in instanceof HasFileDescriptor) {
    return ((HasFileDescriptor) in).getFileDescriptor();
  } else if (in instanceof FileInputStream) {
    return ((FileInputStream) in).getFD();
  } else {
    return null;
  }
}
项目:aliyun-oss-hadoop-fs    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:aliyun-oss-hadoop-fs    文件:CryptoInputStream.java   
@Override
public FileDescriptor getFileDescriptor() throws IOException {
  if (in instanceof HasFileDescriptor) {
    return ((HasFileDescriptor) in).getFileDescriptor();
  } else if (in instanceof FileInputStream) {
    return ((FileInputStream) in).getFD();
  } else {
    return null;
  }
}
项目:big-c    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:big-c    文件:CryptoInputStream.java   
@Override
public FileDescriptor getFileDescriptor() throws IOException {
  if (in instanceof HasFileDescriptor) {
    return ((HasFileDescriptor) in).getFileDescriptor();
  } else if (in instanceof FileInputStream) {
    return ((FileInputStream) in).getFD();
  } else {
    return null;
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:CryptoInputStream.java   
@Override
public FileDescriptor getFileDescriptor() throws IOException {
  if (in instanceof HasFileDescriptor) {
    return ((HasFileDescriptor) in).getFileDescriptor();
  } else if (in instanceof FileInputStream) {
    return ((FileInputStream) in).getFD();
  } else {
    return null;
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hadoop-plus    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:FlexMap    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hops    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hops    文件:CryptoInputStream.java   
@Override
public FileDescriptor getFileDescriptor() throws IOException {
  if (in instanceof HasFileDescriptor) {
    return ((HasFileDescriptor) in).getFileDescriptor();
  } else if (in instanceof FileInputStream) {
    return ((FileInputStream) in).getFD();
  } else {
    return null;
  }
}
项目:hadoop-TCP    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hardfs    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hadoop-on-lustre2    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:incubator-tez    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:hanoi-hadoop-2.0.0-cdh    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}
项目:tez    文件:IFileInputStream.java   
private static FileDescriptor getFileDescriptorIfAvail(InputStream in) {
  FileDescriptor fd = null;
  try {
    if (in instanceof HasFileDescriptor) {
      fd = ((HasFileDescriptor)in).getFileDescriptor();
    } else if (in instanceof FileInputStream) {
      fd = ((FileInputStream)in).getFD();
    }
  } catch (IOException e) {
    LOG.info("Unable to determine FileDescriptor", e);
  }
  return fd;
}