Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,20 @@ public class OzoneKeyLocation {
* Offset of this key.
*/
private final long offset;

/**
* KeyOffset of this key.
*/
private final long KeyOffset;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private final long KeyOffset;
private final long keyOffset;

use lower camel case: KeyOffset -> keyOffset

/**
* Constructs OzoneKeyLocation.
*/
public OzoneKeyLocation(long containerID, long localID,
long length, long offset) {
long length, long offset) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: seems like an unnecessary adjustment.

this.containerID = containerID;
this.localID = localID;
this.length = length;
this.offset = offset;
this.KeyOffset = length + offset;
}

/**
Expand Down Expand Up @@ -79,4 +83,9 @@ public long getOffset() {
return offset;
}

/**
* Returns the KeyOffset of this Key.
*/
public long getKeyOffset() { return KeyOffset; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public long getKeyOffset() { return KeyOffset; }
public long getKeyOffset() {
return keyOffset;
}

blocks should have line breaks.


}