@Internal public class CustomFormatDescriptor extends FormatDescriptor
Constructor and Description |
---|
CustomFormatDescriptor(String type,
int version)
Constructs a
CustomFormatDescriptor . |
Modifier and Type | Method and Description |
---|---|
CustomFormatDescriptor |
properties(Map<String,String> properties)
Adds a set of properties for the format.
|
CustomFormatDescriptor |
property(String key,
String value)
Adds a configuration property for the format.
|
protected Map<String,String> |
toFormatProperties()
Converts this descriptor into a set of format properties.
|
toProperties
toString
public CustomFormatDescriptor(String type, int version)
CustomFormatDescriptor
.type
- String that identifies this format.version
- Property version for backwards compatibility.public CustomFormatDescriptor property(String key, String value)
key
- The property key to be set.value
- The property value to be set.public CustomFormatDescriptor properties(Map<String,String> properties)
properties
- The properties to add.protected Map<String,String> toFormatProperties()
FormatDescriptor
FormatDescriptorValidator.FORMAT
.toFormatProperties
in class FormatDescriptor
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.