org.apache.cassandra.streaming
Class PendingFile

java.lang.Object
  extended by org.apache.cassandra.streaming.PendingFile

public class PendingFile
extends java.lang.Object

Represents portions of a file to be streamed between nodes.


Nested Class Summary
static class PendingFile.PendingFileSerializer
           
 
Field Summary
 java.lang.String component
           
 Descriptor desc
           
 long progress
           
 java.util.List<Pair<java.lang.Long,java.lang.Long>> sections
           
 long size
           
 
Constructor Summary
PendingFile(Descriptor desc, PendingFile pf)
           
PendingFile(SSTable sstable, Descriptor desc, java.lang.String component, java.util.List<Pair<java.lang.Long,java.lang.Long>> sections)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getFilename()
           
 int hashCode()
           
static PendingFile.PendingFileSerializer serializer()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

desc

public final Descriptor desc

component

public final java.lang.String component

sections

public final java.util.List<Pair<java.lang.Long,java.lang.Long>> sections

size

public final long size

progress

public long progress
Constructor Detail

PendingFile

public PendingFile(Descriptor desc,
                   PendingFile pf)

PendingFile

public PendingFile(SSTable sstable,
                   Descriptor desc,
                   java.lang.String component,
                   java.util.List<Pair<java.lang.Long,java.lang.Long>> sections)
Method Detail

serializer

public static PendingFile.PendingFileSerializer serializer()

getFilename

public java.lang.String getFilename()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 The Apache Software Foundation