public class TimeRoutedAlias extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_COLLECTION_PREFIX |
static List<String> |
OPTIONAL_ROUTER_PARAMS
Optional parameters for creating a routed alias excluding parameters for collection creation.
|
static List<String> |
REQUIRED_ROUTER_PARAMS
Parameters required for creating a routed alias
|
static String |
ROUTED_ALIAS_NAME_CORE_PROP |
static String |
ROUTER_AUTO_DELETE_AGE |
static String |
ROUTER_FIELD |
static String |
ROUTER_INTERVAL |
static String |
ROUTER_MAX_FUTURE |
static String |
ROUTER_PREFIX |
static String |
ROUTER_START |
static String |
ROUTER_TYPE_NAME |
Constructor and Description |
---|
TimeRoutedAlias(String aliasName,
Map<String,String> aliasMetadata) |
Modifier and Type | Method and Description |
---|---|
Instant |
computeNextCollTimestamp(Instant fromTimestamp)
Computes the timestamp of the next collection given the timestamp of the one before.
|
static String |
formatCollectionNameFromInstant(String aliasName,
Instant timestamp) |
String |
getAliasName() |
String |
getAutoDeleteAgeMath() |
String |
getIntervalMath() |
long |
getMaxFutureMs() |
String |
getRouteField() |
TimeZone |
getTimeZone() |
List<Map.Entry<Instant,String>> |
parseCollections(Aliases aliases,
Supplier<SolrException> aliasNotExist)
Parses the timestamp from the collection list and returns them in reverse sorted order (most recent 1st)
|
static Instant |
parseInstantFromCollectionName(String aliasName,
String collection) |
String |
toString() |
public static final String ROUTER_PREFIX
public static final String ROUTER_TYPE_NAME
public static final String ROUTER_FIELD
public static final String ROUTER_START
public static final String ROUTER_INTERVAL
public static final String ROUTER_MAX_FUTURE
public static final String ROUTER_AUTO_DELETE_AGE
public static final String CREATE_COLLECTION_PREFIX
public static final List<String> REQUIRED_ROUTER_PARAMS
public static final List<String> OPTIONAL_ROUTER_PARAMS
public static final String ROUTED_ALIAS_NAME_CORE_PROP
public static Instant parseInstantFromCollectionName(String aliasName, String collection)
public static String formatCollectionNameFromInstant(String aliasName, Instant timestamp)
public String getAliasName()
public String getRouteField()
public String getIntervalMath()
public long getMaxFutureMs()
public String getAutoDeleteAgeMath()
public TimeZone getTimeZone()
public List<Map.Entry<Instant,String>> parseCollections(Aliases aliases, Supplier<SolrException> aliasNotExist)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.