Package io.nosqlbench.nb.api.content
Interface Content<T>
- Type Parameters:
T-
- All Superinterfaces:
java.lang.Comparable<Content<?>>,java.util.function.Supplier<java.lang.CharSequence>
- All Known Implementing Classes:
PathContent,URLContent
public interface Content<T> extends java.util.function.Supplier<java.lang.CharSequence>, java.lang.Comparable<Content<?>>
A generic content wrapper for anything that can be given to a NoSQLBench runtime
using a specific type of locator.
-
Method Summary
Modifier and Type Method Description java.nio.file.PathasPath()default java.lang.StringasString()default intcompareTo(Content<?> other)default java.lang.CharSequenceget()java.nio.CharBuffergetCharBuffer()default java.io.InputStreamgetInputStream()TgetLocation()default java.io.ReadergetReader()java.net.URIgetURI()default java.net.URLgetURL()
-
Method Details
-
getLocation
T getLocation() -
getURI
java.net.URI getURI() -
getURL
default java.net.URL getURL() -
asPath
java.nio.file.Path asPath() -
asString
default java.lang.String asString() -
getCharBuffer
java.nio.CharBuffer getCharBuffer() -
get
default java.lang.CharSequence get()- Specified by:
getin interfacejava.util.function.Supplier<T>
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<T>
-
getReader
default java.io.Reader getReader() -
getInputStream
default java.io.InputStream getInputStream()
-