Package com.hazelcast.config
Class BTreeIndexConfig
java.lang.Object
com.hazelcast.config.BTreeIndexConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
Configuration options specific for B-Tree indexes.
- Since:
- 5.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns type identifier for this class.int
Returns DataSerializableFactory factory ID for this class.Returns memory tier configuration for this index.Returns the page size of B-Tree index.int
hashCode()
void
Reads fields from the input streamsetMemoryTierConfig
(MemoryTierConfig memoryTierConfig) Sets memory tier configuration for this index to given configuration.setPageSize
(Capacity pageSize) Sets index page size to given non-negative value.toString()
void
Writes object fields to output stream
-
Field Details
-
DEFAULT_PAGE_SIZE
Default value of page size for B-Trees.
-
-
Constructor Details
-
BTreeIndexConfig
public BTreeIndexConfig() -
BTreeIndexConfig
-
-
Method Details
-
getPageSize
Returns the page size of B-Tree index.- Returns:
- index page size.
-
setPageSize
Sets index page size to given non-negative value.- Parameters:
pageSize
- page size of the index
-
getMemoryTierConfig
Returns memory tier configuration for this index.- Returns:
- memory tier configuration for this index.
-
setMemoryTierConfig
Sets memory tier configuration for this index to given configuration.- Parameters:
memoryTierConfig
- new memory tier configuration to be set.
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
equals
-
hashCode
public int hashCode() -
toString
-