public class Template extends Object
| 构造器和说明 |
|---|
Template() |
Template(CreateTemplatePlan plan)
build a template from a createTemplatePlan
|
public Template()
public Template(CreateTemplatePlan plan) throws IllegalPathException
plan - createTemplatePlanIllegalPathExceptionpublic String getName()
public void setName(String name)
public Map<String,IMeasurementSchema> getSchemaMap()
public boolean hasSchema(String suffixPath)
public IMeasurementSchema getSchema(String measurementId)
public boolean isDirectAligned()
public List<String> getAlignedMeasurements(String prefix) throws IllegalPathException
public List<String> getMeasurementsUnderPath(String path) throws MetadataException
public int getMeasurementsCount()
public IMNode getPathNodeInTemplate(String path) throws IllegalPathException
public boolean isPathExistInTemplate(String path) throws IllegalPathException
public boolean isDirectNodeInTemplate(String nodeName)
public boolean isPathMeasurement(String path) throws MetadataException
public Collection<IMNode> getDirectNodes()
public Set<PartialPath> getRelatedStorageGroup()
public boolean markStorageGroup(IMNode setNode)
public boolean unmarkStorageGroup(IMNode unsetNode)
public boolean unmarkStorageGroups(Collection<PartialPath> sgPaths)
public void addAlignedMeasurements(String[] measurements, TSDataType[] dataTypes, TSEncoding[] encodings, CompressionType[] compressors) throws IllegalPathException
public void addUnalignedMeasurements(String[] measurements, TSDataType[] dataTypes, TSEncoding[] encodings, CompressionType[] compressors) throws IllegalPathException
public void deleteMeasurements(String path) throws MetadataException
public void deleteSeriesCascade(String path) throws MetadataException
public void deleteAlignedPrefix(String path) throws IllegalPathException
public ByteBuffer serialize()
public void deserialize(ByteBuffer buffer)
Copyright © 2022 The Apache Software Foundation. All rights reserved.