Package io.prestosql.plugin.blackhole
Enum BlackHoleSplit
- java.lang.Object
-
- java.lang.Enum<BlackHoleSplit>
-
- io.prestosql.plugin.blackhole.BlackHoleSplit
-
- All Implemented Interfaces:
io.prestosql.spi.connector.ConnectorSplit,java.io.Serializable,java.lang.Comparable<BlackHoleSplit>
public enum BlackHoleSplit extends java.lang.Enum<BlackHoleSplit> implements io.prestosql.spi.connector.ConnectorSplit
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<io.prestosql.spi.HostAddress>getAddresses()java.lang.ObjectgetInfo()booleanisRemotelyAccessible()static BlackHoleSplitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BlackHoleSplit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final BlackHoleSplit INSTANCE
-
-
Method Detail
-
values
public static BlackHoleSplit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlackHoleSplit c : BlackHoleSplit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlackHoleSplit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isRemotelyAccessible
public boolean isRemotelyAccessible()
- Specified by:
isRemotelyAccessiblein interfaceio.prestosql.spi.connector.ConnectorSplit
-
getAddresses
public java.util.List<io.prestosql.spi.HostAddress> getAddresses()
- Specified by:
getAddressesin interfaceio.prestosql.spi.connector.ConnectorSplit
-
getInfo
public java.lang.Object getInfo()
- Specified by:
getInfoin interfaceio.prestosql.spi.connector.ConnectorSplit
-
-