com.faunos.skwish.sys.filters
Class AppendProtectedFilterSegment
java.lang.Object
  
com.faunos.skwish.Segment
      
com.faunos.skwish.sys.filters.FilterSegment
          
com.faunos.skwish.sys.filters.AppendProtectedFilterSegment
- All Implemented Interfaces: 
 - Range
 
- Direct Known Subclasses: 
 - DeleteSetFilterSegment, SubSegment
 
public class AppendProtectedFilterSegment
- extends FilterSegment
 
A filter that prevents appending entries to an underlying Segment.
- Author:
 
  - Babak Farhang
 
 
 
 
 
 
 
| Methods inherited from class com.faunos.skwish.Segment | 
contains, delete, delete, getEntry, getEntrySize, getEntryStream, hi, isDeleted, isDeleted, killNext, lo, toString | 
 
 
AppendProtectedFilterSegment
public AppendProtectedFilterSegment(Segment inner)
- Creates a new instance with the underlying 
inner segment.
 
insertEntry
public long insertEntry(ByteBuffer entry)
                 throws IOException
- Unsupported operation. Throws 
UnsupportedOperationException.
- Overrides:
 insertEntry in class FilterSegment
 
- Parameters:
 entry - they contents of the entry
- Returns:
 - the ID assigned to the entry
 - Throws:
 IOException
 
 
insertEntry
public long insertEntry(ReadableByteChannel entry)
                 throws IOException
- Unsupported operation. Throws 
UnsupportedOperationException.
- Overrides:
 insertEntry in class FilterSegment
 
- Throws:
 IOException
 
 
killNext
public long killNext(int count)
              throws IOException
- Unsupported operation. Throws 
UnsupportedOperationException.
- Overrides:
 killNext in class FilterSegment
 
- Parameters:
 count - the number of entries to kill (must be greater than 1)
- Returns:
 - the value that getNextId() returns after this method has completed
 - Throws:
 IOException