public abstract class IndexNameFormatter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexNameFormatter.Builder |
Constructor and Description |
---|
IndexNameFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
formatType(String type) |
List<String> |
formatTypeAndRange(String type,
long beginMillis,
long endMillis)
Returns a set of index patterns that represent the range provided.
|
String |
formatTypeAndTimestamp(String type,
long timestampMillis) |
abstract String |
index() |
static IndexNameFormatter.Builder |
newBuilder() |
long |
parseDate(String timestamp) |
abstract IndexNameFormatter.Builder |
toBuilder() |
public static IndexNameFormatter.Builder newBuilder()
public abstract IndexNameFormatter.Builder toBuilder()
public abstract String index()
public List<String> formatTypeAndRange(@Nullable String type, long beginMillis, long endMillis)
For example, if beginMillis
is 2016-11-30 and endMillis
is 2017-01-02, the
result will be 2016-11-30, 2016-12-*, 2017-01-01 and 2017-01-02.
public String formatTypeAndTimestamp(@Nullable String type, long timestampMillis)
public long parseDate(String timestamp)
Copyright © 2015–2018 OpenZipkin. All rights reserved.