public class $Parquet extends Object
| Constructor and Description |
|---|
$Parquet() |
| Modifier and Type | Method and Description |
|---|---|
$Hdfs |
getHdfs() |
$ParquetSchemaWriter |
getParquetSchemaWriter(String path,
org.apache.avro.Schema schema)
获取一个Parquet写对象
|
org.apache.hadoop.fs.Path |
getParquetWritePath(String path)
获取一个空的路径
|
org.apache.hadoop.fs.Path |
getRandomPath(String path)
获取一个空的路径
|
$Parquet |
init($Hdfs hdfs) |
List<org.apache.parquet.example.data.Group> |
readFiles(String path)
读取路径数据
|
List<Object> |
readFiles(String path,
Class c)
读取路径数据
|
List<org.apache.avro.generic.GenericRecord> |
readGenericRecordFiles(String path)
读取路径数据
|
List<Object> |
readGenericRecordFiles(String path,
Class c)
读取路径数据
|
$Parquet |
setHdfs($Hdfs hdfs) |
void |
writeGenericRecordFiles(String path,
org.apache.avro.Schema schema,
List<Object> ol)
写数据文件
|
void |
writeGenericRecordFiles(String path,
org.apache.avro.Schema schema,
Object o)
写数据文件
|
public List<Object> readFiles(String path, Class c) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
path - c - IOExceptionNoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionpublic List<org.apache.parquet.example.data.Group> readFiles(String path) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
path - IOExceptionNoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionpublic List<org.apache.avro.generic.GenericRecord> readGenericRecordFiles(String path) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
path - IOExceptionNoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionpublic List<Object> readGenericRecordFiles(String path, Class c) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
path - c - IOExceptionNoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionpublic void writeGenericRecordFiles(String path, org.apache.avro.Schema schema, Object o) throws Exception
path - schema - o - IOExceptionExceptionpublic void writeGenericRecordFiles(String path, org.apache.avro.Schema schema, List<Object> ol) throws Exception
path - schema - ol - IOExceptionExceptionpublic $ParquetSchemaWriter getParquetSchemaWriter(String path, org.apache.avro.Schema schema) throws Exception
path - IOExceptionExceptionpublic org.apache.hadoop.fs.Path getParquetWritePath(String path) throws Exception
path - IOExceptionExceptionpublic org.apache.hadoop.fs.Path getRandomPath(String path) throws Exception
path - IOExceptionExceptionpublic $Hdfs getHdfs()
Copyright © 2018. All rights reserved.