public class ImmutableDruidDataSource extends Object
DataSegment objects), belonging to a particular data
source.- a mutable counterpart of this class| Constructor and Description |
|---|
ImmutableDruidDataSource(String name,
Map<String,String> properties,
Collection<DataSegment> segments) |
ImmutableDruidDataSource(String name,
Map<String,String> properties,
Map<SegmentId,DataSegment> idToSegments)
Concurrency: idToSegments argument might be a
ConcurrentMap that is being updated
concurrently while this constructor is executed. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
ImmutableDruidDataSource should be considered a container, not a data class.
|
boolean |
equalsForTesting(Object o)
This method should only be used in tests.
|
String |
getName() |
Map<String,String> |
getProperties() |
DataSegment |
getSegment(SegmentId segmentId) |
Collection<DataSegment> |
getSegments() |
long |
getTotalSizeOfSegments()
Returns the sum of the
sizes of all segments in this ImmutableDruidDataSource. |
int |
hashCode()
ImmutableDruidDataSource should be considered a container, not a data class.
|
String |
toString() |
public ImmutableDruidDataSource(String name, Map<String,String> properties, Map<SegmentId,DataSegment> idToSegments)
ConcurrentMap that is being updated
concurrently while this constructor is executed.public ImmutableDruidDataSource(String name, Map<String,String> properties, Collection<DataSegment> segments)
public String getName()
public Collection<DataSegment> getSegments()
public DataSegment getSegment(SegmentId segmentId)
public long getTotalSizeOfSegments()
sizes of all segments in this ImmutableDruidDataSource.public boolean equals(Object o)
public int hashCode()
public boolean equalsForTesting(Object o)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.