Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 356 for index (0.04 sec)

  1. pkg/kube/krt/index.go

    import (
    	"sync"
    
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/util/sets"
    )
    
    // Index maintains a simple index over an informer
    type Index[I any, K comparable] struct {
    	mu      sync.RWMutex
    	objects map[K]sets.Set[Key[I]]
    	c       Collection[I]
    	extract func(o I) []K
    }
    
    // Lookup finds all objects matching a given key
    func (i *Index[I, K]) Lookup(k K) []I {
    	i.mu.RLock()
    	defer i.mu.RUnlock()
    	var res []I
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 04:53:45 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. schema/index.go

    				})
    
    				indexes[index.Name] = idx
    			}
    		}
    	}
    	for _, index := range indexes {
    		if index.Class == "UNIQUE" && len(index.Fields) == 1 {
    			index.Fields[0].Field.UniqueIndex = index.Name
    		}
    	}
    	return indexes
    }
    
    func (schema *Schema) LookIndex(name string) *Index {
    	if schema != nil {
    		indexes := schema.ParseIndexes()
    		for _, index := range indexes {
    			if index.Name == name {
    				return &index
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. schema/index_test.go

    	Name7        string `gorm:"index:type"`
    	Name8        string `gorm:"index:,length:10;index:,collate:utf8"`
    
    	// Composite Index: Flattened structure.
    	Data0A string `gorm:"index:,composite:comp_id0"`
    	Data0B string `gorm:"index:,composite:comp_id0"`
    
    	// Composite Index: Nested structure.
    	Data1A string `gorm:"index:,composite:comp_id1"`
    	CompIdxLevel1C
    
    	// Composite Index: Unique and priority.
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/route/interface.go

    package route
    
    // An InterfaceMessage represents an interface message.
    type InterfaceMessage struct {
    	Version int    // message version
    	Type    int    // message type
    	Flags   int    // interface flags
    	Index   int    // interface index
    	Name    string // interface name
    	Addrs   []Addr // addresses
    
    	extOff int    // offset of header extension
    	raw    []byte // raw message
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/internal/src/xpos.go

    // For positions with different bases, ordering is by base index.
    func (p XPos) Before(q XPos) bool {
    	n, m := p.index, q.index
    	return n < m || n == m && p.lico < q.lico
    }
    
    // SameFile reports whether p and q are positions in the same file.
    func (p XPos) SameFile(q XPos) bool {
    	return p.index == q.index
    }
    
    // SameFileAndLine reports whether p and q are positions on the same line in the same file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. src/index/suffixarray/suffixarray.go

    }
    
    // lookupAll returns a slice into the matching region of the index.
    // The runtime is O(log(N)*len(s)).
    func (x *Index) lookupAll(s []byte) ints {
    	// find matching suffix index range [i:j]
    	// find the first index where s would be the prefix
    	i := sort.Search(x.sa.len(), func(i int) bool { return bytes.Compare(x.at(i), s) >= 0 })
    	// starting at i, find the first index at which s is not a prefix
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. src/container/heap/example_pq_test.go

    	pq[i], pq[j] = pq[j], pq[i]
    	pq[i].index = i
    	pq[j].index = j
    }
    
    func (pq *PriorityQueue) Push(x any) {
    	n := len(*pq)
    	item := x.(*Item)
    	item.index = n
    	*pq = append(*pq, item)
    }
    
    func (pq *PriorityQueue) Pop() any {
    	old := *pq
    	n := len(old)
    	item := old[n-1]
    	old[n-1] = nil  // don't stop the GC from reclaiming the item eventually
    	item.index = -1 // for safety
    	*pq = old[0 : n-1]
    	return item
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:27:36 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/util/find_errorline_utils.go

    	// Required parameters: route rule, route rule index, route index.
    	DestinationHost = "{.spec.%s[%d].route[%d].destination.host}"
    
    	// Path for mirror host in VirtualService.
    	// Required parameters: http index.
    	MirrorHost = "{.spec.http[%d].mirror.host}"
    
    	// Path for mirrors host in VirtualService.
    	// Required parameters: http index, mirror index.
    	MirrorsHost = "{.spec.http[%d].mirrors[%d].host}"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 15:18:05 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. src/net/interface.go

    	for _, ifi := range ift {
    		zc.toIndex[ifi.Name] = ifi.Index
    		if _, ok := zc.toName[ifi.Index]; !ok {
    			zc.toName[ifi.Index] = ifi.Name
    		}
    	}
    	return true
    }
    
    func (zc *ipv6ZoneCache) name(index int) string {
    	if index == 0 {
    		return ""
    	}
    	updated := zoneCache.update(nil, false)
    	zoneCache.RLock()
    	name, ok := zoneCache.toName[index]
    	zoneCache.RUnlock()
    	if !ok && !updated {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/stringer.go

    			const prefix = "= obj.ABase"
    			index := strings.Index(line, prefix)
    			if index < 0 {
    				continue
    			}
    			// It's on. Start with the header.
    			fmt.Fprintf(out, header, *input, *output, *pkg, *pkg)
    			on = true
    			line = line[:index]
    		}
    		// Strip comments so their text won't defeat our heuristic.
    		index := strings.Index(line, "//")
    		if index > 0 {
    			line = line[:index]
    		}
    		index = strings.Index(line, "/*")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top