Search in sources :

Example 1 with SimpleSegmentMetadata

use of com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata in project pinot by linkedin.

the class TableViewsTest method addOneSegment.

private void addOneSegment(String tableName) {
    SegmentMetadata metadata = new SimpleSegmentMetadata(tableName);
    pinotHelixResourceManager.addSegment(metadata, "someurl");
}
Also used : SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata) SegmentMetadata(com.linkedin.pinot.common.segment.SegmentMetadata) SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata)

Example 2 with SimpleSegmentMetadata

use of com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata in project pinot by linkedin.

the class ControllerInstanceToggleTest method addOneOfflineSegment.

private void addOneOfflineSegment(String resourceName) {
    final SegmentMetadata segmentMetadata = new SimpleSegmentMetadata(resourceName);
    _pinotResourceManager.addSegment(segmentMetadata, "downloadUrl");
}
Also used : SegmentMetadata(com.linkedin.pinot.common.segment.SegmentMetadata) SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata) SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata)

Example 3 with SimpleSegmentMetadata

use of com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata in project pinot by linkedin.

the class PinotResourceManagerTest method addOneSegment.

private void addOneSegment(String resourceName) {
    final SegmentMetadata segmentMetadata = new SimpleSegmentMetadata(resourceName);
    LOGGER.info("Trying to add IndexSegment : " + segmentMetadata.getName());
    _pinotHelixResourceManager.addSegment(segmentMetadata, "downloadUrl");
}
Also used : SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata) SegmentMetadata(com.linkedin.pinot.common.segment.SegmentMetadata) SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata)

Example 4 with SimpleSegmentMetadata

use of com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata in project pinot by linkedin.

the class ControllerSentinelTestV2 method addOneOfflineSegment.

private void addOneOfflineSegment(String resourceName) {
    final SegmentMetadata segmentMetadata = new SimpleSegmentMetadata(resourceName);
    _pinotResourceManager.addSegment(segmentMetadata, "downloadUrl");
}
Also used : SegmentMetadata(com.linkedin.pinot.common.segment.SegmentMetadata) SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata) SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata)

Example 5 with SimpleSegmentMetadata

use of com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata in project pinot by linkedin.

the class HelixBrokerStarterTest method addOneSegment.

private void addOneSegment(String tableName) {
    final SegmentMetadata segmentMetadata = new SimpleSegmentMetadata(tableName);
    LOGGER.info("Trying to add IndexSegment : " + segmentMetadata.getName());
    _pinotResourceManager.addSegment(segmentMetadata, "http://localhost:something");
}
Also used : SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata) SegmentMetadata(com.linkedin.pinot.common.segment.SegmentMetadata) SimpleSegmentMetadata(com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata)

Aggregations

SegmentMetadata (com.linkedin.pinot.common.segment.SegmentMetadata)7 SimpleSegmentMetadata (com.linkedin.pinot.core.query.utils.SimpleSegmentMetadata)7 File (java.io.File)1 ArrayList (java.util.ArrayList)1 ExternalView (org.apache.helix.model.ExternalView)1 AfterTest (org.testng.annotations.AfterTest)1 BeforeTest (org.testng.annotations.BeforeTest)1 Test (org.testng.annotations.Test)1