Class RowArray

java.lang.Object
com.apple.foundationdb.relational.api.RowArray
All Implemented Interfaces:
EmbeddedRelationalArray, com.apple.foundationdb.relational.api.RelationalArray, Array, Wrapper

@API(EXPERIMENTAL) public class RowArray extends Object implements com.apple.foundationdb.relational.api.RelationalArray, EmbeddedRelationalArray
An implementation of a RelationalArray that is materialized, that is, it holds all its elements in a List. The element can themselves be materialized or not. This class is not thread-safe, and in general should not be used in concurrent environments.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.apple.foundationdb.relational.api.EmbeddedRelationalArray

    EmbeddedRelationalArray.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    RowArray(List<?> elements, com.apple.foundationdb.relational.api.ArrayMetaData arrayMetaData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     
    com.apple.foundationdb.relational.api.ArrayMetaData
     
    com.apple.foundationdb.relational.api.RelationalResultSet
    getResultSet(long oneBasedIndex, int count)
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.apple.foundationdb.relational.api.RelationalArray

    free, getArray, getArray, getArray, getArray, getBaseTypeName, getResultSet, getResultSet, getResultSet, isWrapperFor, unwrap
  • Constructor Details

    • RowArray

      public RowArray(@Nonnull List<?> elements, @Nonnull com.apple.foundationdb.relational.api.ArrayMetaData arrayMetaData)
  • Method Details

    • getResultSet

      public com.apple.foundationdb.relational.api.RelationalResultSet getResultSet(long oneBasedIndex, int count) throws SQLException
      Specified by:
      getResultSet in interface Array
      Specified by:
      getResultSet in interface com.apple.foundationdb.relational.api.RelationalArray
      Throws:
      SQLException
    • getBaseType

      public int getBaseType() throws SQLException
      Specified by:
      getBaseType in interface Array
      Throws:
      SQLException
    • getMetaData

      @Nonnull public com.apple.foundationdb.relational.api.ArrayMetaData getMetaData() throws SQLException
      Specified by:
      getMetaData in interface com.apple.foundationdb.relational.api.RelationalArray
      Throws:
      SQLException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object