Package org.apache.accumulo.core.data
Enum LoadPlan.RangeType
- All Implemented Interfaces:
Serializable,Comparable<LoadPlan.RangeType>
- Enclosing class:
LoadPlan
- Since:
- 2.0.0
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadPlan.RangeTypeReturns the enum constant of this type with the specified name.static LoadPlan.RangeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TABLE
Range that corresponds to one or more tablets in a table. For a range of this type, the start row and end row can be null. The start row is exclusive and the end row is inclusive (like Accumulo tablets). A common use case for this would be when files were partitioned using a table's splits. When using this range type, the start and end row must exist as splits in the table or an exception will be thrown at load time. This RangeType is the most efficient for accumulo to load, and it enables only loading files to tablets that overlap data in the file. -
FILE
Range that corresponds to the minimum and maximum rows in a file. For this range type, the start row and end row must be non-null. The start row and end row are both considered inclusive. At load time, these data ranges will be mapped to table ranges. For this RangeType Accumulo has to do more work at load to map the file range to tablets. Also, this will map a file to all tablets in the range even if the file has no data for that tablet. For example if a range overlapped 10 tablets but the file only had data for 8 of those tablets, the file would still be loaded to all 10. This will not cause problems for scans or compactions other than the unnecessary work of opening a file and finding it has no data for the tablet.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-