Class LuceneGetMetadataInfo
java.lang.Object
com.apple.foundationdb.record.provider.foundationdb.IndexOperation
com.apple.foundationdb.record.lucene.LuceneGetMetadataInfo
Get metadata information about a given lucene index.
This is currently intended to be used for debugging purposes.
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneGetMetadataInfo
(Tuple groupingKey, Integer partitionId, boolean justPartitionInfo) Create a new operation to get metadata about the lucene index. -
Method Summary
Modifier and TypeMethodDescriptionThe grouping key to inspect.The partition id to inpsect.boolean
Just fetch the partition info, and not the information for each partition.toString()
-
Constructor Details
-
LuceneGetMetadataInfo
public LuceneGetMetadataInfo(@Nonnull Tuple groupingKey, @Nullable Integer partitionId, boolean justPartitionInfo) Create a new operation to get metadata about the lucene index.The parameters can be used to limit the scope of information gathered so that it can fit in a single transaction.
- Parameters:
groupingKey
- the grouping key, or an emptyTuple
if this index is not groupedpartitionId
- ifnull
, this will return information for all partitions, otherwise just the given partitionjustPartitionInfo
- iftrue
then only the partition info will be fetched, otherwise information from lucene itself will be fetched
-
-
Method Details
-
getGroupingKey
The grouping key to inspect.- Returns:
- the grouping key or an empty
Tuple
if this index is not grouped
-
getPartitionId
The partition id to inpsect.- Returns:
- the partition id to inspect or
null
to inspect all partitions.
-
isJustPartitionInfo
public boolean isJustPartitionInfo()Just fetch the partition info, and not the information for each partition.- Returns:
- if
true
only the partition info will be fetched, otherwise it will fetch the information for the lucene indexes
-
toString
-