Class BTreeIndexConfig

    • Field Detail

      • DEFAULT_PAGE_SIZE

        public static final Capacity DEFAULT_PAGE_SIZE
        Default value of page size for B-Trees.
    • Constructor Detail

      • BTreeIndexConfig

        public BTreeIndexConfig()
    • Method Detail

      • getPageSize

        public Capacity getPageSize()
        Returns the page size of B-Tree index.
        Returns:
        index page size.
      • setPageSize

        public BTreeIndexConfig setPageSize​(Capacity pageSize)
        Sets index page size to given non-negative value.
        Parameters:
        pageSize - page size of the index
      • getMemoryTierConfig

        @Nonnull
        public MemoryTierConfig getMemoryTierConfig()
        Returns memory tier configuration for this index.
        Returns:
        memory tier configuration for this index.
      • setMemoryTierConfig

        public BTreeIndexConfig setMemoryTierConfig​(MemoryTierConfig memoryTierConfig)
        Sets memory tier configuration for this index to given configuration.
        Parameters:
        memoryTierConfig - new memory tier configuration to be set.
      • writeData

        public void writeData​(ObjectDataOutput out)
                       throws java.io.IOException
        Description copied from interface: DataSerializable
        Writes object fields to output stream
        Specified by:
        writeData in interface DataSerializable
        Parameters:
        out - output
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
      • readData

        public void readData​(ObjectDataInput in)
                      throws java.io.IOException
        Description copied from interface: DataSerializable
        Reads fields from the input stream
        Specified by:
        readData in interface DataSerializable
        Parameters:
        in - input
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object