public class ImportParams
extends java.lang.Object
StoreClient.startImport(ImportParams, io.vertx.core.Handler)| Modifier and Type | Class and Description |
|---|---|
static class |
ImportParams.Compression
A compression method
|
| Constructor and Description |
|---|
ImportParams() |
| Modifier and Type | Method and Description |
|---|---|
ImportParams |
addProperties(java.util.Collection<java.lang.String> properties)
Add items to the collection of properties to attach to the
imported data
|
ImportParams |
addProperties(java.lang.String... properties)
Add items to the collection of properties to attach to the
imported data
|
ImportParams |
addProperty(java.lang.String property)
Add a property to the collection of properties to attach to the
imported data
|
ImportParams |
addTag(java.lang.String tag)
Add a tag to the collection of tags to attach to the imported data
|
ImportParams |
addTags(java.util.Collection<java.lang.String> tags)
Add items to the collection of tags to attach to the imported data
|
ImportParams |
addTags(java.lang.String... tags)
Add items to the collection of tags to attach to the imported data
|
boolean |
equals(java.lang.Object o) |
ImportParams.Compression |
getCompression()
Get the compression method
|
java.lang.String |
getFallbackCRS()
Get the CRS that should be used if the imported file does
not specify one
|
java.lang.String |
getLayer()
Get the layer to import to
|
java.util.Collection<java.lang.String> |
getProperties()
Get the collection of properties to attach to the imported data
|
java.lang.Long |
getSize()
Get the size of data to be sent in bytes.
|
java.util.Collection<java.lang.String> |
getTags()
Get the collection of tags to attach to the imported data
|
int |
hashCode() |
ImportParams |
setCompression(ImportParams.Compression compression)
Set the compression method that is applied to the data that will be
sent to the
WriteStream returned by
StoreClient.startImport(ImportParams, io.vertx.core.Handler). |
ImportParams |
setFallbackCRS(java.lang.String fallbackCRS)
Set the CRS that should be used if the imported file does
not specify one
|
ImportParams |
setLayer(java.lang.String layer)
Set the layer to import to
|
ImportParams |
setProperties(java.util.Collection<java.lang.String> properties)
Set a collection of properties to attach to the imported data
|
ImportParams |
setSize(java.lang.Long size)
Set the size of the data to be sent in bytes.
|
ImportParams |
setTags(java.util.Collection<java.lang.String> tags)
Set a collection of tags to attach to the imported data
|
public ImportParams setLayer(java.lang.String layer)
layer - the layer (may be null if data
should be imported to the root layer)public java.lang.String getLayer()
null if data
should be imported to the root layer)public ImportParams setTags(java.util.Collection<java.lang.String> tags)
tags - the tags (may be null if no tags should
be attached)public ImportParams addTags(java.util.Collection<java.lang.String> tags)
tags - the tags to addpublic ImportParams addTags(java.lang.String... tags)
tags - the tags to addpublic ImportParams addTag(java.lang.String tag)
tag - the tag to addpublic java.util.Collection<java.lang.String> getTags()
null
if no tags will be attached)public ImportParams setProperties(java.util.Collection<java.lang.String> properties)
properties - the properties (may be null if no
properties should be attached)public ImportParams addProperties(java.util.Collection<java.lang.String> properties)
properties - the properties to addpublic ImportParams addProperties(java.lang.String... properties)
properties - the properties to addpublic ImportParams addProperty(java.lang.String property)
property - the property to addpublic java.util.Collection<java.lang.String> getProperties()
null
if no properties will be attached)public ImportParams setSize(java.lang.Long size)
setCompression(Compression)) this is the number
of compressed bytes and not the size of the raw uncompressed data.size - the size of data to be sent in bytes (may be null
if unknown)public java.lang.Long getSize()
setCompression(Compression)) this is the number
of compressed bytes and not the size of the raw uncompressed data.null if unknown)public ImportParams setFallbackCRS(java.lang.String fallbackCRS)
fallbackCRS - the CRS (may be null)public java.lang.String getFallbackCRS()
public ImportParams setCompression(ImportParams.Compression compression)
WriteStream returned by
StoreClient.startImport(ImportParams, io.vertx.core.Handler).
The caller is responsible for compressing the data, for example by
wrapping the WriteStream into a
GzipWriteStream.compression - the compression method (may be null if
no compression should be used)public ImportParams.Compression getCompression()
null)public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object