Package org.apache.parquet.hadoop.util
Class HadoopOutputFile
- java.lang.Object
-
- org.apache.parquet.hadoop.util.HadoopOutputFile
-
- All Implemented Interfaces:
OutputFile
public class HadoopOutputFile extends Object implements OutputFile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PositionOutputStream
create(long blockSizeHint)
PositionOutputStream
createOrOverwrite(long blockSizeHint)
long
defaultBlockSize()
static HadoopOutputFile
fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
static Set<String>
getBlockFileSystems()
org.apache.hadoop.conf.Configuration
getConfiguration()
String
getPath()
boolean
supportsBlockSize()
String
toString()
-
-
-
Method Detail
-
fromPath
public static HadoopOutputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
- Throws:
IOException
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
-
create
public PositionOutputStream create(long blockSizeHint) throws IOException
- Specified by:
create
in interfaceOutputFile
- Throws:
IOException
-
createOrOverwrite
public PositionOutputStream createOrOverwrite(long blockSizeHint) throws IOException
- Specified by:
createOrOverwrite
in interfaceOutputFile
- Throws:
IOException
-
supportsBlockSize
public boolean supportsBlockSize()
- Specified by:
supportsBlockSize
in interfaceOutputFile
-
defaultBlockSize
public long defaultBlockSize()
- Specified by:
defaultBlockSize
in interfaceOutputFile
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceOutputFile
-
-