public class RowSignature extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RowSignature.Builder |
Modifier and Type | Method and Description |
---|---|
static RowSignature.Builder |
builder() |
boolean |
equals(Object o) |
static RowSignature |
from(List<String> rowOrder,
org.apache.calcite.rel.type.RelDataType rowType) |
ValueType |
getColumnType(String name) |
org.apache.calcite.rel.type.RelDataType |
getRelDataType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
Returns a Calcite RelDataType corresponding to this row signature.
|
List<String> |
getRowOrder()
Returns the rowOrder for this signature, which is the list of column names in row order.
|
int |
hashCode() |
StringComparator |
naturalStringComparator(SimpleExtraction simpleExtraction)
Return the "natural"
StringComparator for an extraction from this row signature. |
String |
toString() |
public static RowSignature from(List<String> rowOrder, org.apache.calcite.rel.type.RelDataType rowType)
public static RowSignature.Builder builder()
public List<String> getRowOrder()
@Nonnull public StringComparator naturalStringComparator(SimpleExtraction simpleExtraction)
StringComparator
for an extraction from this row signature. This will be a
lexicographic comparator for String types and a numeric comparator for Number types.simpleExtraction
- extraction from this kind of rowpublic org.apache.calcite.rel.type.RelDataType getRelDataType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
typeFactory
- factory for type constructionCopyright © 2011–2018. All rights reserved.