Package io.trino.execution.scheduler
Class NetworkLocation
- java.lang.Object
-
- io.trino.execution.scheduler.NetworkLocation
-
public final class NetworkLocation extends Object
Represents a location in the network topology. Locations are assumed to be hierarchical and all worker nodes and split locations should be at the same level of the hierarchy.
-
-
Field Summary
Fields Modifier and Type Field Description static NetworkLocationROOT_LOCATION
-
Constructor Summary
Constructors Constructor Description NetworkLocation(String... segments)NetworkLocation(Collection<String> segments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<String>getSegments()inthashCode()NetworkLocationsubLocation(int start, int end)StringtoString()
-
-
-
Field Detail
-
ROOT_LOCATION
public static final NetworkLocation ROOT_LOCATION
-
-
Constructor Detail
-
NetworkLocation
public NetworkLocation(String... segments)
-
NetworkLocation
public NetworkLocation(Collection<String> segments)
-
-
Method Detail
-
subLocation
public NetworkLocation subLocation(int start, int end)
-
-