public class BTreeIndexConfig extends Object implements IdentifiedDataSerializable
Modifier and Type | Field and Description |
---|---|
static Capacity |
DEFAULT_PAGE_SIZE
Default value of page size for B-Trees.
|
Constructor and Description |
---|
BTreeIndexConfig() |
BTreeIndexConfig(BTreeIndexConfig other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
MemoryTierConfig |
getMemoryTierConfig()
Returns memory tier configuration for this index.
|
Capacity |
getPageSize()
Returns the page size of B-Tree index.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
BTreeIndexConfig |
setMemoryTierConfig(MemoryTierConfig memoryTierConfig)
Sets memory tier configuration for this index to given configuration.
|
BTreeIndexConfig |
setPageSize(Capacity pageSize)
Sets index page size to given non-negative value.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final Capacity DEFAULT_PAGE_SIZE
public BTreeIndexConfig()
public BTreeIndexConfig(BTreeIndexConfig other)
public Capacity getPageSize()
public BTreeIndexConfig setPageSize(Capacity pageSize)
pageSize
- page size of the index@Nonnull public MemoryTierConfig getMemoryTierConfig()
public BTreeIndexConfig setMemoryTierConfig(MemoryTierConfig memoryTierConfig)
memoryTierConfig
- new memory tier configuration to be set.public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2024 Hazelcast, Inc.. All rights reserved.