Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MH-Tree
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
disa
public
Hulls
MH-Tree
Commits
07574665
There was an error fetching the commit references. Please try again later.
Verified
Commit
07574665
authored
3 years ago
by
David Procházka
Browse files
Options
Downloads
Patches
Plain Diff
ADD: overrides
parent
e08035e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mhtree/InternalNode.java
+5
-0
5 additions, 0 deletions
src/mhtree/InternalNode.java
src/mhtree/LeafNode.java
+5
-0
5 additions, 0 deletions
src/mhtree/LeafNode.java
with
10 additions
and
0 deletions
src/mhtree/InternalNode.java
+
5
−
0
View file @
07574665
...
@@ -56,6 +56,7 @@ class InternalNode extends Node implements Serializable {
...
@@ -56,6 +56,7 @@ class InternalNode extends Node implements Serializable {
*
*
* @param object object to be added
* @param object object to be added
*/
*/
@Override
protected
void
addObject
(
LocalAbstractObject
object
)
{
protected
void
addObject
(
LocalAbstractObject
object
)
{
addObjectIntoHull
(
object
);
addObjectIntoHull
(
object
);
}
}
...
@@ -65,6 +66,7 @@ class InternalNode extends Node implements Serializable {
...
@@ -65,6 +66,7 @@ class InternalNode extends Node implements Serializable {
*
*
* @return the list of objects stored in node's descendants
* @return the list of objects stored in node's descendants
*/
*/
@Override
protected
List
<
LocalAbstractObject
>
getObjects
()
{
protected
List
<
LocalAbstractObject
>
getObjects
()
{
return
children
return
children
.
stream
()
.
stream
()
...
@@ -78,6 +80,7 @@ class InternalNode extends Node implements Serializable {
...
@@ -78,6 +80,7 @@ class InternalNode extends Node implements Serializable {
*
*
* @return the height of this node
* @return the height of this node
*/
*/
@Override
protected
int
getHeight
()
{
protected
int
getHeight
()
{
return
children
return
children
.
stream
()
.
stream
()
...
@@ -91,6 +94,7 @@ class InternalNode extends Node implements Serializable {
...
@@ -91,6 +94,7 @@ class InternalNode extends Node implements Serializable {
*
*
* @param nodes list of nodes
* @param nodes list of nodes
*/
*/
@Override
protected
void
gatherNodes
(
List
<
Node
>
nodes
)
{
protected
void
gatherNodes
(
List
<
Node
>
nodes
)
{
nodes
.
add
(
this
);
nodes
.
add
(
this
);
children
.
forEach
(
child
->
child
.
gatherNodes
(
nodes
));
children
.
forEach
(
child
->
child
.
gatherNodes
(
nodes
));
...
@@ -101,6 +105,7 @@ class InternalNode extends Node implements Serializable {
...
@@ -101,6 +105,7 @@ class InternalNode extends Node implements Serializable {
*
*
* @param leafNodes list of leaf nodes
* @param leafNodes list of leaf nodes
*/
*/
@Override
protected
void
gatherLeafNodes
(
List
<
LeafNode
>
leafNodes
)
{
protected
void
gatherLeafNodes
(
List
<
LeafNode
>
leafNodes
)
{
children
.
forEach
(
child
->
child
.
gatherLeafNodes
(
leafNodes
));
children
.
forEach
(
child
->
child
.
gatherLeafNodes
(
leafNodes
));
}
}
...
...
This diff is collapsed.
Click to expand it.
src/mhtree/LeafNode.java
+
5
−
0
View file @
07574665
...
@@ -38,6 +38,7 @@ public class LeafNode extends Node implements Serializable {
...
@@ -38,6 +38,7 @@ public class LeafNode extends Node implements Serializable {
* @param object object to be added
* @param object object to be added
* @throws BucketStorageException addition of object into bucket exception
* @throws BucketStorageException addition of object into bucket exception
*/
*/
@Override
protected
void
addObject
(
LocalAbstractObject
object
)
throws
BucketStorageException
{
protected
void
addObject
(
LocalAbstractObject
object
)
throws
BucketStorageException
{
bucket
.
addObject
(
object
);
bucket
.
addObject
(
object
);
addObjectIntoHull
(
object
);
addObjectIntoHull
(
object
);
...
@@ -48,6 +49,7 @@ public class LeafNode extends Node implements Serializable {
...
@@ -48,6 +49,7 @@ public class LeafNode extends Node implements Serializable {
*
*
* @return a list of objects in node's bucket
* @return a list of objects in node's bucket
*/
*/
@Override
public
List
<
LocalAbstractObject
>
getObjects
()
{
public
List
<
LocalAbstractObject
>
getObjects
()
{
List
<
LocalAbstractObject
>
objects
=
new
ArrayList
<>(
bucket
.
getObjectCount
());
List
<
LocalAbstractObject
>
objects
=
new
ArrayList
<>(
bucket
.
getObjectCount
());
...
@@ -72,6 +74,7 @@ public class LeafNode extends Node implements Serializable {
...
@@ -72,6 +74,7 @@ public class LeafNode extends Node implements Serializable {
*
*
* @return the height of this node
* @return the height of this node
*/
*/
@Override
protected
int
getHeight
()
{
protected
int
getHeight
()
{
return
0
;
return
0
;
}
}
...
@@ -81,6 +84,7 @@ public class LeafNode extends Node implements Serializable {
...
@@ -81,6 +84,7 @@ public class LeafNode extends Node implements Serializable {
*
*
* @param nodes list of nodes
* @param nodes list of nodes
*/
*/
@Override
protected
void
gatherNodes
(
List
<
Node
>
nodes
)
{
protected
void
gatherNodes
(
List
<
Node
>
nodes
)
{
nodes
.
add
(
this
);
nodes
.
add
(
this
);
}
}
...
@@ -90,6 +94,7 @@ public class LeafNode extends Node implements Serializable {
...
@@ -90,6 +94,7 @@ public class LeafNode extends Node implements Serializable {
*
*
* @param leafNodes list of leaf nodes
* @param leafNodes list of leaf nodes
*/
*/
@Override
protected
void
gatherLeafNodes
(
List
<
LeafNode
>
leafNodes
)
{
protected
void
gatherLeafNodes
(
List
<
LeafNode
>
leafNodes
)
{
leafNodes
.
add
(
this
);
leafNodes
.
add
(
this
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment