public class PageHeader extends Object
| Constructor and Description |
|---|
PageHeader(int uncompressedSize,
int compressedSize,
Statistics<? extends Serializable> statistics) |
| Modifier and Type | Method and Description |
|---|---|
static PageHeader |
deserializeFrom(ByteBuffer buffer,
Statistics<? extends Serializable> chunkStatistic) |
static PageHeader |
deserializeFrom(ByteBuffer buffer,
TSDataType dataType) |
static PageHeader |
deserializeFrom(InputStream inputStream,
TSDataType dataType,
boolean hasStatistic) |
static int |
estimateMaxPageHeaderSizeWithoutStatistics()
max page header size without statistics
|
int |
getCompressedSize() |
long |
getEndTime() |
long |
getNumOfValues() |
int |
getSerializedPageSize()
max page header size without statistics
|
long |
getStartTime() |
Statistics<? extends Serializable> |
getStatistics() |
int |
getUncompressedSize() |
boolean |
isModified() |
void |
serializeTo(OutputStream outputStream) |
void |
setCompressedSize(int compressedSize) |
void |
setModified(boolean modified) |
void |
setUncompressedSize(int uncompressedSize) |
String |
toString() |
public PageHeader(int uncompressedSize,
int compressedSize,
Statistics<? extends Serializable> statistics)
public static int estimateMaxPageHeaderSizeWithoutStatistics()
public static PageHeader deserializeFrom(InputStream inputStream, TSDataType dataType, boolean hasStatistic) throws IOException
IOExceptionpublic static PageHeader deserializeFrom(ByteBuffer buffer, TSDataType dataType)
public static PageHeader deserializeFrom(ByteBuffer buffer, Statistics<? extends Serializable> chunkStatistic)
public int getUncompressedSize()
public void setUncompressedSize(int uncompressedSize)
public int getCompressedSize()
public void setCompressedSize(int compressedSize)
public long getNumOfValues()
public Statistics<? extends Serializable> getStatistics()
public long getEndTime()
public long getStartTime()
public void serializeTo(OutputStream outputStream) throws IOException
IOExceptionpublic boolean isModified()
public void setModified(boolean modified)
public int getSerializedPageSize()
Copyright © 2022 The Apache Software Foundation. All rights reserved.