Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for getDest (0.04 sec)

  1. cmd/warm-backend-s3.go

    func (s3 *warmBackendS3) ToObjectError(err error, params ...string) error {
    	object := ""
    	if len(params) >= 1 {
    		object = params[0]
    	}
    
    	return ErrorRespToObjectError(err, s3.Bucket, s3.getDest(object))
    }
    
    func (s3 *warmBackendS3) getDest(object string) string {
    	destObj := object
    	if s3.Prefix != "" {
    		destObj = fmt.Sprintf("%s/%s", s3.Prefix, object)
    	}
    	return destObj
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Jun 08 16:13:30 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. cmd/warm-backend-gcs.go

    }
    
    func (gcs *warmBackendGCS) getDest(object string) string {
    	destObj := object
    	if gcs.Prefix != "" {
    		destObj = fmt.Sprintf("%s/%s", gcs.Prefix, object)
    	}
    	return destObj
    }
    
    func (gcs *warmBackendGCS) PutWithMeta(ctx context.Context, key string, data io.Reader, length int64, meta map[string]string) (remoteVersionID, error) {
    	object := gcs.client.Bucket(gcs.Bucket).Object(gcs.getDest(key))
    	w := object.NewWriter(ctx)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            assertThat(e.getPrevious(), is(nullValue()));
            assertThat(e.getNext().getElement(), is("2"));
            e = list.getLastEntry();
            assertThat(e.getNext(), is(nullValue()));
            assertThat(e.getPrevious().getElement(), is("2"));
            list.getEntry(1).remove();
            assertThat(list.getFirst(), is("1"));
            assertThat(list.getLast(), is("3"));
            list.getLastEntry().remove();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

          Iterators.advance(iterator, position);
          return Iterators.getNext(iterator, defaultValue);
        }
      }
    
      /**
       * Returns the first element in {@code iterable} or {@code defaultValue} if the iterable is empty.
       * The {@link Iterators} analog to this method is {@link Iterators#getNext}.
       *
       * <p>If no default value is desired (and the caller instead wants a {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testGetNext_withDefault_two() {
        Iterator<String> iterator = asList("foo", "bar").iterator();
        assertEquals("foo", Iterators.getNext(iterator, "x"));
      }
    
      public void testGetLast_basic() {
        List<String> list = new ArrayList<>();
        list.add("a");
        list.add("b");
        assertEquals("b", getLast(list.iterator()));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testGetNext_withDefault_two() {
        Iterator<String> iterator = asList("foo", "bar").iterator();
        assertEquals("foo", Iterators.getNext(iterator, "x"));
      }
    
      public void testGetLast_basic() {
        List<String> list = new ArrayList<>();
        list.add("a");
        list.add("b");
        assertEquals("b", getLast(list.iterator()));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterables.java

          Iterators.advance(iterator, position);
          return Iterators.getNext(iterator, defaultValue);
        }
      }
    
      /**
       * Returns the first element in {@code iterable} or {@code defaultValue} if the iterable is empty.
       * The {@link Iterators} analog to this method is {@link Iterators#getNext}.
       *
       * <p>If no default value is desired (and the caller instead wants a {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      public void testSubList_startNegative() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().subList(-1, 0));
      }
    
      public void testSubList_endTooLarge() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().subList(0, getNumElements() + 1));
      }
    
      public void testSubList_startGreaterThanEnd() {
        try {
          getList().subList(1, 0);
          fail("subList(1, 0) should throw");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/SLinkedList.java

                throw new NoSuchElementException();
            }
            return getFirstEntry().element;
        }
    
        /**
         * Returns the last element.
         *
         * @return the last element
         */
        public E getLast() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            return getLastEntry().element;
        }
    
        /**
         * Returns the first entry.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

        }
    
        @Test
        @DisplayName("Test getNext returns null when no chained message")
        void testGetNextWithNoChainedMessage() {
            // Given
            when(request.getNext()).thenReturn(null);
    
            // When
            CommonServerMessageBlockRequest result = request.getNext();
    
            // Then
            assertNull(result);
            verify(request, times(1)).getNext();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top