public class SegmentInfo extends Object
Constructor and Description |
---|
SegmentInfo(io.druid.timeline.DataSegment segment)
Given a druid data segment constructs an object to hold the information of this partition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<String> |
getColumnNames()
Getter for list of dimension and metric names.
|
String |
getDataSource()
Getter for the datasource of this segment partition.
|
List<String> |
getDimensions()
Getter for the dimensions in this segment.
|
String |
getIdentifier()
Getter for the identifier of this segment partition.
|
org.joda.time.Interval |
getInterval()
Getter for the interval that this segment partition is referring to.
|
List<String> |
getMetrics()
Getter for the metrics in this segment.
|
NumberedShardSpec |
getShardSpec()
Getter for the shard spec of this segment partition.
|
long |
getSize()
Getter for the size of this segment partition.
|
String |
getVersion()
Getter for the version of this segment partition.
|
int |
hashCode() |
String |
toString() |
public SegmentInfo(io.druid.timeline.DataSegment segment)
segment
- The druid data segments that corresponds to a specific partition of a druid segment.public String getDataSource()
public org.joda.time.Interval getInterval()
public List<String> getDimensions()
public List<String> getMetrics()
public List<String> getColumnNames()
public String getVersion()
public NumberedShardSpec getShardSpec()
public long getSize()
public String getIdentifier()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.