public class ColumnSlice
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ColumnSlice.Serializer |
Modifier and Type | Field and Description |
---|---|
static ColumnSlice |
ALL_COLUMNS |
static ColumnSlice[] |
ALL_COLUMNS_ARRAY |
Composite |
finish |
Composite |
start |
Constructor and Description |
---|
ColumnSlice(Composite start,
Composite finish) |
Modifier and Type | Method and Description |
---|---|
static ColumnSlice[] |
deoverlapSlices(ColumnSlice[] slices,
java.util.Comparator<Composite> comparator)
Takes an array of slices (potentially overlapping and in any order, though each individual slice must have
its start before or equal its end in
comparator orde) and return an equivalent array of non-overlapping
slices in comparator order . |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
includes(java.util.Comparator<Composite> cmp,
Composite name) |
boolean |
intersects(java.util.List<java.nio.ByteBuffer> minCellNames,
java.util.List<java.nio.ByteBuffer> maxCellNames,
CellNameType comparator,
boolean reversed) |
boolean |
isAlwaysEmpty(CellNameType comparator,
boolean reversed) |
boolean |
isBefore(java.util.Comparator<Composite> cmp,
Composite name) |
java.lang.String |
toString() |
static boolean |
validateSlices(ColumnSlice[] slices,
CellNameType type,
boolean reversed)
Validates that the provided slice array contains only non-overlapped slices valid for a query
reversed
or not on a table using comparator . |
public static final ColumnSlice ALL_COLUMNS
public static final ColumnSlice[] ALL_COLUMNS_ARRAY
public final Composite start
public final Composite finish
public boolean isAlwaysEmpty(CellNameType comparator, boolean reversed)
public boolean intersects(java.util.List<java.nio.ByteBuffer> minCellNames, java.util.List<java.nio.ByteBuffer> maxCellNames, CellNameType comparator, boolean reversed)
public static boolean validateSlices(ColumnSlice[] slices, CellNameType type, boolean reversed)
reversed
or not on a table using comparator
.public static ColumnSlice[] deoverlapSlices(ColumnSlice[] slices, java.util.Comparator<Composite> comparator)
comparator
orde) and return an equivalent array of non-overlapping
slices in comparator order
.slices
- an array of slices. This may be modified by this method.comparator
- the order in which to sort the slices.compator
order. If the original
slices are already non-overlapping and in comparator order, this may or may not return the provided slices
directly.public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014 The Apache Software Foundation