public final class MetadataIndex extends Object implements IMetadataIndex
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hyracks.api.dataflow.value.IBinaryComparatorFactory[] |
bcfs |
protected org.apache.hyracks.api.dataflow.value.IBinaryHashFunctionFactory[] |
bhffs |
protected int[] |
bloomFilterKeyFields |
protected String |
datasetName |
protected int[] |
fieldPermutation |
protected org.apache.hyracks.api.io.FileReference |
file |
protected int |
fileId |
protected String |
indexName |
protected boolean |
isPrimaryIndex |
protected List<List<String>> |
keyNames |
protected IAType[] |
keyTypes |
protected ARecordType |
payloadType |
protected int[] |
primaryKeyIndexes |
protected org.apache.hyracks.api.dataflow.value.RecordDescriptor |
recDesc |
protected long |
resourceId |
protected org.apache.hyracks.api.dataflow.value.ITypeTraits[] |
typeTraits |
| Constructor and Description |
|---|
MetadataIndex(String datasetName,
String indexName,
int numFields,
IAType[] keyTypes,
List<List<String>> keyNames,
int numSecondaryIndexKeys,
ARecordType payloadType,
int datasetId,
boolean isPrimaryIndex,
int[] primaryKeyIndexes) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getBloomFilterKeyFields() |
DatasetId |
getDatasetId() |
String |
getDataverseName() |
int |
getFieldCount() |
int[] |
getFieldPermutation() |
org.apache.hyracks.api.io.FileReference |
getFile() |
int |
getFileId() |
String |
getFileNameRelativePath() |
String |
getIndexedDatasetName() |
String |
getIndexName() |
org.apache.hyracks.api.dataflow.value.IBinaryComparatorFactory[] |
getKeyBinaryComparatorFactory() |
org.apache.hyracks.api.dataflow.value.IBinaryHashFunctionFactory[] |
getKeyBinaryHashFunctionFactory() |
int |
getKeyFieldCount() |
String |
getNodeGroupName() |
List<List<String>> |
getPartitioningExpr() |
List<IAType> |
getPartitioningExprType() |
ARecordType |
getPayloadRecordType() |
int[] |
getPrimaryKeyIndexes() |
org.apache.hyracks.api.dataflow.value.RecordDescriptor |
getRecordDescriptor() |
long |
getResourceID() |
org.apache.hyracks.api.dataflow.value.ITypeTraits[] |
getTypeTraits() |
boolean |
isPrimaryIndex() |
void |
setFile(org.apache.hyracks.api.io.FileReference file) |
void |
setFileId(int fileId) |
void |
setResourceID(long resourceID) |
protected final String datasetName
protected final String indexName
protected final IAType[] keyTypes
protected final int[] fieldPermutation
protected final int[] bloomFilterKeyFields
protected final ARecordType payloadType
protected final org.apache.hyracks.api.dataflow.value.RecordDescriptor recDesc
protected final org.apache.hyracks.api.dataflow.value.ITypeTraits[] typeTraits
protected final org.apache.hyracks.api.dataflow.value.IBinaryComparatorFactory[] bcfs
protected final org.apache.hyracks.api.dataflow.value.IBinaryHashFunctionFactory[] bhffs
protected org.apache.hyracks.api.io.FileReference file
protected int fileId
protected long resourceId
protected final boolean isPrimaryIndex
protected final int[] primaryKeyIndexes
public MetadataIndex(String datasetName, String indexName, int numFields, IAType[] keyTypes, List<List<String>> keyNames, int numSecondaryIndexKeys, ARecordType payloadType, int datasetId, boolean isPrimaryIndex, int[] primaryKeyIndexes) throws AsterixRuntimeException
AsterixRuntimeExceptionpublic String getIndexedDatasetName()
getIndexedDatasetName in interface IMetadataIndexpublic int[] getFieldPermutation()
getFieldPermutation in interface IMetadataIndexpublic int[] getBloomFilterKeyFields()
getBloomFilterKeyFields in interface IMetadataIndexpublic int getKeyFieldCount()
getKeyFieldCount in interface IMetadataIndexpublic int getFieldCount()
getFieldCount in interface IMetadataIndexpublic String getDataverseName()
getDataverseName in interface IMetadataIndexpublic String getNodeGroupName()
getNodeGroupName in interface IMetadataIndexpublic List<List<String>> getPartitioningExpr()
getPartitioningExpr in interface IMetadataIndexpublic List<IAType> getPartitioningExprType()
getPartitioningExprType in interface IMetadataIndexpublic String getIndexName()
getIndexName in interface IMetadataIndexpublic org.apache.hyracks.api.dataflow.value.ITypeTraits[] getTypeTraits()
getTypeTraits in interface IMetadataIndexpublic org.apache.hyracks.api.dataflow.value.RecordDescriptor getRecordDescriptor()
getRecordDescriptor in interface IMetadataIndexpublic org.apache.hyracks.api.dataflow.value.IBinaryComparatorFactory[] getKeyBinaryComparatorFactory()
getKeyBinaryComparatorFactory in interface IMetadataIndexpublic org.apache.hyracks.api.dataflow.value.IBinaryHashFunctionFactory[] getKeyBinaryHashFunctionFactory()
getKeyBinaryHashFunctionFactory in interface IMetadataIndexpublic String getFileNameRelativePath()
getFileNameRelativePath in interface IMetadataIndexpublic void setFileId(int fileId)
setFileId in interface IMetadataIndexpublic int getFileId()
getFileId in interface IMetadataIndexpublic ARecordType getPayloadRecordType()
getPayloadRecordType in interface IMetadataIndexpublic void setFile(org.apache.hyracks.api.io.FileReference file)
setFile in interface IMetadataIndexpublic org.apache.hyracks.api.io.FileReference getFile()
getFile in interface IMetadataIndexpublic void setResourceID(long resourceID)
setResourceID in interface IMetadataIndexpublic long getResourceID()
getResourceID in interface IMetadataIndexpublic DatasetId getDatasetId()
getDatasetId in interface IMetadataIndexpublic boolean isPrimaryIndex()
isPrimaryIndex in interface IMetadataIndexpublic int[] getPrimaryKeyIndexes()
getPrimaryKeyIndexes in interface IMetadataIndexCopyright © 2016 The Apache Software Foundation. All rights reserved.