Class BlobPath
java.lang.Object
org.elasticsearch.common.blobstore.BlobPath
- All Implemented Interfaces:
java.lang.Iterable<java.lang.String>
public class BlobPath
extends java.lang.Object
implements java.lang.Iterable<java.lang.String>
The list of paths where a blob can reside. The contents of the paths are dependent upon the implementation of
BlobContainer
.-
Constructor Summary
Constructors Constructor Description BlobPath()
-
Method Summary
Modifier and Type Method Description BlobPath
add(java.lang.String path)
java.lang.String
buildAsString()
static BlobPath
cleanPath()
boolean
equals(java.lang.Object o)
int
hashCode()
java.util.Iterator<java.lang.String>
iterator()
BlobPath
parent()
Returns this path's parent path.java.lang.String[]
toArray()
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BlobPath
public BlobPath()
-
-
Method Details
-
cleanPath
-
iterator
public java.util.Iterator<java.lang.String> iterator()- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.String>
-
toArray
public java.lang.String[] toArray() -
add
-
buildAsString
public java.lang.String buildAsString() -
parent
Returns this path's parent path.- Returns:
- Parent path or
null
if there is none
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-