public class ReadonlyTableFile extends SequenceTSData implements ColumnMajorTSData
CollectHistory.ApplyExpressions, CollectHistory.NamedEvaluation| Constructor and Description |
|---|
ReadonlyTableFile(GCCloseable<FileChannel> file) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(TimeSeriesCollection tsv) |
ColumnMajorTSData |
asColumnMajorTSData()
Returns the data in column major format.
|
boolean |
canAddSingleRecord()
Returns true if the file is suitable for adding single records at a time.
|
Optional<GCCloseable<FileChannel>> |
getFileChannel()
Return the file channel used to read this file, if it is uses a file
descriptor.
|
Set<GroupName> |
getGroupNames()
Retrieve all group names covered in this.
|
Collection<org.joda.time.DateTime> |
getGroupTimestamps(GroupName group)
Retrieve all timestamps at which this group exists.
|
short |
getMajor()
Returns the major version of the TSData file.
|
Set<MetricName> |
getMetricNames(GroupName group)
Retrieve all metric names in the specific group.
|
Map<org.joda.time.DateTime,MetricValue> |
getMetricValues(GroupName group,
MetricName metric)
Retrieve all metric values, mapped by timestamp.
|
short |
getMinor()
Returns the minor version of the TSData file.
|
com.groupon.lex.metrics.lib.sequence.ObjectSequence<TimeSeriesCollection> |
getSequence() |
Collection<org.joda.time.DateTime> |
getTimestamps()
Retrieve all timestamps covered in this.
|
boolean |
isOptimized()
Returns true if the file is optimized for access by (GroupPath, Tags,
MetricName) tuple.
|
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, waitaddAll, clear, getBegin, getEnd, getFileSize, readonly, remove, removeAll, removeIf, retainAllequals, hashCodeaddAll, evaluate, evaluate, evaluate, getContext, getContext, getContext, stream, stream, stream, streamGrouppublic ReadonlyTableFile(GCCloseable<FileChannel> file) throws IOException, org.acplt.oncrpc.OncRpcException
IOExceptionorg.acplt.oncrpc.OncRpcExceptionpublic boolean add(TimeSeriesCollection tsv)
add in interface CollectHistoryadd in interface TSDataadd in interface Collection<TimeSeriesCollection>public com.groupon.lex.metrics.lib.sequence.ObjectSequence<TimeSeriesCollection> getSequence()
getSequence in class SequenceTSDatapublic short getMajor()
TSDatapublic short getMinor()
TSDatapublic boolean canAddSingleRecord()
TSDatacanAddSingleRecord in interface TSDatapublic boolean isOptimized()
TSDataisOptimized in interface TSDatapublic Optional<GCCloseable<FileChannel>> getFileChannel()
TSDatagetFileChannel in interface TSDatapublic Collection<org.joda.time.DateTime> getTimestamps()
ColumnMajorTSDatagetTimestamps in interface ColumnMajorTSDatapublic Set<GroupName> getGroupNames()
ColumnMajorTSDatagetGroupNames in interface ColumnMajorTSDatapublic Collection<org.joda.time.DateTime> getGroupTimestamps(GroupName group)
ColumnMajorTSDatagetGroupTimestamps in interface ColumnMajorTSDatapublic Set<MetricName> getMetricNames(GroupName group)
ColumnMajorTSDatagetMetricNames in interface ColumnMajorTSDatagroup - The group for which to look up metric names.public Map<org.joda.time.DateTime,MetricValue> getMetricValues(GroupName group, MetricName metric)
ColumnMajorTSDatagetMetricValues in interface ColumnMajorTSDatagroup - The group in which to look for values.metric - The metric in the group, for which to retrieve metric
values.public ColumnMajorTSData asColumnMajorTSData()
TSDataasColumnMajorTSData in interface TSDataCopyright © 2017. All rights reserved.