public class Index extends Object implements IMetadataEntity, Comparable<Index>
PENDING_ADD_OP, PENDING_DROP_OP, PENDING_NO_OP| Constructor and Description |
|---|
Index(String dataverseName,
String datasetName,
String indexName,
DatasetConfig.IndexType indexType,
List<List<String>> keyFieldNames,
List<IAType> keyFieldTypes,
boolean enforceKeyFields,
boolean isPrimaryIndex,
int pendingOp) |
Index(String dataverseName,
String datasetName,
String indexName,
DatasetConfig.IndexType indexType,
List<List<String>> keyFieldNames,
List<IAType> keyFieldTypes,
int gramLength,
boolean enforceKeyFields,
boolean isPrimaryIndex,
int pendingOp) |
| Modifier and Type | Method and Description |
|---|---|
Object |
addToCache(MetadataCache cache) |
int |
compareTo(Index otherIndex) |
Object |
dropFromCache(MetadataCache cache) |
boolean |
equals(Object other) |
String |
getDatasetName() |
String |
getDataverseName() |
int |
getGramLength() |
String |
getIndexName() |
DatasetConfig.IndexType |
getIndexType() |
List<List<String>> |
getKeyFieldNames() |
List<IAType> |
getKeyFieldTypes() |
static org.apache.hyracks.algebricks.common.utils.Pair<IAType,Boolean> |
getNonNullableKeyFieldType(List<String> expr,
ARecordType recType) |
static org.apache.hyracks.algebricks.common.utils.Pair<IAType,Boolean> |
getNonNullableOpenFieldType(IAType fieldType,
List<String> fieldName,
ARecordType recType) |
static org.apache.hyracks.algebricks.common.utils.Pair<IAType,Boolean> |
getNonNullableType(IAType keyType) |
int |
getPendingOp() |
int |
hashCode() |
boolean |
isEnforcingKeyFileds() |
boolean |
isPrimaryIndex() |
boolean |
isSecondaryIndex() |
void |
setPendingOp(int pendingOp) |
public Index(String dataverseName, String datasetName, String indexName, DatasetConfig.IndexType indexType, List<List<String>> keyFieldNames, List<IAType> keyFieldTypes, int gramLength, boolean enforceKeyFields, boolean isPrimaryIndex, int pendingOp)
public String getDataverseName()
public String getDatasetName()
public String getIndexName()
public int getGramLength()
public DatasetConfig.IndexType getIndexType()
public boolean isPrimaryIndex()
public boolean isEnforcingKeyFileds()
public int getPendingOp()
public void setPendingOp(int pendingOp)
public boolean isSecondaryIndex()
public static org.apache.hyracks.algebricks.common.utils.Pair<IAType,Boolean> getNonNullableType(IAType keyType) throws org.apache.hyracks.algebricks.common.exceptions.AlgebricksException
org.apache.hyracks.algebricks.common.exceptions.AlgebricksExceptionpublic static org.apache.hyracks.algebricks.common.utils.Pair<IAType,Boolean> getNonNullableOpenFieldType(IAType fieldType, List<String> fieldName, ARecordType recType) throws org.apache.hyracks.algebricks.common.exceptions.AlgebricksException
org.apache.hyracks.algebricks.common.exceptions.AlgebricksExceptionpublic static org.apache.hyracks.algebricks.common.utils.Pair<IAType,Boolean> getNonNullableKeyFieldType(List<String> expr, ARecordType recType) throws org.apache.hyracks.algebricks.common.exceptions.AlgebricksException
org.apache.hyracks.algebricks.common.exceptions.AlgebricksExceptionpublic Object addToCache(MetadataCache cache)
addToCache in interface IMetadataEntitypublic Object dropFromCache(MetadataCache cache)
dropFromCache in interface IMetadataEntitypublic int compareTo(Index otherIndex)
compareTo in interface Comparable<Index>Copyright © 2016 The Apache Software Foundation. All rights reserved.