Class ClusterSchemaFetcher
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.analyze.ClusterSchemaFetcher
-
- All Implemented Interfaces:
ISchemaFetcher
public class ClusterSchemaFetcher extends java.lang.Object implements ISchemaFetcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Integer,Template>checkAllRelatedTemplate(org.apache.iotdb.commons.path.PartialPath pathPattern)org.apache.iotdb.tsfile.utils.Pair<Template,org.apache.iotdb.commons.path.PartialPath>checkTemplateSetInfo(org.apache.iotdb.commons.path.PartialPath path)ClusterSchemaTreefetchSchema(PathPatternTree patternTree)ISchemaTreefetchSchemaListWithAutoCreate(java.util.List<org.apache.iotdb.commons.path.PartialPath> devicePathList, java.util.List<java.lang.String[]> measurementsList, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[]> tsDataTypesList, java.util.List<java.lang.Boolean> isAlignedList)ISchemaTreefetchSchemaWithAutoCreate(org.apache.iotdb.commons.path.PartialPath devicePath, java.lang.String[] measurements, java.util.function.Function<java.lang.Integer,org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> getDataType, boolean isAligned)org.apache.iotdb.tsfile.utils.Pair<Template,java.util.List<org.apache.iotdb.commons.path.PartialPath>>getAllPathsSetTemplate(java.lang.String templateName)static ClusterSchemaFetchergetInstance()voidinternalActivateTemplate(org.apache.iotdb.commons.path.PartialPath devicePath)voidinvalidAllCache()
-
-
-
Method Detail
-
getInstance
public static ClusterSchemaFetcher getInstance()
-
fetchSchema
public ClusterSchemaTree fetchSchema(PathPatternTree patternTree)
- Specified by:
fetchSchemain interfaceISchemaFetcher
-
fetchSchemaWithAutoCreate
public ISchemaTree fetchSchemaWithAutoCreate(org.apache.iotdb.commons.path.PartialPath devicePath, java.lang.String[] measurements, java.util.function.Function<java.lang.Integer,org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> getDataType, boolean isAligned)
- Specified by:
fetchSchemaWithAutoCreatein interfaceISchemaFetcher
-
fetchSchemaListWithAutoCreate
public ISchemaTree fetchSchemaListWithAutoCreate(java.util.List<org.apache.iotdb.commons.path.PartialPath> devicePathList, java.util.List<java.lang.String[]> measurementsList, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[]> tsDataTypesList, java.util.List<java.lang.Boolean> isAlignedList)
- Specified by:
fetchSchemaListWithAutoCreatein interfaceISchemaFetcher
-
checkTemplateSetInfo
public org.apache.iotdb.tsfile.utils.Pair<Template,org.apache.iotdb.commons.path.PartialPath> checkTemplateSetInfo(org.apache.iotdb.commons.path.PartialPath path)
- Specified by:
checkTemplateSetInfoin interfaceISchemaFetcher
-
checkAllRelatedTemplate
public java.util.Map<java.lang.Integer,Template> checkAllRelatedTemplate(org.apache.iotdb.commons.path.PartialPath pathPattern)
- Specified by:
checkAllRelatedTemplatein interfaceISchemaFetcher
-
getAllPathsSetTemplate
public org.apache.iotdb.tsfile.utils.Pair<Template,java.util.List<org.apache.iotdb.commons.path.PartialPath>> getAllPathsSetTemplate(java.lang.String templateName)
- Specified by:
getAllPathsSetTemplatein interfaceISchemaFetcher
-
internalActivateTemplate
public void internalActivateTemplate(org.apache.iotdb.commons.path.PartialPath devicePath)
-
invalidAllCache
public void invalidAllCache()
- Specified by:
invalidAllCachein interfaceISchemaFetcher
-
-