public final class UnmappedReadonlyTSDataFile extends SequenceTSData
CollectHistory.ApplyExpressions, CollectHistory.NamedEvaluation| Constructor and Description |
|---|
UnmappedReadonlyTSDataFile(GCCloseable<FileChannel> fd) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(TimeSeriesCollection tsv) |
boolean |
canAddSingleRecord()
Returns true if the file is suitable for adding single records at a time.
|
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.
|
short |
getMajor()
Returns the major version of the TSData file.
|
short |
getMinor()
Returns the minor version of the TSData file.
|
com.groupon.lex.metrics.lib.sequence.ObjectSequence<TimeSeriesCollection> |
getSequence() |
boolean |
isOptimized()
Returns true if the file is optimized for access by (GroupPath, Tags,
MetricName) tuple.
|
static UnmappedReadonlyTSDataFile |
open(Path file) |
contains, containsAll, isEmpty, iterator, parallelStream, size, spliterator, stream, stream, stream, streamReversed, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAll, clear, readonly, remove, removeAll, removeIf, retainAllequals, hashCodeevaluate, evaluate, evaluate, getContext, getContext, getContext, stream, stream, streampublic UnmappedReadonlyTSDataFile(GCCloseable<FileChannel> fd) throws IOException
IOExceptionpublic static UnmappedReadonlyTSDataFile open(Path file) throws IOException
IOExceptionpublic com.groupon.lex.metrics.lib.sequence.ObjectSequence<TimeSeriesCollection> getSequence()
getSequence in class SequenceTSDatapublic org.joda.time.DateTime getBegin()
TSDatapublic org.joda.time.DateTime getEnd()
TSDatapublic short getMajor()
TSDatapublic short getMinor()
TSDatapublic long getFileSize()
TSDatapublic boolean canAddSingleRecord()
TSDatapublic boolean isOptimized()
TSDatapublic boolean add(TimeSeriesCollection tsv)
public Optional<GCCloseable<FileChannel>> getFileChannel()
TSDataCopyright © 2016. All rights reserved.