com.tagtraum.perf.datastructures
Class IntegerSortPipe1

java.lang.Object
  |
  +--com.tagtraum.perf.datastructures.IntegerSortPipe1
All Implemented Interfaces:
java.nio.channels.Channel, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel

public class IntegerSortPipe1
extends java.lang.Object
implements java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel

Same functionality as IntegerSortPipe, but this implementation uses its own datastructure instead of a BitSet.

Version:
$Id: $
Author:
Hendrik Schreiber
See Also:
IntegerSortPipe

Constructor Summary
IntegerSortPipe1(int capacity, int offset)
           
 
Method Summary
 void close()
           
 boolean isOpen()
           
 int read(java.nio.ByteBuffer sortedInts)
           
 int write(java.nio.ByteBuffer unsortedInts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerSortPipe1

public IntegerSortPipe1(int capacity,
                        int offset)
Method Detail

read

public int read(java.nio.ByteBuffer sortedInts)
         throws java.io.IOException
Specified by:
read in interface java.nio.channels.ReadableByteChannel
java.io.IOException

write

public int write(java.nio.ByteBuffer unsortedInts)
          throws java.io.IOException
Specified by:
write in interface java.nio.channels.WritableByteChannel
java.io.IOException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface java.nio.channels.Channel

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.nio.channels.Channel
java.io.IOException


Copyright © 2002 Hendrik Schreiber
http://www.tagtraum.com/performance/
This software can be distributed under LGPL