Package org.apache.pinot.spi.stream
Class OffsetCriteria
- java.lang.Object
-
- org.apache.pinot.spi.stream.OffsetCriteria
-
public class OffsetCriteria extends Object
Defines and builds the offset criteria for consumption from a stream
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOffsetCriteria.OffsetCriteriaBuilderBuilds anOffsetCriteria
-
Field Summary
Fields Modifier and Type Field Description static OffsetCriteriaLARGEST_OFFSET_CRITERIAstatic OffsetCriteriaSMALLEST_OFFSET_CRITERIA
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)StringgetOffsetString()Getter for offset stringinthashCode()booleanisCustom()True if the offset criteria is defined as a custom format stringbooleanisLargest()True if the offset criteria is defined to read from the largest known offsetbooleanisPeriod()True if the offset criteria is defined as a period stringbooleanisSmallest()True if the offset criteria is defined to read from smallest available offsetbooleanisTimestamp()True if the offset criteria is defined as a timestamp stringStringtoString()
-
-
-
Field Detail
-
SMALLEST_OFFSET_CRITERIA
public static final OffsetCriteria SMALLEST_OFFSET_CRITERIA
-
LARGEST_OFFSET_CRITERIA
public static final OffsetCriteria LARGEST_OFFSET_CRITERIA
-
-
Method Detail
-
isSmallest
public boolean isSmallest()
True if the offset criteria is defined to read from smallest available offset- Returns:
-
isLargest
public boolean isLargest()
True if the offset criteria is defined to read from the largest known offset- Returns:
-
isPeriod
public boolean isPeriod()
True if the offset criteria is defined as a period string- Returns:
-
isTimestamp
public boolean isTimestamp()
True if the offset criteria is defined as a timestamp string- Returns:
-
isCustom
public boolean isCustom()
True if the offset criteria is defined as a custom format string- Returns:
-
getOffsetString
public String getOffsetString()
Getter for offset string- Returns:
-
-