org.elasticsearch.index
Class Index
java.lang.Object
org.elasticsearch.index.Index
- All Implemented Interfaces:
- java.io.Serializable, Streamable
@Immutable
public class Index
- extends java.lang.Object
- implements java.io.Serializable, Streamable
- See Also:
- Serialized Form
Constructor Summary |
Index(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Index
public Index(java.lang.String name)
name
public java.lang.String name()
getName
public java.lang.String getName()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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
readIndexName
public static Index readIndexName(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException