public final class ExtSSTRecord extends ContinuableRecord
This record is used for a quick lookup into the SST record. This record breaks the SST table into a set of buckets. The offsets to these buckets within the SST record are kept as well as the position relative to the start of the SST record.
(扩展静态字符串表 (0x00FF) 此记录用于快速查找 SST 记录。该记录将 SST 表分成一组桶。保留 SST 记录中这些桶的偏移量以及相对于 SST 记录开始的位置。)Modifier and Type | Class and Description |
---|---|
static class |
ExtSSTRecord.InfoSubRecord |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUCKET_SIZE |
static int |
MAX_BUCKETS |
static short |
sid |
Constructor and Description |
---|
ExtSSTRecord() |
ExtSSTRecord(ExtSSTRecord other) |
ExtSSTRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
ExtSSTRecord |
copy() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
static int |
getNumberOfInfoRecsForStrings(int numStrings) |
static int |
getRecordSizeForStrings(int numStrings)
Given a number of strings (in the sst), returns the size of the extsst record
(给定多个字符串(在 sst 中),返回 extsst 记录的大小)
|
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
void |
serialize(ContinuableRecordOutput out)
Serializes this record's content to the supplied data output.
(将此记录的内容序列化为提供的数据输出。)
|
void |
setBucketOffsets(int[] bucketAbsoluteOffsets, int[] bucketRelativeOffsets) |
void |
setNumStringsPerBucket(short numStrings) |
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public static final int DEFAULT_BUCKET_SIZE
public static final int MAX_BUCKETS
public ExtSSTRecord()
public ExtSSTRecord(ExtSSTRecord other)
public ExtSSTRecord(RecordInputStream in)
public void setNumStringsPerBucket(short numStrings)
public void serialize(ContinuableRecordOutput out)
ContinuableRecord
The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so only BIFF data should be written by this method. Simple data types can be written with the standard LittleEndianOutput
methods. Methods from ContinuableRecordOutput
can be used to serialize strings (with ContinueRecord
s being written as required). If necessary, implementors can explicitly start ContinueRecord
s (regardless of the amount of remaining space).
serialize
in class
ContinuableRecord
(在类 ContinuableRecord 中序列化)
out
- a data output stream
(out - 数据输出流)
public static int getNumberOfInfoRecsForStrings(int numStrings)
public static int getRecordSizeForStrings(int numStrings)
numStrings
- the number of strings
(numStrings - 字符串的数量)
public short getSid()
Record
public void setBucketOffsets(int[] bucketAbsoluteOffsets, int[] bucketRelativeOffsets)
public ExtSSTRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
Record
(复制课堂记录)
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in class
Record
(类 Record 中的 getGenericRecordType)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.