org.apache.cassandra.db
Class FileStruct

java.lang.Object
  extended by org.apache.cassandra.db.FileStruct
All Implemented Interfaces:
java.lang.Comparable<FileStruct>, java.util.Iterator<java.lang.String>

public class FileStruct
extends java.lang.Object
implements java.lang.Comparable<FileStruct>, java.util.Iterator<java.lang.String>


Constructor Summary
FileStruct(IFileReader reader, IPartitioner partitioner)
           
 
Method Summary
 void advance()
           
 void close()
           
 int compareTo(FileStruct f)
           
 DataInputBuffer getBufIn()
           
 java.lang.String getFileName()
           
 java.lang.String getKey()
           
 boolean hasNext()
           
 boolean isExhausted()
           
 java.lang.String next()
          do not mix with manual calls to advance().
 void remove()
           
 void seekTo(java.lang.String seekKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStruct

public FileStruct(IFileReader reader,
                  IPartitioner partitioner)
Method Detail

getFileName

public java.lang.String getFileName()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

isExhausted

public boolean isExhausted()

getBufIn

public DataInputBuffer getBufIn()

getKey

public java.lang.String getKey()

compareTo

public int compareTo(FileStruct f)
Specified by:
compareTo in interface java.lang.Comparable<FileStruct>

seekTo

public void seekTo(java.lang.String seekKey)

advance

public void advance()
             throws java.io.IOException
Throws:
java.io.IOException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.lang.String>

next

public java.lang.String next()
do not mix with manual calls to advance().

Specified by:
next in interface java.util.Iterator<java.lang.String>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<java.lang.String>


Copyright © 2009 The Apache Software Foundation