public static class SortedKeyValueFile.Writer.Options extends Object
Constructor and Description |
---|
SortedKeyValueFile.Writer.Options() |
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(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(GenericData model)
public GenericData getDataModel()
public SortedKeyValueFile.Writer.Options withCodec(String codec)
public SortedKeyValueFile.Writer.Options withCodec(CodecFactory codec)
public CodecFactory getCodec()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.