Class RowArray

  • All Implemented Interfaces:
    EmbeddedRelationalArray, com.apple.foundationdb.relational.api.RelationalArray, java.sql.Array, java.sql.Wrapper

    @API(EXPERIMENTAL)
    public class RowArray
    extends java.lang.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.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int getBaseType()  
      com.apple.foundationdb.relational.api.ArrayMetaData getMetaData()  
      com.apple.foundationdb.relational.api.RelationalResultSet getResultSet​(long oneBasedIndex, int count)  
      int hashCode()  
      java.lang.String toString()  
      • 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 Detail

      • RowArray

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

      • getResultSet

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

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

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

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object