public class PageWriter extends Object
| Constructor and Description |
|---|
PageWriter() |
PageWriter(IMeasurementSchema measurementSchema) |
| 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() |
Statistics<? extends Serializable> |
getStatistics() |
ByteBuffer |
getUncompressedBytes()
getUncompressedBytes return data what it has been written in form of
size of time list, time list, value list |
void |
initStatistics(TSDataType dataType) |
void |
reset(IMeasurementSchema measurementSchema)
reset this page
|
void |
setTimeEncoder(Encoder encoder) |
void |
setValueEncoder(Encoder encoder) |
void |
write(long[] timestamps,
Binary[] values,
int batchSize)
write time series into encoder
|
void |
write(long[] timestamps,
boolean[] values,
int batchSize)
write time series into encoder
|
void |
write(long[] timestamps,
double[] values,
int batchSize)
write time series into encoder
|
void |
write(long[] timestamps,
float[] values,
int batchSize)
write time series into encoder
|
void |
write(long[] timestamps,
int[] values,
int batchSize)
write time series into encoder
|
void |
write(long[] timestamps,
long[] values,
int batchSize)
write time series into encoder
|
void |
write(long time,
Binary value)
write a time value pair into encoder
|
void |
write(long time,
boolean value)
write a time value pair into encoder
|
void |
write(long time,
double value)
write a time value pair into encoder
|
void |
write(long time,
float value)
write a time value pair into encoder
|
void |
write(long time,
int value)
write a time value pair into encoder
|
void |
write(long time,
long value)
write a time value pair into encoder
|
void |
write(long time,
short value)
write a time value pair into encoder
|
int |
writePageHeaderAndDataIntoBuff(PublicBAOS pageBuffer,
boolean first)
write the page header and data into the PageWriter's output stream.
|
public PageWriter()
public PageWriter(IMeasurementSchema measurementSchema)
public void write(long time,
boolean value)
public void write(long time,
short value)
public void write(long time,
int value)
public void write(long time,
long value)
public void write(long time,
float value)
public void write(long time,
double value)
public void write(long time,
Binary value)
public void write(long[] timestamps,
boolean[] values,
int batchSize)
public void write(long[] timestamps,
int[] values,
int batchSize)
public void write(long[] timestamps,
long[] values,
int batchSize)
public void write(long[] timestamps,
float[] values,
int batchSize)
public void write(long[] timestamps,
double[] values,
int batchSize)
public void write(long[] timestamps,
Binary[] values,
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(IMeasurementSchema measurementSchema)
public void setTimeEncoder(Encoder encoder)
public void setValueEncoder(Encoder encoder)
public void initStatistics(TSDataType dataType)
public long getPointNumber()
public Statistics<? extends Serializable> getStatistics()
Copyright © 2022 The Apache Software Foundation. All rights reserved.