Skip to content

Commit

Permalink
Fixed failures and added javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthteotia committed Aug 18, 2017
1 parent e5ff023 commit 1ef2022
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public int getBufferSizeFor(final int valueCount) {
}

public ArrowBuf getBuffer() {
return values.getBuffer();
return values.getDataBuffer();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,24 @@ interface Mutator {
void generateTestData(int values);
}

public ArrowBuf getDataBuffer();
/**
* Gets the underlying buffer associated with validity vector
*
* @return buffer
*/
public ArrowBuf getValidityBuffer();

/**
* Gets the underlying buffer associated with data vector
*
* @return buffer
*/
public ArrowBuf getDataBuffer();

/**
* Gets the underlying buffer associated with offset vector
*
* @return buffer
*/
public ArrowBuf getOffsetBuffer();
}
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,17 @@ public long getOffsetBufferAddress() {
}

@Override
public long getValidityBufferAddress() {
return (bits.getDataBuffer().memoryAddress());
public ArrowBuf getValidityBuffer() {
return (bits.getDataBuffer());
}

@Override
public long getDataBufferAddress() {
public ArrowBuf getDataBuffer() {
throw new UnsupportedOperationException();
}

@Override
public long getOffsetBufferAddress() {
public ArrowBuf getOffsetBuffer() {
throw new UnsupportedOperationException();
}

Expand Down

0 comments on commit 1ef2022

Please sign in to comment.