@PublicEvolving public class Metadata extends Object implements Descriptor
Constructor and Description |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
Metadata |
comment(String comment)
Sets a comment.
|
Metadata |
creationTime(long time)
Sets a creation time.
|
Metadata |
lastAccessTime(long time)
Sets a last access time.
|
Map<String,String> |
toProperties()
Converts this descriptor into a set of properties.
|
public Metadata comment(String comment)
comment
- the descriptionpublic Metadata creationTime(long time)
time
- UTC milliseconds timestamppublic Metadata lastAccessTime(long time)
time
- UTC milliseconds timestamppublic final Map<String,String> toProperties()
toProperties
in interface Descriptor
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.