public static enum KeyGenerator.Predefined extends Enum<KeyGenerator.Predefined> implements KeyGenerator
KeyGenerator.Predefined| Enum Constant and Description |
|---|
BY_DATE
Items stored in a hierarchy structured by date: /yyyy/MM/dd/item
|
BY_DATETIME
Deprecated.
|
BY_HOUR
Items stored in a hierarchy structured by date and time: /yyyy/MM/dd/HH/item
|
BY_MINUTE
Items stored in a hierarchy structured by date and time: /yyyy/MM/dd/HH/mm/item
|
BY_SECOND
Items stored in a hierarchy structured by date and time: /yyyy/MM/dd/HH/mm/ss/item
|
PLAIN
All item stored in the bucket (root folder) without hierarchy
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey(String name,
KeyNameProvider keyNameProvider) |
protected abstract String |
tmpl() |
static KeyGenerator.Predefined |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyGenerator |
valueOfIgnoreCase(String s) |
static KeyGenerator.Predefined[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyGenerator.Predefined PLAIN
public static final KeyGenerator.Predefined BY_DATE
public static final KeyGenerator.Predefined BY_HOUR
public static final KeyGenerator.Predefined BY_MINUTE
public static final KeyGenerator.Predefined BY_SECOND
@Deprecated public static final KeyGenerator.Predefined BY_DATETIME
public static KeyGenerator.Predefined[] values()
for (KeyGenerator.Predefined c : KeyGenerator.Predefined.values()) System.out.println(c);
public static KeyGenerator.Predefined valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract String tmpl()
public String getKey(String name, KeyNameProvider keyNameProvider)
getKey in interface KeyGeneratorpublic static KeyGenerator valueOfIgnoreCase(String s)
Copyright © 2013–2017 OSGL (Open Source General Library). All rights reserved.