org.compass.needle.gigaspaces.store
Class FileBucketEntry

java.lang.Object
  extended by org.compass.needle.gigaspaces.store.FileBucketEntry
All Implemented Interfaces:
Externalizable, Serializable, net.jini.core.entry.Entry

public class FileBucketEntry
extends Object
implements net.jini.core.entry.Entry, Externalizable

A file bucket entry holds a bucket (part) of the file content.

Author:
kimchy
See Also:
Serialized Form

Field Summary
 Long bucketIndex
           
 byte[] data
           
 String fileName
           
 String indexName
           
 
Constructor Summary
FileBucketEntry()
           
FileBucketEntry(String indexName, String fileName)
           
FileBucketEntry(String indexName, String fileName, long bucketIndex, byte[] data)
           
 
Method Summary
static String[] __getSpaceIndexedFields()
           
 byte[] getData()
           
 String getFileName()
           
 String getIndexName()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexName

public String indexName

fileName

public String fileName

bucketIndex

public Long bucketIndex

data

public byte[] data
Constructor Detail

FileBucketEntry

public FileBucketEntry()

FileBucketEntry

public FileBucketEntry(String indexName,
                       String fileName)

FileBucketEntry

public FileBucketEntry(String indexName,
                       String fileName,
                       long bucketIndex,
                       byte[] data)
Method Detail

getIndexName

public String getIndexName()

getFileName

public String getFileName()

getData

public byte[] getData()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

__getSpaceIndexedFields

public static String[] __getSpaceIndexedFields()


Copyright (c) 2004-2009 The Compass Project.