@API(value=EXPERIMENTAL) public class MetaDataPlanContext extends Object implements PlanContext
PlanContext
where the underlying meta-data comes from RecordMetaData
and RecordStoreState
objects, as is generally the case when planning actual queries.Constructor and Description |
---|
MetaDataPlanContext(RecordMetaData metaData,
RecordStoreState recordStoreState,
RecordQuery query) |
Modifier and Type | Method and Description |
---|---|
KeyExpression |
getCommonPrimaryKey() |
Index |
getIndexByName(String name) |
Set<Index> |
getIndexes() |
RecordMetaData |
getMetaData() |
public MetaDataPlanContext(@Nonnull RecordMetaData metaData, @Nonnull RecordStoreState recordStoreState, @Nonnull RecordQuery query)
@Nonnull public Set<Index> getIndexes()
getIndexes
in interface PlanContext
@Nonnull public Index getIndexByName(@Nonnull String name)
getIndexByName
in interface PlanContext
@Nullable public KeyExpression getCommonPrimaryKey()
getCommonPrimaryKey
in interface PlanContext
@Nonnull public RecordMetaData getMetaData()
getMetaData
in interface PlanContext