public class ColumnSpecification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
cfName |
java.lang.String |
ksName |
ColumnIdentifier |
name |
AbstractType<?> |
type |
Constructor and Description |
---|
ColumnSpecification(java.lang.String ksName,
java.lang.String cfName,
ColumnIdentifier name,
AbstractType<?> type) |
Modifier and Type | Method and Description |
---|---|
static boolean |
allInSameTable(java.util.Collection<ColumnSpecification> names)
Returns true if all ColumnSpecifications are in the same table, false otherwise.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
isReversedType() |
java.lang.String |
toString() |
ColumnSpecification |
withAlias(ColumnIdentifier alias)
Returns a new
ColumnSpecification for the same column but with the specified alias. |
public final java.lang.String ksName
public final java.lang.String cfName
public final ColumnIdentifier name
public final AbstractType<?> type
public ColumnSpecification(java.lang.String ksName, java.lang.String cfName, ColumnIdentifier name, AbstractType<?> type)
public ColumnSpecification withAlias(ColumnIdentifier alias)
ColumnSpecification
for the same column but with the specified alias.alias
- the column aliasColumnSpecification
for the same column but with the specified alias.public boolean isReversedType()
public static boolean allInSameTable(java.util.Collection<ColumnSpecification> names)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009- The Apache Software Foundation