List of usage examples for org.apache.thrift TBaseHelper compareTo
public static int compareTo(Map a, Map b)
From source file:com.bigdata.dastor.thrift.AuthenticationException.java
License:Apache License
public int compareTo(AuthenticationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }//w ww . jav a2 s .co m int lastComparison = 0; AuthenticationException typedOther = (AuthenticationException) other; lastComparison = Boolean.valueOf(isSetWhy()).compareTo(typedOther.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { lastComparison = TBaseHelper.compareTo(why, typedOther.why); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.AuthorizationException.java
License:Apache License
public int compareTo(AuthorizationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }//from w w w.j a va 2 s .c o m int lastComparison = 0; AuthorizationException typedOther = (AuthorizationException) other; lastComparison = Boolean.valueOf(isSetWhy()).compareTo(typedOther.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { lastComparison = TBaseHelper.compareTo(why, typedOther.why); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.Column.java
License:Apache License
public int compareTo(Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }/*from w ww .jav a 2s. com*/ int lastComparison = 0; Column typedOther = (Column) other; lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = TBaseHelper.compareTo(name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = TBaseHelper.compareTo(value, typedOther.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.ColumnOrSuperColumn.java
License:Apache License
public int compareTo(ColumnOrSuperColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }/* w w w .j a v a 2s .co m*/ int lastComparison = 0; ColumnOrSuperColumn typedOther = (ColumnOrSuperColumn) other; lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { lastComparison = TBaseHelper.compareTo(column, typedOther.column); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSuper_column()).compareTo(typedOther.isSetSuper_column()); if (lastComparison != 0) { return lastComparison; } if (isSetSuper_column()) { lastComparison = TBaseHelper.compareTo(super_column, typedOther.super_column); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.ColumnParent.java
License:Apache License
public int compareTo(ColumnParent other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }//from w w w . j a v a2s . c om int lastComparison = 0; ColumnParent typedOther = (ColumnParent) other; lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(typedOther.isSetColumn_family()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_family()) { lastComparison = TBaseHelper.compareTo(column_family, typedOther.column_family); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSuper_column()).compareTo(typedOther.isSetSuper_column()); if (lastComparison != 0) { return lastComparison; } if (isSetSuper_column()) { lastComparison = TBaseHelper.compareTo(super_column, typedOther.super_column); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.ColumnPath.java
License:Apache License
public int compareTo(ColumnPath other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }//from w w w. j a v a 2 s . co m int lastComparison = 0; ColumnPath typedOther = (ColumnPath) other; lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(typedOther.isSetColumn_family()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_family()) { lastComparison = TBaseHelper.compareTo(column_family, typedOther.column_family); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSuper_column()).compareTo(typedOther.isSetSuper_column()); if (lastComparison != 0) { return lastComparison; } if (isSetSuper_column()) { lastComparison = TBaseHelper.compareTo(super_column, typedOther.super_column); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { lastComparison = TBaseHelper.compareTo(column, typedOther.column); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.Deletion.java
License:Apache License
public int compareTo(Deletion other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }//from w ww. j av a 2s . c om int lastComparison = 0; Deletion typedOther = (Deletion) other; lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSuper_column()).compareTo(typedOther.isSetSuper_column()); if (lastComparison != 0) { return lastComparison; } if (isSetSuper_column()) { lastComparison = TBaseHelper.compareTo(super_column, typedOther.super_column); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(typedOther.isSetPredicate()); if (lastComparison != 0) { return lastComparison; } if (isSetPredicate()) { lastComparison = TBaseHelper.compareTo(predicate, typedOther.predicate); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.InvalidRequestException.java
License:Apache License
public int compareTo(InvalidRequestException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }//from w w w .j ava 2s . c o m int lastComparison = 0; InvalidRequestException typedOther = (InvalidRequestException) other; lastComparison = Boolean.valueOf(isSetWhy()).compareTo(typedOther.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { lastComparison = TBaseHelper.compareTo(why, typedOther.why); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.KeyRange.java
License:Apache License
public int compareTo(KeyRange other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }/* ww w .jav a 2 s . c o m*/ int lastComparison = 0; KeyRange typedOther = (KeyRange) other; lastComparison = Boolean.valueOf(isSetStart_key()).compareTo(typedOther.isSetStart_key()); if (lastComparison != 0) { return lastComparison; } if (isSetStart_key()) { lastComparison = TBaseHelper.compareTo(start_key, typedOther.start_key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnd_key()).compareTo(typedOther.isSetEnd_key()); if (lastComparison != 0) { return lastComparison; } if (isSetEnd_key()) { lastComparison = TBaseHelper.compareTo(end_key, typedOther.end_key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart_token()).compareTo(typedOther.isSetStart_token()); if (lastComparison != 0) { return lastComparison; } if (isSetStart_token()) { lastComparison = TBaseHelper.compareTo(start_token, typedOther.start_token); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnd_token()).compareTo(typedOther.isSetEnd_token()); if (lastComparison != 0) { return lastComparison; } if (isSetEnd_token()) { lastComparison = TBaseHelper.compareTo(end_token, typedOther.end_token); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCount()).compareTo(typedOther.isSetCount()); if (lastComparison != 0) { return lastComparison; } if (isSetCount()) { lastComparison = TBaseHelper.compareTo(count, typedOther.count); if (lastComparison != 0) { return lastComparison; } } return 0; }
From source file:com.bigdata.dastor.thrift.KeySlice.java
License:Apache License
public int compareTo(KeySlice other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); }//from www .ja v a2 s .c o m int lastComparison = 0; KeySlice typedOther = (KeySlice) other; lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = TBaseHelper.compareTo(key, typedOther.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { lastComparison = TBaseHelper.compareTo(columns, typedOther.columns); if (lastComparison != 0) { return lastComparison; } } return 0; }