public class RWListFile extends SequenceTSData
CollectHistory.ApplyExpressions, CollectHistory.NamedEvaluation| Constructor and Description |
|---|
RWListFile(GCCloseable<FileChannel> file,
boolean forWrite) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(TimeSeriesCollection tsc) |
boolean |
addAll(Collection<? extends TimeSeriesCollection> tsc) |
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 RWListFile |
newFile(GCCloseable<FileChannel> file) |
static RWListFile |
newFile(GCCloseable<FileChannel> file,
Compression compression) |
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 RWListFile(@NonNull
GCCloseable<FileChannel> file,
boolean forWrite)
throws IOException,
org.acplt.oncrpc.OncRpcException
IOExceptionorg.acplt.oncrpc.OncRpcExceptionpublic static RWListFile newFile(@NonNull GCCloseable<FileChannel> file) throws IOException
IOExceptionpublic static RWListFile newFile(@NonNull GCCloseable<FileChannel> file, Compression compression) throws IOException
IOExceptionpublic boolean add(TimeSeriesCollection tsc)
public boolean addAll(Collection<? extends TimeSeriesCollection> tsc)
public short getMajor()
TSDatapublic short getMinor()
TSDatapublic Optional<GCCloseable<FileChannel>> getFileChannel()
TSDatapublic 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()
TSDataCopyright © 2017. All rights reserved.