Class Records

java.lang.Object
org.neo4j.driver.Records

public final class Records extends Object
Static utility methods for retaining records
Since:
1.0
See Also:
  • Method Details

    • column

      public static Function<Record,Value> column(int index)
      Returns a function mapping record to a value from a given index.
      Parameters:
      index - the index value
      Returns:
      the function
    • column

      public static Function<Record,Value> column(String key)
      Returns a function mapping record to a value from a given key.
      Parameters:
      key - the key value
      Returns:
      the function
    • column

      public static <T> Function<Record,T> column(int index, Function<Value,T> mapFunction)
      Returns a function mapping record to a value of a target type from a given index.
      Type Parameters:
      T - the target type
      Parameters:
      index - the index value
      mapFunction - the function mapping value to a value of a target type
      Returns:
      the function
    • column

      public static <T> Function<Record,T> column(String key, Function<Value,T> mapFunction)
      Returns a function mapping record to a value of a target type from a given key.
      Type Parameters:
      T - the target type
      Parameters:
      key - the key value
      mapFunction - the function mapping value to a value of a target type
      Returns:
      the function