public static class SortedKeyValueFile.Writer.Options extends Object
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
org.apache.avro.file.CodecFactory |
getCodec()
Return the compression codec.
|
Configuration |
getConfiguration()
Gets the configuration.
|
org.apache.avro.generic.GenericData |
getDataModel()
Return the data model.
|
int |
getIndexInterval()
Gets the index interval.
|
org.apache.avro.Schema |
getKeySchema()
Gets the key schema.
|
Path |
getPath()
Gets the output path.
|
org.apache.avro.Schema |
getValueSchema()
Gets the value schema.
|
SortedKeyValueFile.Writer.Options |
withCodec(org.apache.avro.file.CodecFactory codec)
Set the compression codec.
|
SortedKeyValueFile.Writer.Options |
withCodec(String codec)
Set the compression codec.
|
SortedKeyValueFile.Writer.Options |
withConfiguration(Configuration conf)
Sets the configuration.
|
SortedKeyValueFile.Writer.Options |
withDataModel(org.apache.avro.generic.GenericData model)
Set the data model.
|
SortedKeyValueFile.Writer.Options |
withIndexInterval(int indexInterval)
Sets the index interval.
|
SortedKeyValueFile.Writer.Options |
withKeySchema(org.apache.avro.Schema keySchema)
Sets the key schema.
|
SortedKeyValueFile.Writer.Options |
withPath(Path path)
Sets the output path.
|
SortedKeyValueFile.Writer.Options |
withValueSchema(org.apache.avro.Schema valueSchema)
Sets the value schema.
|
public SortedKeyValueFile.Writer.Options withKeySchema(org.apache.avro.Schema keySchema)
keySchema
- The key schema.public org.apache.avro.Schema getKeySchema()
public SortedKeyValueFile.Writer.Options withValueSchema(org.apache.avro.Schema valueSchema)
valueSchema
- The value schema.public org.apache.avro.Schema getValueSchema()
public SortedKeyValueFile.Writer.Options withConfiguration(Configuration conf)
conf
- The configuration.public Configuration getConfiguration()
public SortedKeyValueFile.Writer.Options withPath(Path path)
path
- The output path.public 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(org.apache.avro.generic.GenericData model)
public org.apache.avro.generic.GenericData getDataModel()
public SortedKeyValueFile.Writer.Options withCodec(String codec)
public SortedKeyValueFile.Writer.Options withCodec(org.apache.avro.file.CodecFactory codec)
public org.apache.avro.file.CodecFactory getCodec()
Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.