public abstract class ColumnOrderedKey extends Object
Modifier and Type | Field and Description |
---|---|
protected List<Boolean> |
columnOrdering
Column ordering.
|
protected List<Column> |
columns
Columns that the key relates to.
|
protected Map<String,String> |
extensions |
protected String |
name
Name of the key.
|
protected Table |
table
Table that the key applies to.
|
Constructor and Description |
---|
ColumnOrderedKey(Table table,
Map<String,String> extensions) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column col)
Class to add a column to the key
|
protected void |
assertSameDatastoreObject(Column col)
Utility to assert if the column is for a different table.
|
boolean |
equals(Object obj)
Equality operator.
|
String |
getColumnList()
Accessor for the column list
|
String |
getColumnList(boolean includeOrdering)
Method to return the list of columns which the key applies to.
|
static String |
getColumnList(List<Column> cols)
Method to return the list of columns which the key applies to.
|
List<Column> |
getColumns()
Accessor for the columns that the key relates to.
|
String |
getName()
Accessor for the key name.
|
Table |
getTable()
Accessor for the table
|
String |
getValueForExtension(String key) |
int |
hashCode()
Hashcode operator.
|
void |
setColumn(int seq,
Column col)
Sets a column in a specified position
seq for this index. |
void |
setColumnOrdering(String ordering) |
protected static void |
setMinSize(List list,
int size) |
void |
setName(String name)
Mutator for the key name.
|
protected List<Boolean> columnOrdering
protected String name
protected Table table
public void addColumn(Column col)
col
- The column to addpublic void setColumnOrdering(String ordering)
public void setColumn(int seq, Column col)
seq
for this index.seq
- the specified position for the col
col
- the Columnpublic String getColumnList(boolean includeOrdering)
includeOrdering
- Whether to include ordering in the column list when it is specifiedpublic void setName(String name)
name
- The key namepublic String getName()
public Table getTable()
public List<Column> getColumns()
public String getColumnList()
protected void assertSameDatastoreObject(Column col)
col
- The column to compare withpublic int hashCode()
public boolean equals(Object obj)
protected static void setMinSize(List list, int size)
Copyright © 2019. All rights reserved.