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 BlobPathadd(java.lang.String path)java.lang.StringbuildAsString()static BlobPathcleanPath()booleanequals(java.lang.Object o)inthashCode()java.util.Iterator<java.lang.String>iterator()BlobPathparent()Returns this path's parent path.java.lang.String[]toArray()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
iteratorin 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
nullif there is none
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-