Java Code Examples for org.apache.hadoop.io.OutputBuffer

The following examples show how to use org.apache.hadoop.io.OutputBuffer. These examples are extracted from open source projects. 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 Project: hadoop   Source File: BasicTypeSorterBase.java    License: 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 Project: big-c   Source File: BasicTypeSorterBase.java    License: 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 Project: RDFS   Source File: BasicTypeSorterBase.java    License: 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 Project: hadoop-gpu   Source File: BasicTypeSorterBase.java    License: 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 Project: hadoop   Source File: BasicTypeSorterBase.java    License: 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 Project: hadoop   Source File: BasicTypeSorterBase.java    License: 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 Project: big-c   Source File: BasicTypeSorterBase.java    License: 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 Project: big-c   Source File: BasicTypeSorterBase.java    License: 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 Project: RDFS   Source File: BasicTypeSorterBase.java    License: 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 Project: RDFS   Source File: BasicTypeSorterBase.java    License: 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 Project: hadoop-gpu   Source File: BasicTypeSorterBase.java    License: 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 Project: hadoop-gpu   Source File: BasicTypeSorterBase.java    License: 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 Project: hadoop   Source File: BufferSorter.java    License: 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 Project: big-c   Source File: BufferSorter.java    License: 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 Project: RDFS   Source File: BufferSorter.java    License: 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 Project: hadoop-gpu   Source File: BufferSorter.java    License: 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);