public static class StripedDataFormat.InputContext extends Object
DirectInputFragment
s.Constructor and Description |
---|
InputContext(Class<?> dataType,
Collection<? extends org.apache.hadoop.fs.FileStatus> inputFiles,
org.apache.hadoop.fs.FileSystem fileSystem,
long minimumFragmentSize,
long preferredFragmentSize,
boolean splitBlocks,
boolean combineBlocks)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDataType()
Returns the target data type.
|
org.apache.hadoop.fs.FileSystem |
getFileSystem()
Returns the file system for the this datastore.
|
Collection<? extends org.apache.hadoop.fs.FileStatus> |
getInputFiles()
Returns the input files information.
|
long |
getMinimumFragmentSize()
Returns the minimum fragment size.
|
long |
getPreferredFragmentSize()
Returns the preferred fragment size.
|
boolean |
isCombineBlocks()
Returns whether combines multiple blocks into a fragment for optimization.
|
boolean |
isSplitBlocks()
Returns whether split DFS block into multiple splits for optimization or not.
|
public InputContext(Class<?> dataType, Collection<? extends org.apache.hadoop.fs.FileStatus> inputFiles, org.apache.hadoop.fs.FileSystem fileSystem, long minimumFragmentSize, long preferredFragmentSize, boolean splitBlocks, boolean combineBlocks)
dataType
- the target datatypeinputFiles
- the input files informationfileSystem
- the file system for input filesminimumFragmentSize
- the minimum fragment size, or < 0
if fragmentation is not expectedpreferredFragmentSize
- the preferred fragment size, or < 0
if fragmentation is not expectedsplitBlocks
- true
to split a file block into multiple fragmentscombineBlocks
- true
to combine multiple splits into a single fragmentpublic Class<?> getDataType()
public org.apache.hadoop.fs.FileSystem getFileSystem()
public Collection<? extends org.apache.hadoop.fs.FileStatus> getInputFiles()
public long getMinimumFragmentSize()
< 0
if fragmentation is restrictedpublic long getPreferredFragmentSize()
< 0
if fragmentation is restrictedpublic boolean isSplitBlocks()
true
to split, otherwise false
public boolean isCombineBlocks()
true
to combine, otherwise false
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.