Skip to content

Commit

Permalink
update javadoc and add unsafe method in BaseIntVector
Browse files Browse the repository at this point in the history
  • Loading branch information
tianchen92 committed Jul 19, 2019
1 parent 1562ae1 commit 3732a78
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ public interface BaseIntVector extends ValueVector {

/**
* Sets the value at index, note this value may need to be need truncated.
* Note this is safe version (i.e. call setSafe method in vector)
*/
void setWithPossibleTruncate(int index, long value);

/**
* Sets the value at index, note this value may need to be need truncated.
* Note this is unsafe version (i.e. call set method in vector)
*/
void setUnsafeWithPossibleTruncate(int index, long value);

/**
* Gets the value at index.
* This value may have been extended to long and will throw {@link NullPointerException}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, (int) value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, (int) value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, (int) value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, (int) value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, (int) value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, (int) value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, (int) value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, (int) value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, (int) value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, (int) value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, (int) value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, (int) value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ public void setWithPossibleTruncate(int index, long value) {
this.setSafe(index, value);
}

@Override
public void setUnsafeWithPossibleTruncate(int index, long value) {
this.set(index, value);
}

@Override
public long getValueAsLong(int index) {
return this.get(index);
Expand Down

0 comments on commit 3732a78

Please sign in to comment.