org.apache.solr.hadoop
Class PathArgumentType
java.lang.Object
org.apache.solr.hadoop.PathArgumentType
- All Implemented Interfaces:
- net.sourceforge.argparse4j.inf.ArgumentType<org.apache.hadoop.fs.Path>
public class PathArgumentType
- extends Object
- implements net.sourceforge.argparse4j.inf.ArgumentType<org.apache.hadoop.fs.Path>
ArgumentType subclass for HDFS Path type, using fluent style API.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathArgumentType
public PathArgumentType(org.apache.hadoop.conf.Configuration conf)
acceptSystemIn
public PathArgumentType acceptSystemIn()
verifyExists
public PathArgumentType verifyExists()
verifyNotExists
public PathArgumentType verifyNotExists()
verifyIsFile
public PathArgumentType verifyIsFile()
verifyIsDirectory
public PathArgumentType verifyIsDirectory()
verifyCanRead
public PathArgumentType verifyCanRead()
verifyCanWrite
public PathArgumentType verifyCanWrite()
verifyCanWriteParent
public PathArgumentType verifyCanWriteParent()
verifyCanExecute
public PathArgumentType verifyCanExecute()
verifyIsAbsolute
public PathArgumentType verifyIsAbsolute()
verifyHasScheme
public PathArgumentType verifyHasScheme()
verifyScheme
public PathArgumentType verifyScheme(String scheme)
convert
public org.apache.hadoop.fs.Path convert(net.sourceforge.argparse4j.inf.ArgumentParser parser,
net.sourceforge.argparse4j.inf.Argument arg,
String value)
throws net.sourceforge.argparse4j.inf.ArgumentParserException
- Specified by:
convert in interface net.sourceforge.argparse4j.inf.ArgumentType<org.apache.hadoop.fs.Path>
- Throws:
net.sourceforge.argparse4j.inf.ArgumentParserException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.