public class ValuePageWriter extends Object
| Constructor and Description |
|---|
ValuePageWriter(Encoder valueEncoder,
ICompressor compressor,
TSDataType dataType) |
| 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() |
int |
getSize() |
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(TSDataType dataType)
reset this page
|
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,
boolean isNull)
write a time value pair into encoder
|
void |
write(long time,
boolean value,
boolean isNull)
write a time value pair into encoder
|
void |
write(long time,
double value,
boolean isNull)
write a time value pair into encoder
|
void |
write(long time,
float value,
boolean isNull)
write a time value pair into encoder
|
void |
write(long time,
int value,
boolean isNull)
write a time value pair into encoder
|
void |
write(long time,
long value,
boolean isNull)
write a time value pair into encoder
|
void |
write(long time,
short value,
boolean isNull)
write a time value pair into encoder
|
int |
writeEmptyPageIntoBuff(PublicBAOS pageBuffer) |
int |
writePageHeaderAndDataIntoBuff(PublicBAOS pageBuffer,
boolean first)
write the page header and data into the PageWriter's output stream.
|
public ValuePageWriter(Encoder valueEncoder, ICompressor compressor, TSDataType dataType)
public void write(long time,
boolean value,
boolean isNull)
public void write(long time,
short value,
boolean isNull)
public void write(long time,
int value,
boolean isNull)
public void write(long time,
long value,
boolean isNull)
public void write(long time,
float value,
boolean isNull)
public void write(long time,
double value,
boolean isNull)
public void write(long time,
Binary value,
boolean isNull)
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 writeEmptyPageIntoBuff(PublicBAOS pageBuffer)
public int writePageHeaderAndDataIntoBuff(PublicBAOS pageBuffer, boolean first) throws IOException
IOExceptionpublic long estimateMaxMemSize()
public void reset(TSDataType dataType)
public void setValueEncoder(Encoder encoder)
public void initStatistics(TSDataType dataType)
public long getPointNumber()
public Statistics<? extends Serializable> getStatistics()
public int getSize()
Copyright © 2022 The Apache Software Foundation. All rights reserved.