public static class SortedKeyValueFile.Writer.Options extends Object
| Constructor and Description | 
|---|
Options()  | 
| Modifier and Type | Method and Description | 
|---|---|
CodecFactory | 
getCodec()
Return the compression codec. 
 | 
org.apache.hadoop.conf.Configuration | 
getConfiguration()
Gets the configuration. 
 | 
GenericData | 
getDataModel()
Return the data model. 
 | 
int | 
getIndexInterval()
Gets the index interval. 
 | 
Schema | 
getKeySchema()
Gets the key schema. 
 | 
org.apache.hadoop.fs.Path | 
getPath()
Gets the output path. 
 | 
Schema | 
getValueSchema()
Gets the value schema. 
 | 
SortedKeyValueFile.Writer.Options | 
withCodec(CodecFactory codec)
Set the compression codec. 
 | 
SortedKeyValueFile.Writer.Options | 
withCodec(String codec)
Set the compression codec. 
 | 
SortedKeyValueFile.Writer.Options | 
withConfiguration(org.apache.hadoop.conf.Configuration conf)
Sets the configuration. 
 | 
SortedKeyValueFile.Writer.Options | 
withDataModel(GenericData model)
Set the data model. 
 | 
SortedKeyValueFile.Writer.Options | 
withIndexInterval(int indexInterval)
Sets the index interval. 
 | 
SortedKeyValueFile.Writer.Options | 
withKeySchema(Schema keySchema)
Sets the key schema. 
 | 
SortedKeyValueFile.Writer.Options | 
withPath(org.apache.hadoop.fs.Path path)
Sets the output path. 
 | 
SortedKeyValueFile.Writer.Options | 
withValueSchema(Schema valueSchema)
Sets the value schema. 
 | 
public SortedKeyValueFile.Writer.Options withKeySchema(Schema keySchema)
keySchema - The key schema.public Schema getKeySchema()
public SortedKeyValueFile.Writer.Options withValueSchema(Schema valueSchema)
valueSchema - The value schema.public Schema getValueSchema()
public SortedKeyValueFile.Writer.Options withConfiguration(org.apache.hadoop.conf.Configuration conf)
conf - The configuration.public org.apache.hadoop.conf.Configuration getConfiguration()
public SortedKeyValueFile.Writer.Options withPath(org.apache.hadoop.fs.Path path)
path - The output path.public org.apache.hadoop.fs.Path getPath()
public SortedKeyValueFile.Writer.Options withIndexInterval(int indexInterval)
If the index inverval is N, then every N records will be indexed into the index file.
indexInterval - The index interval.public int getIndexInterval()
public SortedKeyValueFile.Writer.Options withDataModel(GenericData model)
public GenericData getDataModel()
public SortedKeyValueFile.Writer.Options withCodec(String codec)
public SortedKeyValueFile.Writer.Options withCodec(CodecFactory codec)
public CodecFactory getCodec()
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.