public class TSDataFileChain extends SequenceTSData
| Modifier and Type | Class and Description |
|---|---|
class |
TSDataFileChain.BatchAdd |
static class |
TSDataFileChain.Key
Saved metadata of a single file, used to identify the file and (re)open
it.
|
CollectHistory.ApplyExpressions, CollectHistory.NamedEvaluation| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_FILERECORDS |
static long |
MAX_FILESIZE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(TimeSeriesCollection e) |
boolean |
addAll(Collection<? extends TimeSeriesCollection> e) |
TSDataFileChain.BatchAdd |
batchAdd() |
boolean |
canAddSingleRecord()
Returns true if the file is suitable for adding single records at a time.
|
void |
delete(TSDataFileChain.Key key)
Removes the file associated with the given key.
|
org.joda.time.DateTime |
getBegin()
Get the lowest timestamp covered by this TSData series.
|
org.joda.time.DateTime |
getEnd()
Get the highest timestamp covered by this TSData series.
|
Optional<GCCloseable<FileChannel>> |
getFileChannel()
Return the file channel used to read this file, if it is uses a file
descriptor.
|
long |
getFileSize()
Retrieve the filesize used by the TSData.
|
Set<TSDataFileChain.Key> |
getKeys()
Retrieves keys (file metadata) for all files in this chain.
|
short |
getMajor()
Returns the major version of the TSData file.
|
short |
getMinor()
Returns the minor version of the TSData file.
|
Collection<SequenceTSData> |
getRawCollections() |
com.groupon.lex.metrics.lib.sequence.ObjectSequence<TimeSeriesCollection> |
getSequence() |
boolean |
hasPendingTasks()
Tests if there are any pending tasks to be completed.
|
boolean |
isOptimized()
Returns true if the file is optimized for access by (GroupPath, Tags,
MetricName) tuple.
|
static TSDataFileChain |
openDir(Path dir) |
static TSDataFileChain |
openDir(Path dir,
long max_filesize) |
static TSDataFileChain |
openDir(TSDataScanDir scandir) |
static TSDataFileChain |
openDir(TSDataScanDir scandir,
long max_filesize) |
static Optional<TSDataFileChain> |
openDirExisting(Path dir) |
static Optional<TSDataFileChain> |
openDirExisting(Path dir,
long max_filesize) |
static Optional<TSDataFileChain> |
openDirExisting(TSDataScanDir scandir) |
static Optional<TSDataFileChain> |
openDirExisting(TSDataScanDir scandir,
long max_filesize) |
CompletableFuture<?> |
optimizeOldFiles()
Start optimization of old files.
|
void |
waitPendingTasks() |
contains, containsAll, getAppendCompression, getOptimizedCompression, isEmpty, iterator, parallelStream, setAppendCompression, setOptimizedCompression, size, spliterator, stream, stream, stream, streamReversed, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasColumnMajorTSData, clear, readonly, remove, removeAll, removeIf, retainAllequals, hashCodeaddAll, evaluate, evaluate, evaluate, getContext, getContext, getContext, stream, stream, stream, streamGrouppublic static long MAX_FILESIZE
public static int MAX_FILERECORDS
public boolean hasPendingTasks()
public void waitPendingTasks()
public static Optional<TSDataFileChain> openDirExisting(@NonNull TSDataScanDir scandir) throws IOException
IOExceptionpublic static Optional<TSDataFileChain> openDirExisting(@NonNull TSDataScanDir scandir, long max_filesize) throws IOException
IOExceptionpublic static TSDataFileChain openDir(@NonNull TSDataScanDir scandir) throws IOException
IOExceptionpublic static TSDataFileChain openDir(@NonNull TSDataScanDir scandir, long max_filesize) throws IOException
IOExceptionpublic static Optional<TSDataFileChain> openDirExisting(@NonNull Path dir) throws IOException
IOExceptionpublic static Optional<TSDataFileChain> openDirExisting(@NonNull Path dir, long max_filesize) throws IOException
IOExceptionpublic static TSDataFileChain openDir(@NonNull Path dir) throws IOException
IOExceptionpublic static TSDataFileChain openDir(@NonNull Path dir, long max_filesize) throws IOException
IOExceptionpublic com.groupon.lex.metrics.lib.sequence.ObjectSequence<TimeSeriesCollection> getSequence()
getSequence in class SequenceTSDatapublic boolean canAddSingleRecord()
TSDatapublic boolean isOptimized()
TSDatapublic long getFileSize()
TSDatapublic org.joda.time.DateTime getBegin()
TSDatapublic org.joda.time.DateTime getEnd()
TSDatapublic short getMajor()
TSDatapublic short getMinor()
TSDatapublic CompletableFuture<?> optimizeOldFiles()
public boolean add(@NonNull
TimeSeriesCollection e)
public boolean addAll(@NonNull
Collection<? extends TimeSeriesCollection> e)
public Set<TSDataFileChain.Key> getKeys()
public void delete(@NonNull
TSDataFileChain.Key key)
public Collection<SequenceTSData> getRawCollections()
public Optional<GCCloseable<FileChannel>> getFileChannel()
TSDatapublic TSDataFileChain.BatchAdd batchAdd()
Copyright © 2017. All rights reserved.