Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for createTable (0.26 sec)

  1. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                      @Override
                      Table<String, Integer, Character> createTable() {
                        return HashBasedTable.create();
                      }
    
                      @Override
                      public Set<Cell<String, Integer, Character>> create(Object... elements) {
                        Table<String, Integer, Character> table = createTable();
                        for (Object element : elements) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                      @Override
                      Table<String, Integer, Character> createTable() {
                        return HashBasedTable.create();
                      }
    
                      @Override
                      public Set<Cell<String, Integer, Character>> create(Object... elements) {
                        Table<String, Integer, Character> table = createTable();
                        for (Object element : elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashBiMap.java

      private void init(int expectedSize) {
        checkNonnegative(expectedSize, "expectedSize");
        int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR);
        this.hashTableKToV = createTable(tableSize);
        this.hashTableVToK = createTable(tableSize);
        this.firstInKeyInsertionOrder = null;
        this.lastInKeyInsertionOrder = null;
        this.size = 0;
        this.mask = tableSize - 1;
        this.modCount = 0;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactHashSet.java

      /**
       * The hashtable object. This can be either:
       *
       * <ul>
       *   <li>a byte[], short[], or int[], with size a power of two, created by
       *       CompactHashing.createTable, whose values are either
       *       <ul>
       *         <li>UNSET, meaning "null pointer"
       *         <li>one plus an index into the entries and elements array
       *       </ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. migrator.go

    	// AutoMigrate
    	AutoMigrate(dst ...interface{}) error
    
    	// Database
    	CurrentDatabase() string
    	FullDataTypeOf(*schema.Field) clause.Expr
    	GetTypeAliases(databaseTypeName string) []string
    
    	// Tables
    	CreateTable(dst ...interface{}) error
    	DropTable(dst ...interface{}) error
    	HasTable(dst interface{}) bool
    	RenameTable(oldName, newName interface{}) error
    	GetTables() (tableList []string, err error)
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashSet.java

      /**
       * The hashtable object. This can be either:
       *
       * <ul>
       *   <li>a byte[], short[], or int[], with size a power of two, created by
       *       CompactHashing.createTable, whose values are either
       *       <ul>
       *         <li>UNSET, meaning "null pointer"
       *         <li>one plus an index into the entries and elements array
       *       </ul>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  7. migrator/migrator.go

    	err = m.DB.Raw("SELECT TABLE_NAME FROM information_schema.tables where TABLE_SCHEMA=?", m.CurrentDatabase()).
    		Scan(&tableList).Error
    	return
    }
    
    // CreateTable create table in database for values
    func (m Migrator) CreateTable(values ...interface{}) error {
    	for _, value := range m.ReorderModels(values, false) {
    		tx := m.DB.Session(&gorm.Session{})
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 28.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashing.java

        return Math.max(MIN_HASH_TABLE_SIZE, Hashing.closedTableSize(expectedSize + 1, 1.0f));
      }
    
      /** Creates and returns a properly-sized array with the given number of buckets. */
      static Object createTable(int buckets) {
        if (buckets < 2
            || buckets > Ints.MAX_POWER_OF_TWO
            || Integer.highestOneBit(buckets) != buckets) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashing.java

        return Math.max(MIN_HASH_TABLE_SIZE, Hashing.closedTableSize(expectedSize + 1, 1.0f));
      }
    
      /** Creates and returns a properly-sized array with the given number of buckets. */
      static Object createTable(int buckets) {
        if (buckets < 2
            || buckets > Ints.MAX_POWER_OF_TWO
            || Integer.highestOneBit(buckets) != buckets) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  10. tests/postgres_test.go

    		t.Skip()
    	}
    
    	type Thing struct {
    		gorm.Model
    		SomeID  string
    		OtherID string
    		Data    string
    	}
    
    	DB.Migrator().DropTable(&Thing{})
    	DB.Migrator().CreateTable(&Thing{})
    	if err := DB.Exec("ALTER TABLE things ADD CONSTRAINT some_id_other_id_unique UNIQUE (some_id, other_id)").Error; err != nil {
    		t.Error(err)
    	}
    
    	thing := Thing{
    		SomeID:  "1234",
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sat Oct 08 09:16:32 GMT 2022
    - 6.4K bytes
    - Viewed (3)
Back to top