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.Path asPath()  
    default java.lang.String asString()  
    default int compareTo​(Content<?> other)  
    default java.lang.CharSequence get()  
    java.nio.CharBuffer getCharBuffer()  
    default java.io.InputStream getInputStream()  
    T getLocation()  
    default java.io.Reader getReader()  
    java.net.URI getURI()  
    default java.net.URL getURL()  
  • 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:
      get in interface java.util.function.Supplier<T>
    • compareTo

      default int compareTo​(Content<?> other)
      Specified by:
      compareTo in interface java.lang.Comparable<T>
    • getReader

      default java.io.Reader getReader()
    • getInputStream

      default java.io.InputStream getInputStream()