Skip to content

Commit

Permalink
Add log info in dynamic one column data. (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyyes authored and MyXOF committed Jun 5, 2018
1 parent 396e211 commit 94ec2aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,10 @@ public void putBinary(Binary v) {
*/
private void rangeCheck(int idx) {
if (idx < 0) {
throw new IndexOutOfBoundsException("Index is negative: " + idx);
throw new IndexOutOfBoundsException("DynamicOneColumnData value range check, Index is negative: " + idx);
}
if (idx >= valueLength) {
throw new IndexOutOfBoundsException("Index : " + idx + ". Length : " + valueLength);
throw new IndexOutOfBoundsException("DynamicOneColumnData value range check, Index : " + idx + ". Length : " + valueLength);
}
}

Expand All @@ -352,19 +352,19 @@ private void rangeCheck(int idx) {
*/
private void rangeCheckForTime(int idx) {
if (idx < 0) {
throw new IndexOutOfBoundsException("Index is negative: " + idx);
throw new IndexOutOfBoundsException("DynamicOneColumnData time range check, Index is negative: " + idx);
}
if (idx >= timeLength) {
throw new IndexOutOfBoundsException("Index : " + idx + ". Length : " + valueLength);
throw new IndexOutOfBoundsException("DynamicOneColumnData time range check, Index : " + idx + ". Length : " + timeLength);
}
}

private void rangeCheckForEmptyTime(int idx) {
if (idx < 0) {
throw new IndexOutOfBoundsException("Index is negative: " + idx);
throw new IndexOutOfBoundsException("DynamicOneColumnData empty time range check, Index is negative: " + idx);
}
if (idx >= emptyTimeLength) {
throw new IndexOutOfBoundsException("Index : " + idx + ". Length : " + valueLength);
throw new IndexOutOfBoundsException("DynamicOneColumnData empty time range check, Index : " + idx + ". Length : " + emptyTimeLength);
}
}

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public TSRecord(long timestamp, String deltaObjectId) {
this.deltaObjectId = deltaObjectId;
}

public void setTime(long timestamp) {
this.time = timestamp;
}

public void addTuple(DataPoint tuple) {
this.dataPointList.add(tuple);
}
Expand Down

0 comments on commit 94ec2aa

Please sign in to comment.