public ColumnDefinition prepare(CFMetaData cfm) { if (!cfm.isStaticCompactTable()) return find(cfm); AbstractType<?> thriftColumnNameType = cfm.thriftColumnNameType(); if (thriftColumnNameType instanceof UTF8Type) return find(cfm); // We have a Thrift-created table with a non-text comparator. Check if we have a match column, otherwise assume we should use // thriftColumnNameType ByteBuffer bufferName = ByteBufferUtil.bytes(text); for (ColumnDefinition def : cfm.allColumns()) { if (def.name.bytes.equals(bufferName)) return def; } return find(thriftColumnNameType.fromString(text), cfm); }
public ColumnDefinition prepare(CFMetaData cfm) { if (!cfm.isStaticCompactTable()) return find(cfm); AbstractType<?> thriftColumnNameType = cfm.thriftColumnNameType(); if (thriftColumnNameType instanceof UTF8Type) return find(cfm); // We have a Thrift-created table with a non-text comparator. Check if we have a match column, otherwise assume we should use // thriftColumnNameType ByteBuffer bufferName = ByteBufferUtil.bytes(text); for (ColumnDefinition def : cfm.allColumns()) { if (def.name.bytes.equals(bufferName)) return def; } return find(thriftColumnNameType.fromString(text), cfm); }
public ColumnDefinition prepare(CFMetaData cfm) { if (!cfm.isStaticCompactTable()) return find(cfm); AbstractType<?> thriftColumnNameType = cfm.thriftColumnNameType(); if (thriftColumnNameType instanceof UTF8Type) return find(cfm); // We have a Thrift-created table with a non-text comparator. Check if we have a match column, otherwise assume we should use // thriftColumnNameType ByteBuffer bufferName = ByteBufferUtil.bytes(text); for (ColumnDefinition def : cfm.allColumns()) { if (def.name.bytes.equals(bufferName)) return def; } return find(thriftColumnNameType.fromString(text), cfm); }
public ColumnDefinition prepare(CFMetaData cfm) { if (!cfm.isStaticCompactTable()) return find(cfm); AbstractType<?> thriftColumnNameType = cfm.thriftColumnNameType(); if (thriftColumnNameType instanceof UTF8Type) return find(cfm); // We have a Thrift-created table with a non-text comparator. Check if we have a match column, otherwise assume we should use // thriftColumnNameType ByteBuffer bufferName = ByteBufferUtil.bytes(text); for (ColumnDefinition def : cfm.allColumns()) { if (def.name.bytes.equals(bufferName)) return def; } return find(thriftColumnNameType.fromString(text), cfm); }
private ColumnDefinition find(CFMetaData cfm) { return find(ByteBufferUtil.bytes(text), cfm); }
private ColumnDefinition find(CFMetaData cfm) { return find(ByteBufferUtil.bytes(text), cfm); }
private ColumnDefinition find(CFMetaData cfm) { return find(ByteBufferUtil.bytes(text), cfm); }
private ColumnDefinition find(CFMetaData cfm) { return find(ByteBufferUtil.bytes(text), cfm); }