Package org.apache.storm.kafka.spout
Enum Class FirstPollOffsetStrategy
- All Implemented Interfaces:
- Serializable,- Comparable<FirstPollOffsetStrategy>,- Constable
Defines how the spout seeks the offset to be used in the first poll to Kafka upon topology deployment. By default this parameter is set
 to UNCOMMITTED_EARLIEST.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe kafka spout polls records starting in the first offset of the partition, regardless of previous commits.The kafka spout polls records starting at the end of the partition, regardless of previous commits.The kafka spout polls records starting at the earliest offset whose timestamp is greater than or equal to the given startTimestamp.The kafka spout polls records from the last committed offset, if any.The kafka spout polls records from the last committed offset, if any.The kafka spout polls records from the last committed offset, if any.
- 
Method SummaryModifier and TypeMethodDescriptionstatic FirstPollOffsetStrategyReturns the enum constant of this class with the specified name.static FirstPollOffsetStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
EARLIESTThe kafka spout polls records starting in the first offset of the partition, regardless of previous commits. This setting only takes effect on topology deployment
- 
LATESTThe kafka spout polls records starting at the end of the partition, regardless of previous commits. This setting only takes effect on topology deployment
- 
TIMESTAMPThe kafka spout polls records starting at the earliest offset whose timestamp is greater than or equal to the given startTimestamp. This setting only takes effect on topology deployment. This option is currently available only for the Trident Spout
- 
UNCOMMITTED_EARLIESTThe kafka spout polls records from the last committed offset, if any. If no offset has been committed it behaves as EARLIEST
- 
UNCOMMITTED_LATESTThe kafka spout polls records from the last committed offset, if any. If no offset has been committed it behaves as LATEST
- 
UNCOMMITTED_TIMESTAMPThe kafka spout polls records from the last committed offset, if any. If no offset has been committed it behaves as TIMESTAMP. This option is currently available only for the Trident Spout
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-