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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns type identifier for this class.intReturns DataSerializableFactory factory ID for this class.Returns memory tier configuration for this index.Returns the page size of B-Tree index.inthashCode()voidReads 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()voidWrites 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:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
equals
-
hashCode
public int hashCode() -
toString
-