org.compass.needle.coherence
Class FileBucketKey
java.lang.Object
org.compass.needle.coherence.FileBucketKey
- All Implemented Interfaces:
- com.tangosol.io.ExternalizableLite, Serializable, FileKey
public class FileBucketKey
- extends Object
- implements FileKey, com.tangosol.io.ExternalizableLite
- Author:
- kimchy
- See Also:
- Serialized Form
FileBucketKey
public FileBucketKey()
FileBucketKey
public FileBucketKey(String indexName,
String fileName,
long bucketIndex)
getIndexName
public String getIndexName()
- Description copied from interface:
FileKey
- Returns the index name.
- Specified by:
getIndexName
in interface FileKey
getFileName
public String getFileName()
- Description copied from interface:
FileKey
- Returns the file name (within the index name).
- Specified by:
getFileName
in interface FileKey
getBucketIndex
public long getBucketIndex()
getType
public byte getType()
- Description copied from interface:
FileKey
- Returns the type of the key.
- Specified by:
getType
in interface FileKey
- See Also:
FileKey.FILE_HEADER
,
FileKey.FILE_BUCKET
,
FileKey.FILE_LOCK
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
readExternal
public void readExternal(DataInput in)
throws IOException
- Specified by:
readExternal
in interface com.tangosol.io.ExternalizableLite
- Throws:
IOException
writeExternal
public void writeExternal(DataOutput out)
throws IOException
- Specified by:
writeExternal
in interface com.tangosol.io.ExternalizableLite
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2004-2009 The Compass Project.