Java 类org.apache.thrift.TBaseHelper 实例源码

项目:ikasoa    文件:AbstractThriftBase.java   
@Override
public int compareTo(AbstractThriftBase other) {
    if (!getClass().equals(other.getClass()))
        return getClass().getName().compareTo(other.getClass().getName());
    int lastComparison = Boolean.valueOf(isSet(null)).compareTo(isSet(null));
    if (lastComparison != 0)
        return lastComparison;
    if (isSet(null)) {
        lastComparison = TBaseHelper.compareTo(str, other.getStr());
        if (lastComparison != 0)
            return lastComparison;
    }
    return 0;
}
项目:voldemort    文件:MockMessage.java   
public int compareTo(MockMessage other) {
    if(!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    MockMessage typedOther = (MockMessage) other;

    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
    if(lastComparison != 0) {
        return lastComparison;
    }
    if(isSetName()) {
        lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
        if(lastComparison != 0) {
            return lastComparison;
        }
    }
    lastComparison = Boolean.valueOf(isSetMappings()).compareTo(typedOther.isSetMappings());
    if(lastComparison != 0) {
        return lastComparison;
    }
    if(isSetMappings()) {
        lastComparison = TBaseHelper.compareTo(this.mappings, typedOther.mappings);
        if(lastComparison != 0) {
            return lastComparison;
        }
    }
    lastComparison = Boolean.valueOf(isSetIntList()).compareTo(typedOther.isSetIntList());
    if(lastComparison != 0) {
        return lastComparison;
    }
    if(isSetIntList()) {
        lastComparison = TBaseHelper.compareTo(this.intList, typedOther.intList);
        if(lastComparison != 0) {
            return lastComparison;
        }
    }
    lastComparison = Boolean.valueOf(isSetStrSet()).compareTo(typedOther.isSetStrSet());
    if(lastComparison != 0) {
        return lastComparison;
    }
    if(isSetStrSet()) {
        lastComparison = TBaseHelper.compareTo(this.strSet, typedOther.strSet);
        if(lastComparison != 0) {
            return lastComparison;
        }
    }
    return 0;
}
项目:cassandra-kmean    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:cassandra-kmean    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:cassandra-kmean    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:ACaZoo    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:ACaZoo    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:ACaZoo    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:GraphTrek    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:GraphTrek    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:GraphTrek    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:Cassandra-Wasef    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:Cassandra-Wasef    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:Cassandra-Wasef    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:stratio-cassandra    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:stratio-cassandra    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:stratio-cassandra    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:cassandra-cqlMod    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:cassandra-cqlMod    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:cassandra-cqlMod    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:wso2-cassandra    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:wso2-cassandra    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:wso2-cassandra    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:cassandra-trunk    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:cassandra-trunk    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:cassandra-trunk    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:cassandra-1.2.16    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:cassandra-1.2.16    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:cassandra-1.2.16    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}
项目:Cassandra-KVPM    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param columnFamily - column family name from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, String columnFamily)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, columnFamily));
}
项目:Cassandra-KVPM    文件:CliClient.java   
/**
 * Converts column name into byte[] according to comparator type
 * @param column - column name from parser
 * @param cfDef  - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] columnNameAsByteArray(String column, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(columnNameAsBytes(column, cfDef));
}
项目:Cassandra-KVPM    文件:CliClient.java   
/**
 * Converts sub-column name into byte[] according to comparator type
 * @param superColumn - sub-column name from parser
 * @param cfDef - column family from parser
 * @return bytes[] - into which column name was converted according to comparator type
 */
private byte[] subColumnNameAsByteArray(String superColumn, CfDef cfDef)
{
    return TBaseHelper.byteBufferToByteArray(subColumnNameAsBytes(superColumn, cfDef));
}