org.infinispan.lucene
Class FileCacheKey

java.lang.Object
  extended by org.infinispan.lucene.FileCacheKey
All Implemented Interfaces:
Serializable

public final class FileCacheKey
extends Object
implements Serializable

Used as a key for file headers in a cache

Since:
4.0
Author:
Lukasz Moren, Sanne Grinovero
See Also:
Serialized Form

Nested Class Summary
static class FileCacheKey.Externalizer
           
 
Constructor Summary
FileCacheKey(String indexName, String fileName)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFileName()
          Get the fileName.
 String getIndexName()
          Get the indexName.
 int hashCode()
           
 String toString()
          Changing the encoding could break backwards compatibility
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileCacheKey

public FileCacheKey(String indexName,
                    String fileName)
Method Detail

getIndexName

public String getIndexName()
Get the indexName.

Returns:
the indexName.

getFileName

public String getFileName()
Get the fileName.

Returns:
the fileName.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Changing the encoding could break backwards compatibility

Overrides:
toString in class Object
See Also:
LuceneKey2StringMapper.getKeyMapping(String)

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.