Class ExampleOutputFormat
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Void,T>
org.apache.parquet.hadoop.ParquetOutputFormat<org.apache.parquet.example.data.Group>
org.apache.parquet.hadoop.example.ExampleOutputFormat
An example output format
must be provided the schema up front
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.parquet.hadoop.ParquetOutputFormat
ParquetOutputFormat.JobSummaryLevelNested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -
Field Summary
Fields inherited from class org.apache.parquet.hadoop.ParquetOutputFormat
ADAPTIVE_BLOOM_FILTER_ENABLED, BLOCK_ROW_COUNT_LIMIT, BLOCK_SIZE, BLOOM_FILTER_CANDIDATES_NUMBER, BLOOM_FILTER_ENABLED, BLOOM_FILTER_EXPECTED_NDV, BLOOM_FILTER_FPP, BLOOM_FILTER_MAX_BYTES, COLUMN_COMPRESSION_LEVEL_PREFIX, COLUMN_INDEX_TRUNCATE_LENGTH, COMPRESSION, DICTIONARY_PAGE_SIZE, ENABLE_BYTE_STREAM_SPLIT, ENABLE_DICTIONARY, ENABLE_JOB_SUMMARY, ESTIMATE_PAGE_SIZE_CHECK, JOB_SUMMARY_LEVEL, MAX_PADDING_BYTES, MAX_ROW_COUNT_FOR_PAGE_SIZE_CHECK, MEMORY_POOL_RATIO, MIN_MEMORY_ALLOCATION, MIN_ROW_COUNT_FOR_PAGE_SIZE_CHECK, PAGE_ROW_COUNT_LIMIT, PAGE_SIZE, PAGE_VALUE_COUNT_THRESHOLD, PAGE_WRITE_CHECKSUM_ENABLED, SIZE_STATISTICS_ENABLED, STATISTICS_ENABLED, STATISTICS_TRUNCATE_LENGTH, VALIDATION, WRITE_SUPPORT_CLASS, WRITER_VERSIONFields inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
BASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.parquet.schema.MessageTypegetSchema(org.apache.hadoop.mapreduce.Job job) retrieve the schema from the confstatic voidsetSchema(org.apache.hadoop.mapreduce.Job job, org.apache.parquet.schema.MessageType schema) set the schema being written to the job confMethods inherited from class org.apache.parquet.hadoop.ParquetOutputFormat
createEncryptionProperties, getAdaptiveBloomFilterEnabled, getBlockSize, getBlockSize, getBloomFilterEnabled, getBloomFilterMaxBytes, getByteStreamSplitEnabled, getCompression, getCompression, getDictionaryPageSize, getDictionaryPageSize, getEnableDictionary, getEnableDictionary, getEstimatePageSizeCheck, getJobSummaryLevel, getLongBlockSize, getMaxRowCountForPageSizeCheck, getMemoryManager, getMinRowCountForPageSizeCheck, getOutputCommitter, getPageSize, getPageSize, getPageWriteChecksumEnabled, getRecordWriter, getRecordWriter, getRecordWriter, getRecordWriter, getRecordWriter, getRecordWriter, getSizeStatisticsEnabled, getSizeStatisticsEnabled, getStatisticsEnabled, getStatisticsEnabled, getValidation, getValidation, getValueCountThreshold, getWriterVersion, getWriteSupport, getWriteSupportClass, isCompressionSet, isCompressionSet, setBlockRowCountLimit, setBlockRowCountLimit, setBlockSize, setColumnCompression, setColumnCompressionLevel, setColumnIndexTruncateLength, setColumnIndexTruncateLength, setCompression, setDictionaryPageSize, setEnableDictionary, setMaxPaddingSize, setMaxPaddingSize, setPageRowCountLimit, setPageRowCountLimit, setPageSize, setPageWriteChecksumEnabled, setPageWriteChecksumEnabled, setSizeStatisticsEnabled, setSizeStatisticsEnabled, setStatisticsEnabled, setStatisticsEnabled, setStatisticsTruncateLength, setValidation, setValidation, setWriteSupportClass, setWriteSupportClassMethods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
-
Constructor Details
-
ExampleOutputFormat
public ExampleOutputFormat()
-
-
Method Details
-
setSchema
public static void setSchema(org.apache.hadoop.mapreduce.Job job, org.apache.parquet.schema.MessageType schema) set the schema being written to the job conf- Parameters:
job- a jobschema- the schema of the data
-
getSchema
public static org.apache.parquet.schema.MessageType getSchema(org.apache.hadoop.mapreduce.Job job) retrieve the schema from the conf- Parameters:
job- a job- Returns:
- the schema
-