public class TimePageWriter extends Object
| Constructor and Description |
|---|
TimePageWriter(Encoder timeEncoder,
ICompressor compressor) |
| Modifier and Type | Method and Description |
|---|---|
long |
estimateMaxMemSize()
calculate max possible memory size it occupies, including time outputStream and value
outputStream, because size outputStream is never used until flushing.
|
long |
getPointNumber() |
TimeStatistics |
getStatistics() |
ByteBuffer |
getUncompressedBytes()
getUncompressedBytes return data what it has been written in form of
size of time list, time list, value list |
void |
initStatistics() |
void |
reset()
reset this page
|
void |
setTimeEncoder(Encoder encoder) |
void |
write(long time)
write a time into encoder
|
void |
write(long[] timestamps,
int batchSize)
write time series into encoder
|
int |
writePageHeaderAndDataIntoBuff(PublicBAOS pageBuffer,
boolean first)
write the page header and data into the PageWriter's output stream.
|
public TimePageWriter(Encoder timeEncoder, ICompressor compressor)
public void write(long time)
public void write(long[] timestamps,
int batchSize)
public ByteBuffer getUncompressedBytes() throws IOException
size of time list, time list, value listIOExceptionpublic int writePageHeaderAndDataIntoBuff(PublicBAOS pageBuffer, boolean first) throws IOException
IOExceptionpublic long estimateMaxMemSize()
public void reset()
public void setTimeEncoder(Encoder encoder)
public void initStatistics()
public long getPointNumber()
public TimeStatistics getStatistics()
Copyright © 2022 The Apache Software Foundation. All rights reserved.