use of com.linkedin.pinot.core.data.manager.offline.SegmentDataManager in project pinot by linkedin.
the class HelixInstanceDataManager method getSegmentMetadata.
@Override
public SegmentMetadata getSegmentMetadata(String table, String segmentName) {
SegmentDataManager segmentDataManager = null;
TableDataManager tableDataManager = _tableDataManagerMap.get(table);
try {
if (tableDataManager != null) {
segmentDataManager = tableDataManager.acquireSegment(segmentName);
if (segmentDataManager != null) {
return segmentDataManager.getSegment().getSegmentMetadata();
}
}
return null;
} finally {
if (segmentDataManager != null) {
tableDataManager.releaseSegment(segmentDataManager);
}
}
}
Aggregations