Skip to content

[To new_vector] Add MeasurementPath and Refactor groupVectorPath#4268

Merged
qiaojialin merged 20 commits intoapache:new_vectorfrom
MarcosZyk:metadata_new_vector
Oct 31, 2021
Merged

[To new_vector] Add MeasurementPath and Refactor groupVectorPath#4268
qiaojialin merged 20 commits intoapache:new_vectorfrom
MarcosZyk:metadata_new_vector

Conversation

@MarcosZyk
Copy link
Copy Markdown
Contributor

@MarcosZyk MarcosZyk commented Oct 29, 2021

Description

  1. add MeasurementPath containing schema, which helps reduce the interaction between query and mtree
  2. if an measurementMNdoe is under aligned device, return VectorPartialPath to query first and group them later ( i don't think this logic make any sense )
  3. Rename VectorPartialPath to AlignedPath
  4. Move PartialPath, AlignedPath and MeasurementPath to Path package under metadata, which results in hundreds changes on import line

…adata_new_vector

� Conflicts:
�	server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
�	server/src/main/java/org/apache/iotdb/db/metadata/mnode/MeasurementMNode.java
�	server/src/main/java/org/apache/iotdb/db/metadata/mtree/MTree.java
…adata_new_vector

� Conflicts:
�	server/src/main/java/org/apache/iotdb/db/engine/memtable/VectorWritableMemChunk.java
schemaList.add(path.getMeasurementSchema());
}

public List<String> getSubSensorsList() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public List<String> getSubSensorsList() {
public List<String> getMeasurementList() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

// todo improve vector implementation by remove this placeholder
private static final String VECTOR_PLACEHOLDER = "";

private List<String> subSensorsList;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private List<String> subSensorsList;
private List<String> measurementList;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@@ -34,7 +39,11 @@
*/
public class VectorPartialPath extends PartialPath {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public class VectorPartialPath extends PartialPath {
public class AlignedPaths extends PartialPath {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@Override
public MeasurementPath getPartialPath() {
MeasurementPath result = new MeasurementPath(super.getPartialPath());
// result.setMeasurementAlias(alias);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

IEntityMNode getParent();

@Override
MeasurementPath getPartialPath();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MeasurementPath getPartialPath();
MeasurementPath getMeasurementPath();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

}

@Override
public PartialPath getExactPath() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the partialPath is AlignedPath and it has only one measurement, return the measurement's PartialPath. Otherwise, return this partialPath.

@qiaojialin qiaojialin merged commit 27ff250 into apache:new_vector Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants