org.apache.hadoop.io.OutputBuffer Java Examples

The following examples show how to use org.apache.hadoop.io.OutputBuffer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BasicTypeSorterBase.java    From hadoop with Apache License 2.0 5 votes vote down vote up
public MRSortResultIterator(OutputBuffer keyValBuffer, 
                            int []pointers, int []startOffsets,
                            int []keyLengths, int []valLengths) {
  this.count = pointers.length;
  this.pointers = pointers;
  this.startOffsets = startOffsets;
  this.keyLengths = keyLengths;
  this.valLengths = valLengths;
  this.keyValBuffer = keyValBuffer;
}
 
Example #2
Source File: BasicTypeSorterBase.java    From big-c with Apache License 2.0 5 votes vote down vote up
public MRSortResultIterator(OutputBuffer keyValBuffer, 
                            int []pointers, int []startOffsets,
                            int []keyLengths, int []valLengths) {
  this.count = pointers.length;
  this.pointers = pointers;
  this.startOffsets = startOffsets;
  this.keyLengths = keyLengths;
  this.valLengths = valLengths;
  this.keyValBuffer = keyValBuffer;
}
 
Example #3
Source File: BasicTypeSorterBase.java    From RDFS with Apache License 2.0 5 votes vote down vote up
public MRSortResultIterator(OutputBuffer keyValBuffer, 
                            int []pointers, int []startOffsets,
                            int []keyLengths, int []valLengths) {
  this.count = pointers.length;
  this.pointers = pointers;
  this.startOffsets = startOffsets;
  this.keyLengths = keyLengths;
  this.valLengths = valLengths;
  this.keyValBuffer = keyValBuffer;
}
 
Example #4
Source File: BasicTypeSorterBase.java    From hadoop-gpu with Apache License 2.0 5 votes vote down vote up
public MRSortResultIterator(OutputBuffer keyValBuffer, 
                            int []pointers, int []startOffsets,
                            int []keyLengths, int []valLengths) {
  this.count = pointers.length;
  this.pointers = pointers;
  this.startOffsets = startOffsets;
  this.keyLengths = keyLengths;
  this.valLengths = valLengths;
  this.keyValBuffer = keyValBuffer;
}
 
Example #5
Source File: BasicTypeSorterBase.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public void setInputBuffer(OutputBuffer buffer) {
  //store a reference to the keyValBuffer that we need to read during sort
  this.keyValBuffer = buffer;
}
 
Example #6
Source File: BasicTypeSorterBase.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private void reset(OutputBuffer d, int start, int length) 
  throws IOException {
  data = d.getData();
  this.start = start;
  dataSize = length;
}
 
Example #7
Source File: BasicTypeSorterBase.java    From big-c with Apache License 2.0 4 votes vote down vote up
public void setInputBuffer(OutputBuffer buffer) {
  //store a reference to the keyValBuffer that we need to read during sort
  this.keyValBuffer = buffer;
}
 
Example #8
Source File: BasicTypeSorterBase.java    From big-c with Apache License 2.0 4 votes vote down vote up
private void reset(OutputBuffer d, int start, int length) 
  throws IOException {
  data = d.getData();
  this.start = start;
  dataSize = length;
}
 
Example #9
Source File: BasicTypeSorterBase.java    From RDFS with Apache License 2.0 4 votes vote down vote up
public void setInputBuffer(OutputBuffer buffer) {
  //store a reference to the keyValBuffer that we need to read during sort
  this.keyValBuffer = buffer;
}
 
Example #10
Source File: BasicTypeSorterBase.java    From RDFS with Apache License 2.0 4 votes vote down vote up
private void reset(OutputBuffer d, int start, int length) 
  throws IOException {
  data = d.getData();
  this.start = start;
  dataSize = length;
}
 
Example #11
Source File: BasicTypeSorterBase.java    From hadoop-gpu with Apache License 2.0 4 votes vote down vote up
public void setInputBuffer(OutputBuffer buffer) {
  //store a reference to the keyValBuffer that we need to read during sort
  this.keyValBuffer = buffer;
}
 
Example #12
Source File: BasicTypeSorterBase.java    From hadoop-gpu with Apache License 2.0 4 votes vote down vote up
private void reset(OutputBuffer d, int start, int length) 
  throws IOException {
  data = d.getData();
  this.start = start;
  dataSize = length;
}
 
Example #13
Source File: BufferSorter.java    From hadoop with Apache License 2.0 2 votes vote down vote up
/** The user class invokes this method to set the buffer that the specific 
 * sort algorithm should "indirectly" sort (generally, sort algorithm impl 
 * should access this buffer via comparators and sort offset-indices to the
 * buffer).
 * @param buffer the map output buffer
 */
public void setInputBuffer(OutputBuffer buffer);
 
Example #14
Source File: BufferSorter.java    From big-c with Apache License 2.0 2 votes vote down vote up
/** The user class invokes this method to set the buffer that the specific 
 * sort algorithm should "indirectly" sort (generally, sort algorithm impl 
 * should access this buffer via comparators and sort offset-indices to the
 * buffer).
 * @param buffer the map output buffer
 */
public void setInputBuffer(OutputBuffer buffer);
 
Example #15
Source File: BufferSorter.java    From RDFS with Apache License 2.0 2 votes vote down vote up
/** The user class invokes this method to set the buffer that the specific 
 * sort algorithm should "indirectly" sort (generally, sort algorithm impl 
 * should access this buffer via comparators and sort offset-indices to the
 * buffer).
 * @param buffer the map output buffer
 */
public void setInputBuffer(OutputBuffer buffer);
 
Example #16
Source File: BufferSorter.java    From hadoop-gpu with Apache License 2.0 2 votes vote down vote up
/** The user class invokes this method to set the buffer that the specific 
 * sort algorithm should "indirectly" sort (generally, sort algorithm impl 
 * should access this buffer via comparators and sort offset-indices to the
 * buffer).
 * @param buffer the map output buffer
 */
public void setInputBuffer(OutputBuffer buffer);