Search in sources :

Example 1 with AttributeIndexFactory

use of io.pravega.segmentstore.server.attributes.AttributeIndexFactory in project pravega by pravega.

the class ServiceBuilder method createSegmentContainerFactory.

protected SegmentContainerFactory createSegmentContainerFactory() {
    ReadIndexFactory readIndexFactory = getSingleton(this.readIndexFactory, this::createReadIndexFactory);
    AttributeIndexFactory attributeIndexFactory = getSingleton(this.attributeIndexFactory, this::createAttributeIndexFactory);
    StorageFactory storageFactory = createStorageFactory();
    OperationLogFactory operationLogFactory = getSingleton(this.operationLogFactory, this::createOperationLogFactory);
    WriterFactory writerFactory = getSingleton(this.writerFactory, this::createWriterFactory);
    ContainerConfig containerConfig = this.serviceBuilderConfig.getConfig(ContainerConfig::builder);
    return new StreamSegmentContainerFactory(containerConfig, operationLogFactory, readIndexFactory, attributeIndexFactory, writerFactory, storageFactory, this::createContainerExtensions, this.coreExecutor);
}
Also used : ContainerConfig(io.pravega.segmentstore.server.containers.ContainerConfig) ReadIndexFactory(io.pravega.segmentstore.server.ReadIndexFactory) ContainerReadIndexFactory(io.pravega.segmentstore.server.reading.ContainerReadIndexFactory) InMemoryStorageFactory(io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory) StorageFactory(io.pravega.segmentstore.storage.StorageFactory) StreamSegmentContainerFactory(io.pravega.segmentstore.server.containers.StreamSegmentContainerFactory) StorageWriterFactory(io.pravega.segmentstore.server.writer.StorageWriterFactory) WriterFactory(io.pravega.segmentstore.server.WriterFactory) AttributeIndexFactory(io.pravega.segmentstore.server.attributes.AttributeIndexFactory) OperationLogFactory(io.pravega.segmentstore.server.OperationLogFactory)

Aggregations

OperationLogFactory (io.pravega.segmentstore.server.OperationLogFactory)1 ReadIndexFactory (io.pravega.segmentstore.server.ReadIndexFactory)1 WriterFactory (io.pravega.segmentstore.server.WriterFactory)1 AttributeIndexFactory (io.pravega.segmentstore.server.attributes.AttributeIndexFactory)1 ContainerConfig (io.pravega.segmentstore.server.containers.ContainerConfig)1 StreamSegmentContainerFactory (io.pravega.segmentstore.server.containers.StreamSegmentContainerFactory)1 ContainerReadIndexFactory (io.pravega.segmentstore.server.reading.ContainerReadIndexFactory)1 StorageWriterFactory (io.pravega.segmentstore.server.writer.StorageWriterFactory)1 StorageFactory (io.pravega.segmentstore.storage.StorageFactory)1 InMemoryStorageFactory (io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory)1