Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tianchen92 committed Jul 16, 2019
1 parent e65473c commit 26d30be
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public interface BaseIntVector extends ValueVector {
void setWithPossibleTruncate(int index, long value);

/**
* Gets the value at index, note this value may haven been extended to long and will throw Exception if
* the value is null.
* Gets the value at index.
* This value may have been extended to long and will throw {@link NullPointerException}
* if the value is null. Note null check could be turned off via {@link NullCheckingForGet}.
*/
long getValueAsLong(int index);
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ public MinorType getMinorType() {
* @return element at given index
*/
public long get(int index) throws IllegalStateException {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return valueBuffer.getLong(index * TYPE_WIDTH);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,6 @@ public void setWithPossibleTruncate(int index, long value) {

@Override
public long getValueAsLong(int index) {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return this.get(index);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,6 @@ public void setWithPossibleTruncate(int index, long value) {

@Override
public long getValueAsLong(int index) {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return this.get(index);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,6 @@ public void setWithPossibleTruncate(int index, long value) {

@Override
public long getValueAsLong(int index) {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return this.get(index);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,6 @@ public void setWithPossibleTruncate(int index, long value) {

@Override
public long getValueAsLong(int index) {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return this.get(index);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,6 @@ public void setWithPossibleTruncate(int index, long value) {

@Override
public long getValueAsLong(int index) {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return this.get(index);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ public void setWithPossibleTruncate(int index, long value) {

@Override
public long getValueAsLong(int index) {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return this.get(index);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,6 @@ public void setWithPossibleTruncate(int index, long value) {

@Override
public long getValueAsLong(int index) {
if (NULL_CHECKING_ENABLED && isSet(index) == 0) {
throw new IllegalStateException("Value at index is null");
}
return this.get(index);
}

Expand Down

0 comments on commit 26d30be

Please sign in to comment.