|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.zebra.types.SortInfo
public class SortInfo
Sortness related Information
Field Summary | |
---|---|
static String |
DEFAULT_COMPARATOR
|
static String |
SORTED_COLUMN_DELIMITER
|
Method Summary | |
---|---|
boolean |
equals(String[] sortcolumns,
String comparator)
Check if the two SortInfo objects are equal |
String |
getComparator()
Get the comparator name |
String[] |
getSortColumnNames()
Get an array of the sorted column names with the first column being the primary sort key, the second column being the secondary sort key, ..., etc. |
ColumnType[] |
getSortColumnTypes()
Get an array of zebra types of the sorted columns with the first column being the primary sort key, the second column being the secondary sort key, ..., etc. |
int[] |
getSortIndices()
Get an array of column indices in schema of the sorted columns with the first column being the primary sort key, the second column being the secondary sort key, ..., etc. |
static SortInfo |
parse(String sortStr,
Schema schema,
String comparator)
Build a SortInfo object from sort column names, schema, and comparator |
int |
size()
Get the number of sorted columns |
static String |
toSortString(String[] names)
Build a string of comma-separated sort column names from an array of sort column names |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_COMPARATOR
public static final String SORTED_COLUMN_DELIMITER
Method Detail |
---|
public String[] getSortColumnNames()
public ColumnType[] getSortColumnTypes()
public int[] getSortIndices()
public int size()
public String getComparator()
public boolean equals(String[] sortcolumns, String comparator) throws IOException
IOException
public static SortInfo parse(String sortStr, Schema schema, String comparator) throws IOException
sortStr
- comma-separated sort column namesschema
- schema of the Zebra table for the sort columnscomparator
- comparator name
IOException
public static String toSortString(String[] names)
names
- an array of sort column names
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |