public interface FileType<Config>
Tap
classes as representing a file like interface.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CASCADING_SOURCE_PATH |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getChildIdentifiers(Config conf)
Method getChildIdentifiers returns an array of child identifiers if this resource is a directory.
|
java.lang.String[] |
getChildIdentifiers(Config conf,
int depth,
boolean fullyQualified)
Method getChildIdentifiers returns an array of child identifiers if this resource is a directory.
|
java.lang.String[] |
getChildIdentifiers(FlowProcess<? extends Config> flowProcess)
Method getChildIdentifiers returns an array of child identifiers if this resource is a directory.
|
java.lang.String[] |
getChildIdentifiers(FlowProcess<? extends Config> flowProcess,
int depth,
boolean fullyQualified)
Method getChildIdentifiers returns an array of child identifiers if this resource is a directory.
|
long |
getSize(Config conf)
Method getSize returns the size of the file referenced by this tap.
|
long |
getSize(FlowProcess<? extends Config> flowProcess)
Method getSize returns the size of the file referenced by this tap.
|
boolean |
isDirectory(Config conf)
Method isDirectory returns true if the underlying resource represents a directory or folder instead
of an individual file.
|
boolean |
isDirectory(FlowProcess<? extends Config> flowProcess)
Method isDirectory returns true if the underlying resource represents a directory or folder instead
of an individual file.
|
static final java.lang.String CASCADING_SOURCE_PATH
boolean isDirectory(FlowProcess<? extends Config> flowProcess) throws java.io.IOException
flowProcess
- java.io.IOException
boolean isDirectory(Config conf) throws java.io.IOException
conf
- of Confjava.io.IOException
java.lang.String[] getChildIdentifiers(FlowProcess<? extends Config> flowProcess) throws java.io.IOException
This method will skip Hadoop log directories (_log
).
flowProcess
- of type FlowProcessjava.io.IOException
java.lang.String[] getChildIdentifiers(Config conf) throws java.io.IOException
This method will skip Hadoop log directories (_log
).
conf
- of type Confjava.io.IOException
java.lang.String[] getChildIdentifiers(FlowProcess<? extends Config> flowProcess, int depth, boolean fullyQualified) throws java.io.IOException
This method will skip Hadoop log directories (_log
).
Note that all files encountered up to depth will be returned, and no directories unless the directory is the final path at max depth.
flowProcess
- depth
- fullyQualified
- java.io.IOException
java.lang.String[] getChildIdentifiers(Config conf, int depth, boolean fullyQualified) throws java.io.IOException
This method will skip Hadoop log directories (_log
).
Note that all files encountered up to depth will be returned, and no directories unless the directory is the final path at max depth.
conf
- of type Confdepth
- the max depth to return.fullyQualified
- true if the returned paths should be fully qualifiedjava.io.IOException
long getSize(FlowProcess<? extends Config> flowProcess) throws java.io.IOException
flowProcess
- java.io.IOException
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.