StorageInfo.Builder

  • StorageInfo.Builder is used to build StorageInfo objects.

  • The builder includes methods to set the count of alive documents and namespaces.

  • You can set the size in bytes for the storage information using the builder.

  • The build() method creates the final StorageInfo object.

public static final class StorageInfo.Builder extends Object

Builder for StorageInfo objects.

Public Constructor Summary

Public Method Summary

StorageInfo
build()
Builds a StorageInfo object.
StorageInfo.Builder
setAliveDocumentsCount(int aliveDocumentsCount)
Sets the number of alive documents.
StorageInfo.Builder
setAliveNamespacesCount(int aliveNamespacesCount)
Sets the number of alive namespaces.
StorageInfo.Builder
setSizeBytes(long sizeBytes)
Sets the size in bytes.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public StorageInfo build ()

Builds a StorageInfo object.

public StorageInfo.Builder setAliveDocumentsCount (int aliveDocumentsCount)

Sets the number of alive documents.

public StorageInfo.Builder setAliveNamespacesCount (int aliveNamespacesCount)

Sets the number of alive namespaces.

public StorageInfo.Builder setSizeBytes (long sizeBytes)

Sets the size in bytes.