text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (ac *AddressCache) UTXOs(addr string) ([]*dbtypes.AddressTxnOutput, *BlockID) { aci := ac.addressCacheItem(addr) if aci == nil { ac.cacheMetrics.utxoMiss() return nil, nil } ac.cacheMetrics.utxoHit() return aci.UTXOs() }
[ -0.5996027588844299, 0.795280396938324, 0.5269321799278259, -0.5078177452087402, -1.5193979740142822, -0.7730082869529724, -0.39621502161026, -0.37730368971824646, 1.0311602354049683, 1.2261462211608887, -0.4190457761287689, -0.6025598049163818, 0.8322785496711731, -0.23662686347961426, ...
func (ac *AddressCache) HistoryChart(addr string, addrChart dbtypes.HistoryChart, chartGrouping dbtypes.TimeBasedGrouping) (*dbtypes.ChartsData, *BlockID) { aci := ac.addressCacheItem(addr) if aci == nil { ac.cacheMetrics.historyMiss() return nil, nil } cd, blockID := aci.HistoryChart(addrChart, chartGrouping...
[ 0.674338161945343, 0.5726041197776794, 0.6454832553863525, -0.7385672926902771, -0.9876641631126404, -0.563052237033844, 0.5562143921852112, -0.7683094143867493, 0.42432981729507446, 0.12460993230342865, 0.3711380958557129, 0.8489058613777161, -0.007641938049346209, 0.4734252393245697, 0...
func (ac *AddressCache) Rows(addr string) ([]*dbtypes.AddressRowCompact, *BlockID) { aci := ac.addressCacheItem(addr) if aci == nil { ac.cacheMetrics.rowMiss() return nil, nil } ac.cacheMetrics.rowHit() return aci.Rows() }
[ -0.2663048505783081, 1.002487301826477, 0.33247241377830505, -0.1921541541814804, -0.890112042427063, -0.7903453707695007, -0.1427469104528427, -0.2450060099363327, 1.5160717964172363, 0.45273032784461975, 0.5267605781555176, -0.033407583832740784, 0.4791603088378906, 0.7172654867172241, ...
func (ac *AddressCache) NumRows(addr string) (int, *BlockID) { aci := ac.addressCacheItem(addr) if aci == nil { return -1, nil } return aci.NumRows() }
[ -0.02039775438606739, 0.666675865650177, 0.33634331822395325, 0.06864473968744278, -1.2338192462921143, -1.4003585577011108, 0.38833311200141907, 0.3912675380706787, 1.5365896224975586, 0.672703206539154, -0.3289414644241333, 0.03530518338084221, -0.04541933536529541, 0.873288631439209, ...
func (ac *AddressCache) Transactions(addr string, N, offset int64, txnType dbtypes.AddrTxnViewType) ([]*dbtypes.AddressRow, *BlockID, error) { merged, err := txnType.IsMerged() if err != nil { return nil, nil, err } if merged { rowsMerged, blockID, err := ac.TransactionsMerged(addr, N, offset, txnType) rows ...
[ -0.5299025774002075, 1.1231913566589355, 0.7824418544769287, -0.541245698928833, -0.8758743405342102, -1.1553795337677002, 0.1416684091091156, -0.09294719249010086, 1.3683052062988281, 0.6326980590820312, 0.09232493489980698, -0.5639878511428833, 0.17060516774654388, 0.9397805333137512, ...
func (ac *AddressCache) TransactionsMerged(addr string, N, offset int64, txnType dbtypes.AddrTxnViewType) ([]*dbtypes.AddressRowMerged, *BlockID, error) { aci := ac.addressCacheItem(addr) if aci == nil { ac.cacheMetrics.rowMiss() return nil, nil, nil // cache miss is not an error; *BlockID must be nil } ac.cach...
[ -0.3476466238498688, 0.7769315838813782, 0.7095028758049011, -0.6452485918998718, -0.6156988143920898, -0.9163798689842224, -0.2576758861541748, -0.4283943772315979, 0.9382493495941162, 0.21296323835849762, -0.7802907228469849, -0.18629172444343567, 0.1254282146692276, 1.0308300256729126, ...
func (ac *AddressCache) TransactionsCompact(addr string, N, offset int64, txnType dbtypes.AddrTxnViewType) ([]*dbtypes.AddressRowCompact, *BlockID, error) { aci := ac.addressCacheItem(addr) if aci == nil { ac.cacheMetrics.rowMiss() return nil, nil, nil // cache miss is not an error; *BlockID must be nil } ac.ca...
[ 0.40878140926361084, 0.6019218564033508, 0.7413318753242493, -1.1330674886703491, -1.5418492555618286, -1.0676486492156982, 0.19906874001026154, -0.7179721593856812, 0.5324022769927979, 1.0173331499099731, 0.37218087911605835, -0.27371037006378174, 0.5703656077384949, 0.34564411640167236, ...
func (ac *AddressCache) Length() (numAddrs, numTxns, numUTXOs int) { ac.mtx.RLock() defer ac.mtx.RUnlock() return ac.length() }
[ -0.31436145305633545, 0.4731578528881073, 0.0039853439666330814, -0.33961206674575806, -0.1293245404958725, -0.0578744113445282, 0.6336717009544373, 0.2910660207271576, 0.9493709206581116, 0.2983037531375885, -0.900406002998352, -0.02508574165403843, 0.5550181269645691, -0.2888752818107605...
func (ac *AddressCache) NumAddresses() int { ac.mtx.RLock() defer ac.mtx.RUnlock() return len(ac.a) }
[ -0.6381503343582153, 0.48612093925476074, 0.13969072699546814, -0.9279463291168213, -0.7946252822875977, -0.7703645825386047, 0.5200204849243164, -0.01397777907550335, 0.8919405937194824, -0.38306915760040283, -0.3436449468135834, -0.1351856291294098, -0.5034382939338684, -0.06365852057933...
func (ac *AddressCache) StoreRows(addr string, rows []*dbtypes.AddressRow, block *BlockID) bool { if block == nil || ac.cap < 1 || ac.capAddr < 1 { return false } rowsCompact := []*dbtypes.AddressRowCompact{} if rows != nil { rowsCompact = dbtypes.CompactRows(rows) } // respect cache capacity return ac.Sto...
[ -0.538880467414856, 1.0019006729125977, 0.48312970995903015, -0.3659684360027313, -1.1743998527526855, -0.3102054297924042, 0.05114809423685074, 0.35192108154296875, 1.5518035888671875, 0.5543521046638489, 0.1161368116736412, -0.4191838204860687, -0.6170288324356079, 1.053856611251831, -...
func (ac *AddressCache) StoreHistoryChart(addr string, addrChart dbtypes.HistoryChart, chartGrouping dbtypes.TimeBasedGrouping, cd *dbtypes.ChartsData, block *BlockID) bool { if block == nil || ac.cap < 1 || ac.capAddr < 1 { return false } if int(chartGrouping) >= dbtypes.NumIntervals { log.Errorf("Invalid cha...
[ 0.10704716295003891, 0.6298040747642517, 0.734462320804596, -0.44708675146102905, -0.7546813488006592, 0.2699369490146637, 0.4319406747817993, -0.8005452156066895, 0.38117656111717224, -0.06966257095336914, -0.11620822548866272, 0.24740153551101685, -0.6451256275177002, 0.21245267987251282...
func (ac *AddressCache) StoreRowsCompact(addr string, rows []*dbtypes.AddressRowCompact, block *BlockID) bool { if block == nil || ac.cap < 1 || ac.capAddr < 1 { return false } ac.mtx.Lock() defer ac.mtx.Unlock() if rows == nil { rows = []*dbtypes.AddressRowCompact{} } // respect cache capacity return ac...
[ -0.3103608191013336, -0.025477135553956032, 0.6217466592788696, -0.4090222716331482, -0.7068957686424255, 0.017195751890540123, 0.37019824981689453, 0.40266063809394836, 1.3810123205184937, 0.8416932821273804, -0.13803648948669434, -0.45514944195747375, -0.47158849239349365, 0.826598763465...
func (ac *AddressCache) StoreBalance(addr string, balance *dbtypes.AddressBalance, block *BlockID) bool { if block == nil || ac.cap < 1 || ac.capAddr < 1 { return false } ac.mtx.Lock() defer ac.mtx.Unlock() aci := ac.a[addr] var bal dbtypes.AddressBalance if balance == nil { bal.Address = addr } else { ...
[ -0.2579297423362732, 0.31171220541000366, 0.7082615494728088, -0.14794762432575226, -0.5691463351249695, 0.16605758666992188, -0.07147116959095001, -0.7373284101486206, 1.1170495748519897, 0.370604932308197, -0.007039038930088282, -0.4368162155151367, -0.7613682746887207, 0.607738792896270...
func (ac *AddressCache) StoreUTXOs(addr string, utxos []*dbtypes.AddressTxnOutput, block *BlockID) bool { if block == nil || ac.cap < 1 || ac.capAddr < 1 { return false } // Only allow storing maxUTXOsPerAddr. if len(utxos) > ac.maxUTXOsPerAddr && addr != ac.ProjectAddress { return false } ac.mtx.Lock() de...
[ -0.6247904300689697, 0.7540344595909119, 0.5982660055160522, -0.22344401478767395, -1.3818638324737549, 0.09313390403985977, 0.032598160207271576, -0.2151011973619461, 0.8188260793685913, 0.38927000761032104, -0.4778439998626709, -0.7879751920700073, 0.11351744085550308, -0.453322112560272...
func (ac *AddressCache) ClearUTXOs(addr string) { ac.mtx.Lock() defer ac.mtx.Unlock() aci := ac.a[addr] if aci == nil { return } // AddressCacheItem found. Clear utxos. aci.mtx.Lock() aci.utxos = nil aci.mtx.Unlock() }
[ -0.48274344205856323, 0.5201259255409241, 0.2104276567697525, -0.5131725668907166, -1.4338757991790771, 0.10653411597013474, -0.36039113998413086, -0.470211923122406, 0.7977676391601562, 1.0051510334014893, 0.6667396426200867, 0.29302912950515747, 0.8990053534507751, -0.9988653063774109, ...
func (ac *AddressCache) ClearRows(addr string) { ac.mtx.Lock() defer ac.mtx.Unlock() aci := ac.a[addr] if aci == nil { return } // AddressCacheItem found. Clear rows. aci.mtx.Lock() aci.rows = nil aci.mtx.Unlock() }
[ -0.05606938526034355, 0.7867689728736877, -0.015122020617127419, -0.39997410774230957, -1.2597888708114624, -0.6590037941932678, -0.0938660278916359, -0.22697950899600983, 1.411995530128479, 0.9852278232574463, 1.0035884380340576, 0.42056673765182495, 0.3674398958683014, 0.4318743348121643...
func CToF(c Celsius) Fahrenheit { return Fahrenheit(c*9.0/5.0 + 32.0) }
[ 2.287339448928833, 0.29309895634651184, 0.19243355095386505, -0.13539206981658936, -0.5498712062835693, 0.21650592982769012, 0.15695272386074066, -0.8256890177726746, -0.7954937815666199, -0.2586202025413513, -0.1830531656742096, -0.5851747989654541, 0.08313590288162231, -0.088660456240177...
func CToK(c Celsius) Kelvin { return Kelvin(c + 273.15) }
[ 0.9391453862190247, -0.02068672515451908, 0.23757150769233704, -0.567115843296051, -0.7177445888519287, 0.6967147588729858, 0.6691166758537292, 0.5290502309799194, -0.07484464347362518, 0.29916247725486755, -0.41744306683540344, -0.5970636606216431, 0.7122063636779785, 0.3519846498966217, ...
func FToC(f Fahrenheit) Celsius { return Celsius((f - 32.0) * 5.0 / 9.0) }
[ 1.9814964532852173, 0.8707939386367798, 0.49242308735847473, -0.5406592488288879, -0.37782546877861023, 0.397274374961853, 0.7955624461174011, -0.4006519019603729, -0.8154474496841431, 0.46045148372650146, -0.3877626955509186, -1.2140165567398071, 0.661292314529419, -0.11543133854866028, ...
func FToK(f Fahrenheit) Kelvin { return Kelvin(((f - 32.0) * 5.0 / 9.0) + 273.15) }
[ 1.140890121459961, 0.7585055232048035, 0.3165286183357239, -0.35487061738967896, -0.6334355473518372, 0.48754218220710754, 0.6903809309005737, -0.2680111527442932, -0.6515125632286072, -0.1569148600101471, -0.930192232131958, -0.8123946785926819, 0.49837446212768555, 0.7645872235298157, ...
func KToC(k Kelvin) Celsius { return Celsius(k - 273.15) }
[ 1.8363960981369019, -0.8579293489456177, 0.5066923499107361, -0.756600022315979, -0.7572058439254761, 0.232919380068779, -0.19205467402935028, -0.07953081279993057, -0.38190561532974243, 0.44777411222457886, 0.4343227744102478, -0.33324867486953735, 1.1288740634918213, -0.01983914896845817...
func KToF(k Kelvin) Fahrenheit { return Fahrenheit((k-273.15)*9.0/5.0 + 32.0) }
[ 1.9651589393615723, 0.12296883016824722, 0.28811389207839966, -0.6422982811927795, -0.5727269649505615, 0.4443051218986511, -0.21634787321090698, -0.25166720151901245, -0.5633619427680969, -0.014285107143223286, -0.8644354939460754, -0.4265175759792328, -0.5255728960037231, 0.3973835110664...
func (r *RedisClusterCache) Insert(key string, value []byte, ttl time.Duration) error { resp := r.cluster.Cmd("SET", key, value, "EX", ttl.Seconds()) return resp.Err }
[ -0.9440822601318359, 1.3435651063919067, 0.27579519152641296, -0.09872088581323624, -0.11385393142700195, 0.4206226170063019, -0.859811007976532, 0.5522667765617371, -0.5728192329406738, 1.327074408531189, -0.4514293670654297, -0.05281264707446098, -1.0182400941848755, -0.19709379971027374...
func New(config radix.RedisConfig) (*RedisClusterCache, error) { cluster, err := makeCluster(config) return &RedisClusterCache{cluster}, err }
[ -0.3314798176288605, 0.21330401301383972, -0.0368819534778595, 0.4857116937637329, -0.36090487241744995, 0.2821381390094757, -0.424188494682312, 0.1564466953277588, 0.0062748403288424015, 0.33820536732673645, -0.13761262595653534, 0.5883986949920654, -0.10183009505271912, -0.26646059751510...
func buildURL(searchTerm string, shorturl string) string { //filler searchTerm = strings.Replace(searchTerm, " ", "-", -1) return fmt.Sprintf("%s%s", mURL[shorturl], searchTerm) }
[ -0.03190990909934044, -0.9492188692092896, 0.5173029899597168, 0.6440495252609253, -0.14655205607414246, 0.37110504508018494, -0.5145553946495056, 1.1307367086410522, 0.12855519354343414, 0.13150779902935028, 0.14764806628227234, 1.2521376609802246, 0.25260114669799805, -0.3793905377388000...
func request(searchURL string) (*http.Response, error) { baseClient := &http.Client{} req, _ := http.NewRequest("GET", searchURL, nil) req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36") res, err := baseClient.Do...
[ -1.2107281684875488, 0.11073356866836548, 0.5807401537895203, 0.5309532880783081, 0.2716413736343384, -0.24813370406627655, 0.13444854319095612, -0.3186250627040863, 0.22594350576400757, 0.07926522940397263, -0.2647969126701355, 0.7499518394470215, -0.9930055141448975, -0.08775055408477783...
func resultParser(response *http.Response, shortURL string) ([]Structure, error) { doc, err := goquery.NewDocumentFromResponse(response) if err != nil { return nil, err } results := []Structure{} //if statement can change what to scrape depending on website chosen (fill in this case) if shortURL == "fill...
[ -0.9835716485977173, -0.618109405040741, 0.47668251395225525, 0.24369308352470398, -0.11130780726671219, 0.11426478624343872, 0.47758957743644714, -0.6942384243011475, 0.5786393284797668, -0.0885389894247055, -0.6932754516601562, -0.7607365250587463, -0.044738151133060455, 0.70815837383270...
func Scrape(searchTerm string, shortURL string) ([]Structure, error) { mURL := buildURL(searchTerm, shortURL) response, err := request(mURL) if err != nil { return nil, err } Scrapes, err := resultParser(response, shortURL) if err != nil { return nil, err } return Scrapes, nil }
[ -1.1545941829681396, -0.16009816527366638, 0.708859920501709, 0.8886670470237732, -0.2782760262489319, -0.17528708279132843, -1.0773359537124634, 0.0249419454485178, 0.37960460782051086, -0.011833959259092808, -0.3217840790748596, 0.5158476829528809, 0.16133329272270203, -0.195054665207862...
func (cl *ocxClient) OrderCommand(args []string) (err error) { if err = cl.UnlockKey(); err != nil { logging.Fatalf("Could not unlock key! Fatal!") } side := args[0] pair := args[1] amountHave, err := strconv.ParseUint(args[2], 10, 64) if err != nil { return fmt.Errorf("Error parsing amountHave, please ente...
[ -0.4751591980457306, 0.06854494661092758, 1.0327006578445435, -0.15666739642620087, 0.41214412450790405, 0.3128388524055481, -0.4646758437156677, -0.5369208455085754, -0.3512820303440094, 0.22030892968177795, -0.2823944389820099, 0.11679361015558243, -1.0170680284500122, 0.567875862121582,...
func (cl *ocxClient) GetPrice(args []string) (err error) { assetString := args[0] var getPriceReply *cxrpc.GetPriceReply if getPriceReply, err = cl.RPCClient.GetPrice(assetString); err != nil { return } logging.Infof("Price: %f %s\n", getPriceReply.Price, assetString) return nil }
[ -0.3833897113800049, 0.4003409147262573, 0.8105031847953796, -0.2178681343793869, 0.8867202401161194, -0.0804818794131279, -0.07580447942018509, -1.2642329931259155, 0.2315758466720581, 0.6770649552345276, 0.6094582080841064, 0.37707844376564026, -1.2438421249389648, 0.0952061340212822, ...
func (cl *ocxClient) ViewOrderbook(args []string) (err error) { pair := args[0] var viewOrderbookReply *cxrpc.ViewOrderBookReply if viewOrderbookReply, err = cl.RPCClient.ViewOrderbook(pair); err != nil { return } // Build the table var data [][]string buf := new(bytes.Buffer) table := tablewriter.NewWriter...
[ -0.3885980546474457, -0.11407274007797241, 1.0348798036575317, -0.11762648820877075, -0.19018422067165375, -0.10714304447174072, 0.1316671371459961, -0.4824707806110382, -0.3205092251300812, 0.0892454981803894, 0.39621180295944214, 0.7259864807128906, -0.40210118889808655, 0.40006056427955...
func (cl *ocxClient) CancelOrder(args []string) (err error) { if err = cl.UnlockKey(); err != nil { logging.Fatalf("Could not unlock key! Fatal!") } orderID := args[0] // remove this and _ when cancel order has returns // var cancelOrderReply *cxrpc.CancelOrderReply if _, err = cl.RPCClient.CancelOrder(orderID...
[ 0.05364410579204559, -0.437651127576828, 0.6750996708869934, 0.36280572414398193, 0.040143322199583054, 0.3344024121761322, -0.6949863433837891, 0.10355260968208313, 0.09288012236356735, 0.7217110395431519, -0.05129054933786392, -0.2605215311050415, -1.2374546527862549, 0.6957209706306458,...
func (cl *ocxClient) GetPairs() (err error) { var getPairsReply *cxrpc.GetPairsReply if getPairsReply, err = cl.RPCClient.GetPairs(); err != nil { return } logging.Infof("List of valid trading pairs: ") for _, pair := range getPairsReply.PairList { logging.Infof("%s", pair) } return }
[ -0.4985755383968353, 1.1538922786712646, 0.42527520656585693, -0.4172936975955963, 0.3079672157764435, -0.0436585433781147, -0.021114354953169823, -0.4177612066268921, 0.599562406539917, -0.013956070877611637, 0.3599097728729248, 0.8724722862243652, -1.5969165563583374, 0.5023953914642334,...
func notifyOnOOMV2(path string) (<-chan struct{}, error) { return registerMemoryEventV2(path, "memory.events", "cgroup.events") }
[ -0.1532737761735916, -0.6435073018074036, 0.2547432780265808, 0.3913663327693939, -1.0100810527801514, -0.8988470435142517, 0.18433958292007446, -0.2917044162750244, -0.17477215826511383, 0.23156724870204926, -1.02193021774292, 1.511631727218628, 0.29272398352622986, 1.2900525331497192, ...
func (t *SimpleChaincode) pat_query(stub shim.ChaincodeStubInterface, args []string) pb.Response { fmt.Println("########### Patient query ###########") // Check whether the number of arguments is sufficient if len(args) < 2 { return shim.Error("The number of arguments is insufficient.") } // Like the Invoke f...
[ -0.08995822817087173, -0.3408321440219879, 1.0191185474395752, -0.28504395484924316, -0.1774579882621765, 0.017664963379502296, -0.24279502034187317, -0.45517534017562866, 0.13384656608104706, -0.047530077397823334, 0.7873751521110535, 0.1831679791212082, -0.503204345703125, 0.023638747632...
func (t *SimpleChaincode) pat_invoke(stub shim.ChaincodeStubInterface, args []string) pb.Response { fmt.Println("########### Patient invoke ###########") if len(args) < 2 { return shim.Error("The number of arguments is insufficient.") } // Changing details of Patient by Accepting Key and Value if args[1] == "...
[ -0.003018083516508341, -0.38043490052223206, 1.1021180152893066, -0.6552426218986511, -0.15181323885917664, 0.15755219757556915, 0.4623085558414459, 0.10948517918586731, -0.2794820964336395, 0.17937329411506653, 0.008538663387298584, 0.6180646419525146, -0.18409503996372223, -0.26928880810...
func (t *SimpleChaincode) pat_queryone(stub shim.ChaincodeStubInterface, args []string) pb.Response { if len(args) < 2 { return shim.Error("The number of arguments is insufficient.") } // GetState retrieves the data from ledger using the Key patAsBytes, _ := stub.GetState(args[1]) // Transaction Response r...
[ 0.05933723598718643, 1.0460622310638428, 0.5159435868263245, -0.029233688488602638, 0.6519668698310852, 0.0018411674536764622, 0.49248820543289185, -0.6664658188819885, 0.11570809036493301, -0.031481873244047165, 0.12502557039260864, 0.10623405128717422, -0.740944504737854, -0.852000772953...
func (s *SimpleChaincode) pat_create(stub shim.ChaincodeStubInterface, args []string) pb.Response { if len(args) < 3 { return shim.Error("Incorrect number of arguments. Expecting 3") } var newPat Pat json.Unmarshal([]byte(args[2]), &newPat) var pat = Pat{Name: newPat.Name, Id: newPat.Id, Quality: newPat.Qualit...
[ -0.3689405918121338, -0.033568985760211945, 0.7518551349639893, -0.5624053478240967, 0.3371059000492096, 0.532298743724823, 0.19143736362457275, -0.45255282521247864, 0.0730099081993103, -0.0475502647459507, -0.22438164055347443, 0.18202735483646393, -0.1576211154460907, -0.691248893737793...
func (s *SimpleChaincode) pat_gethistory(stub shim.ChaincodeStubInterface, args []string) pb.Response { if len(args) < 2 { return shim.Error("Incorrect number of arguments. Expecting 3") } patKey := args[1] fmt.Printf("##### start History of Record: %s\n", patKey) resultsIterator, err := stub.GetHistoryForKey(...
[ 0.4565082788467407, 0.30895674228668213, 0.9454681873321533, -0.9513623118400574, 0.4817279875278473, -0.5695908665657043, 0.6299362182617188, -0.7639043927192688, -0.31091079115867615, 0.3986533284187317, 0.09733088314533234, 0.8387637734413147, 0.16505278646945953, 0.2643636167049408, ...
func (ce *ColumnEncryptionProperties) ColumnPath() string { return ce.columnPath }
[ -0.0009686694829724729, -0.6621246337890625, 0.05682133138179779, 1.1392807960510254, 0.6419151425361633, 0.07573651522397995, 0.9326151013374329, -0.44388076663017273, -0.19537827372550964, 0.5120280981063843, -0.22365933656692505, -0.19587939977645874, -1.0360422134399414, -0.92533552646...
func (ce *ColumnEncryptionProperties) IsEncrypted() bool { return ce.encrypted }
[ -0.4164053797721863, 0.44431817531585693, 0.36381804943084717, 0.5259554982185364, 0.8311647176742554, -0.4889361560344696, 0.6139770746231079, -0.2436589002609253, -0.3594219386577606, 0.7430499196052551, -0.9121885895729065, -0.15394386649131775, -0.361711710691452, -0.6511266231536865, ...
func (ce *ColumnEncryptionProperties) IsEncryptedWithFooterKey() bool { return ce.encryptedWithFooterKey }
[ -0.9255472421646118, 0.368590384721756, 0.3359855115413666, 0.7157191038131714, 0.11902659386396408, -0.35377174615859985, 0.5364502668380737, -1.354487657546997, -0.6606580018997192, 0.9186297655105591, -0.872592568397522, -0.19693972170352936, -0.3206515312194824, 1.3496792316436768, -...
func (ce *ColumnEncryptionProperties) Key() string { return ce.key }
[ -0.4975297152996063, 0.0030707023106515408, 0.2619171738624573, 0.8744389414787292, 0.3238404393196106, 0.6785591840744019, 0.023849349468946457, -0.18581008911132812, -0.7040327787399292, 0.8795980215072632, 0.2169555425643921, -0.5817828178405762, -0.3910529613494873, -0.8457831144332886...
func (ce *ColumnEncryptionProperties) KeyMetadata() string { return ce.keyMetadata }
[ -0.39071646332740784, -0.16714990139007568, 0.08135426789522171, 0.18537597358226776, 0.5306428074836731, 0.7123328447341919, -0.41674482822418213, -0.5453646183013916, -0.7764899134635925, 1.4937726259231567, -0.35531413555145264, -0.07278230041265488, -0.21454913914203644, -1.27376639842...
func (ce *ColumnEncryptionProperties) WipeOutEncryptionKey() { ce.key = "" }
[ -1.1364991664886475, 0.8379594087600708, 0.03128454461693764, -0.16597655415534973, 0.41215261816978455, 0.6414943337440491, 0.22424961626529694, 0.32300448417663574, -0.7421585321426392, 1.9569411277770996, 0.07721685618162155, 0.023113030940294266, 0.12389940768480301, -0.164335012435913...
func (ce *ColumnEncryptionProperties) IsUtilized() bool { if ce.key == "" { return false } return ce.utilized }
[ -0.8469735383987427, 1.24493408203125, 0.4019106328487396, -0.2957248091697693, 0.7494032979011536, -0.9723418951034546, -0.2711108326911926, -0.10381263494491577, -0.012791869230568409, 0.9471471905708313, -0.7336320281028748, -0.31431981921195984, -0.5974826216697693, 0.00234393589198589...
func (ce *ColumnEncryptionProperties) SetUtilized() { ce.utilized = true }
[ -0.10247303545475006, 1.089024543762207, 0.2192949801683426, -0.3991539478302002, 0.849837064743042, -0.6276136636734009, 0.15175066888332367, -0.4241403639316559, -0.5196326375007629, 0.2630279064178467, -1.188673973083496, 0.3085683286190033, 0.0534384585916996, -0.07734966278076172, 0...
func (ce *ColumnEncryptionProperties) Clone() *ColumnEncryptionProperties { copy := ce.key return NewColumnEncryptionProperties(ce.columnPath, WithKey(copy), WithKeyMetadata(ce.keyMetadata)) }
[ -0.4024538993835449, -0.5688161849975586, 0.5477691888809204, 0.9012401700019836, -0.7614522576332092, 0.5534188747406006, -0.17224228382110596, -0.9268593192100525, -0.36005109548568726, 1.3682787418365479, -0.08098103851079941, -0.005757790990173817, -0.4169084131717682, -1.1306315660476...
func WithKey(key string) ColumnEncryptOption { return func(c *colEncryptConfig) { if key != "" { c.key = key } } }
[ 0.21829549968242645, 1.023228645324707, 0.29450950026512146, 0.6599494218826294, 0.5276001691818237, -0.5429257154464722, 0.2391609251499176, -0.35105791687965393, 0.10459595173597336, 1.8817474842071533, -0.6370301246643066, -0.8748299479484558, 0.09430410712957382, -0.5875700116157532, ...
func WithKeyMetadata(keyMeta string) ColumnEncryptOption { return func(c *colEncryptConfig) { c.keyMetadata = keyMeta } }
[ -0.15253905951976776, -0.012834473513066769, 0.24308358132839203, 0.24028977751731873, 0.13892310857772827, 0.04077351093292236, -0.2131802886724472, -0.5032889246940613, -0.22003017365932465, 1.9380886554718018, -1.213846206665039, -0.4578939378261566, 0.31389477849006653, -1.145179510116...
func WithKeyID(keyID string) ColumnEncryptOption { if !utf8.ValidString(keyID) { panic("parquet: key id should be UTF8 encoded") } return WithKeyMetadata(keyID) }
[ 0.5525537729263306, -0.13026592135429382, 0.18145331740379333, -0.1291772872209549, -0.5664927363395691, 0.5470257997512817, -0.7615221738815308, -0.6511383056640625, 0.5603139400482178, 1.5243868827819824, -0.25569984316825867, -0.24109488725662231, 0.053726840764284134, -0.22824957966804...
func NewColumnEncryptionProperties(name string, opts ...ColumnEncryptOption) *ColumnEncryptionProperties { var cfg colEncryptConfig cfg.encrypted = true for _, o := range opts { o(&cfg) } return &ColumnEncryptionProperties{ utilized: false, encrypted: cfg.encrypted, encryptedWith...
[ -0.7235037088394165, -0.28007546067237854, 0.02823253907263279, 0.6405256986618042, -0.201019287109375, -0.6176761388778687, 0.28709959983825684, -0.19270777702331543, -0.4610605537891388, 0.7805529236793518, -1.0933904647827148, -0.3902316391468048, -0.2922190725803375, -0.339790046215057...
func NewColumnDecryptionProperties(column string, opts ...ColumnDecryptOption) *ColumnDecryptionProperties { var cfg columnDecryptConfig for _, o := range opts { o(&cfg) } return &ColumnDecryptionProperties{ columnPath: column, utilized: false, key: cfg.key, } }
[ -0.4011264443397522, -0.2336542159318924, 0.07941291481256485, 0.7915167212486267, -0.24416014552116394, -0.4804573655128479, 0.42066940665245056, 0.26957353949546814, -0.25902000069618225, 0.24118901789188385, -0.5360509753227234, -0.2534859776496887, -0.23294909298419952, -0.713694632053...
func (cd *ColumnDecryptionProperties) ColumnPath() string { return cd.columnPath }
[ 0.06552939116954803, -0.6262355446815491, 0.06477236747741699, 0.7164261937141418, 0.5866550803184509, -0.16656021773815155, 0.7774910926818848, -0.2305859476327896, -0.33999693393707275, 0.12289903312921524, 0.003803909057751298, -0.11911617964506149, -0.748025119304657, -0.85258817672729...
func (cd *ColumnDecryptionProperties) Key() string { return cd.key }
[ -0.30471497774124146, 0.18414847552776337, 0.3005880117416382, 0.42342478036880493, 0.3362653851509094, 0.44552016258239746, -0.19728092849254608, 0.09718818962574005, -0.9401364326477051, 0.4295867383480072, 0.25829383730888367, -0.43304604291915894, -0.23002777993679047, -1.0041048526763...
func (cd *ColumnDecryptionProperties) IsUtilized() bool { return cd.utilized }
[ -0.5152636766433716, 1.19963800907135, 0.4122556746006012, -0.7491359710693359, 0.5419765710830688, -1.2102255821228027, -0.09928088635206223, -0.09195514768362045, -0.2281070500612259, 0.48119622468948364, -1.0631669759750366, -0.013982611708343029, -0.2163335680961609, -0.384814411401748...
func (cd *ColumnDecryptionProperties) SetUtilized() { cd.utilized = true }
[ -0.13225090503692627, 1.3726763725280762, 0.22502799332141876, -0.807357668876648, 0.6846121549606323, -0.9553302526473999, 0.054903794080019, -0.29955604672431946, -0.733258068561554, -0.04489611089229584, -1.1913954019546509, 0.6060052514076233, 0.17101435363292694, -0.2135690599679947, ...
func (cd *ColumnDecryptionProperties) WipeOutDecryptionKey() { cd.key = "" }
[ -0.8608078360557556, 0.9344165325164795, 0.12945672869682312, -0.3100370168685913, 0.27407848834991455, 0.5049204230308533, -0.16394223272800446, 0.16921257972717285, -0.9989733099937439, 1.1985384225845337, 0.22941486537456512, 0.2061535269021988, 0.5580101013183594, -0.13359194993972778,...
func (cd *ColumnDecryptionProperties) Clone() *ColumnDecryptionProperties { return NewColumnDecryptionProperties(cd.columnPath, WithDecryptKey(cd.key)) }
[ 0.17680086195468903, 0.06940079480409622, 0.5889548659324646, 0.8567323684692383, -0.7849152684211731, 0.16106347739696503, -0.11773710697889328, -0.6170772314071655, -0.28119686245918274, 0.5713666081428528, 0.1856323629617691, -0.18344807624816895, -0.30713018774986267, -1.20974647998809...
func WithDecryptKey(key string) ColumnDecryptOption { return func(cfg *columnDecryptConfig) { if key != "" { cfg.key = key } } }
[ 0.20789794623851776, 0.5424262881278992, 0.5619902014732361, 0.24524861574172974, 0.7487035989761353, -0.7487611770629883, -0.056630272418260574, -0.5426961779594421, -0.27283769845962524, 1.198480486869812, -0.2851594090461731, -0.26260626316070557, 0.5978290438652039, 0.48783355951309204...
func NewFileDecryptionProperties(opts ...FileDecryptionOption) *FileDecryptionProperties { var cfg fileDecryptConfig cfg.checkFooterIntegrity = DefaultCheckSignature cfg.plaintextAllowed = DefaultAllowPlaintextFiles for _, o := range opts { o(&cfg) } return &FileDecryptionProperties{ Verifier: ...
[ -0.200860857963562, 0.18981263041496277, 0.10240978002548218, 0.5804688334465027, -0.00331048178486526, -0.5743679404258728, 0.44445106387138367, 0.266174852848053, -0.48107272386550903, -0.33624663949012756, -0.07676678895950317, -0.832633376121521, -0.050641871988773346, 0.39648035168647...
func (fd *FileDecryptionProperties) ColumnKey(path string) string { if d, ok := fd.columnDecryptProps[path]; ok { if d != nil { return d.Key() } } return "" }
[ -0.2487184703350067, -0.38169124722480774, 0.3113979995250702, 0.4184260070323944, 0.8156121373176575, -0.8270881772041321, 0.3374749422073364, -0.15547141432762146, -0.6372873783111572, 0.6240414977073669, -0.007932879030704498, -0.17441579699516296, -0.1345701515674591, -0.53917938470840...
func (fd *FileDecryptionProperties) FooterKey() string { return fd.footerKey }
[ 0.21411024034023285, 0.21590930223464966, 0.2259945571422577, 0.04936918243765831, 0.5877964496612549, 0.10109243541955948, 0.7287322878837585, -0.4081413745880127, -0.9178669452667236, 0.14033815264701843, 0.36905404925346375, -0.03828386217355728, -0.3620017170906067, 1.1285768747329712,...
func (fd *FileDecryptionProperties) AadPrefix() string { return fd.aadPrefix }
[ 0.5173285007476807, -0.26723209023475647, 0.2948814332485199, -0.8884499669075012, 0.12198767811059952, 0.07662367075681686, -0.9341334104537964, 0.08846120536327362, 0.6757531762123108, 1.015271782875061, 0.9377930760383606, 0.08980271965265274, 1.1605337858200073, -0.201623797416687, 0...
func (fd *FileDecryptionProperties) PlaintextFooterIntegrity() bool { return fd.checkPlaintextFooterIntegrity }
[ -0.27821266651153564, 0.4318123757839203, 0.4261516332626343, 0.3356676995754242, 0.18154771625995636, -0.3611493408679962, 0.12749849259853363, -0.03599097579717636, -0.5902644395828247, -0.07358711212873459, 0.09539362043142319, -0.8872687816619873, -1.83180570602417, 0.4888061285018921,...
func (fd *FileDecryptionProperties) PlaintextFilesAllowed() bool { return fd.plaintextAllowed }
[ 0.43597105145454407, 0.32472336292266846, 0.4848264753818512, -0.1537814438343048, -0.6990256905555725, 0.5130396485328674, 0.08238863945007324, 0.22657349705696106, -0.6222608089447021, 0.541064977645874, 0.4761545956134796, -0.5947027802467346, -1.1517280340194702, -1.1003056764602661, ...
func (fd *FileDecryptionProperties) SetUtilized() { fd.utilized = true }
[ 0.29174086451530457, 0.8682288527488708, 0.19182024896144867, -0.9107500910758972, 0.8616740107536316, -0.7869430184364319, 0.09215129166841507, 0.09803678095340729, -0.6792101263999939, -0.5068467259407043, -0.8370295166969299, 0.5035458207130432, 0.33683791756629944, 0.09077965468168259,...
func (fd *FileDecryptionProperties) IsUtilized() bool { if fd.footerKey == "" && len(fd.columnDecryptProps) == 0 && fd.aadPrefix == "" { return false } return fd.utilized }
[ -0.6714950799942017, 0.8773360252380371, 0.4678798019886017, -0.6783647537231445, 0.5866150856018066, -1.2305713891983032, -0.1319526731967926, -0.08869815617799759, -0.08850018680095673, 0.2355397343635559, 0.19188399612903595, 0.018518922850489616, 0.12639664113521576, 0.5968323945999146...
func (fd *FileDecryptionProperties) WipeOutDecryptionKeys() { fd.footerKey = "" for _, cd := range fd.columnDecryptProps { cd.WipeOutDecryptionKey() } }
[ -0.9001242518424988, 0.8496802449226379, 0.21420200169086456, 0.21478287875652313, 0.10227109491825104, 0.06649931520223618, 0.0032009491696953773, -0.19377239048480988, -1.3369687795639038, 0.7484208345413208, 0.25298261642456055, -0.11714094877243042, 0.06111800670623779, 0.3450936675071...
func (fd *FileDecryptionProperties) Clone(newAadPrefix string) *FileDecryptionProperties { keyCopy := fd.footerKey colDecryptMapCopy := make(ColumnPathToDecryptionPropsMap) for k, v := range fd.columnDecryptProps { colDecryptMapCopy[k] = v.Clone() } if newAadPrefix == "" { newAadPrefix = fd.aadPrefix } retur...
[ -0.31697961688041687, -0.26523250341415405, 0.5499460697174072, 0.08252568542957306, -0.8182188868522644, -0.2813977003097534, 0.004152277018874884, -0.2337004393339157, 0.07510077208280563, 0.37678149342536926, 0.7492794990539551, -0.04482240974903107, 0.5171321630477905, -0.1833071410655...
func WithFooterKey(key string) FileDecryptionOption { return func(cfg *fileDecryptConfig) { if key != "" { cfg.footerKey = key } } }
[ 0.2735186517238617, 0.6156683564186096, 0.35555142164230347, 0.23379404842853546, 0.12258099019527435, -0.5059599280357361, 0.4519466459751129, -0.28170841932296753, -0.34738266468048096, 0.7992522120475769, -0.2026178240776062, -0.8719464540481567, 0.10264112055301666, 1.7092270851135254,...
func WithPrefixVerifier(verifier AADPrefixVerifier) FileDecryptionOption { return func(cfg *fileDecryptConfig) { if verifier != nil { cfg.verifier = verifier } } }
[ 1.0107008218765259, 0.27021634578704834, 0.5071011781692505, 0.30257704854011536, 0.12472008168697357, -0.2185451090335846, 0.39639103412628174, 0.44570592045783997, 0.5230725407600403, 0.14379167556762695, -0.6693795919418335, 0.19937294721603394, 1.1555883884429932, 0.9528483748435974, ...
func WithColumnKeys(decrypt ColumnPathToDecryptionPropsMap) FileDecryptionOption { return func(cfg *fileDecryptConfig) { if len(decrypt) == 0 { return } if len(cfg.colDecrypt) != 0 { panic("column properties already set") } for _, v := range decrypt { if v.IsUtilized() { panic("parquet: column p...
[ 0.1985475718975067, 0.18819554150104523, 0.33846333622932434, 0.35677847266197205, 0.17860473692417145, -1.2400354146957397, 0.03157155215740204, -0.7161204814910889, -0.708590030670166, 0.39720165729522705, -0.6178809404373169, -1.2217308282852173, 0.4415747821331024, 0.0673273578286171, ...
func WithKeyRetriever(retriever DecryptionKeyRetriever) FileDecryptionOption { return func(cfg *fileDecryptConfig) { if retriever != nil { cfg.retriever = retriever } } }
[ 0.25380101799964905, 0.24345378577709198, 0.3645796775817871, 0.3594782054424286, -0.17037519812583923, -0.7095195651054382, 0.003988574258983135, 0.3253107964992523, 0.40507614612579346, -0.3817177712917328, -0.7577186822891235, -1.5524791479110718, 0.29718253016471863, 0.2862786054611206...
func DisableFooterSignatureVerification() FileDecryptionOption { return func(cfg *fileDecryptConfig) { cfg.checkFooterIntegrity = false } }
[ 0.3201462924480438, 0.8761897683143616, 0.20401102304458618, 1.1827006340026855, 0.17658545076847076, -0.044563040137290955, 1.4621796607971191, 0.5512025952339172, -0.40316516160964966, -0.33554476499557495, -0.2175644487142563, -1.198302984237671, -0.82576584815979, 1.3882842063903809, ...
func WithPlaintextAllowed() FileDecryptionOption { return func(cfg *fileDecryptConfig) { cfg.plaintextAllowed = true } }
[ 0.7632478475570679, 0.21417123079299927, 0.5774083733558655, -0.3368282616138458, -0.8837641477584839, -0.015682436525821686, -0.013814701698720455, 0.36770394444465637, 0.187150239944458, 0.16251584887504578, -0.13273701071739197, -0.5527598261833191, 0.35331496596336365, -0.5635638236999...
func WithDecryptAadPrefix(prefix string) FileDecryptionOption { return func(cfg *fileDecryptConfig) { if prefix != "" { cfg.aadPrefix = prefix } } }
[ 0.18124598264694214, 0.22279363870620728, 0.4692620635032654, -0.8075752258300781, -0.3127461075782776, -0.5573349595069885, -0.7222591638565063, -0.016518231481313705, 0.6030653715133667, 1.1446772813796997, 0.39506468176841736, 0.13769680261611938, 1.1865099668502808, 0.20309720933437347...
func (e Algorithm) ToThrift() *format.EncryptionAlgorithm { if e.Algo == AesGcm { return &format.EncryptionAlgorithm{ AES_GCM_V1: &format.AesGcmV1{ AadPrefix: e.Aad.AadPrefix, AadFileUnique: e.Aad.AadFileUnique, SupplyAadPrefix: &e.Aad.SupplyAadPrefix, }, } } return &format.EncryptionAl...
[ 0.5278647541999817, -0.31869837641716003, 0.5165559649467468, -1.3179917335510254, 0.4842519164085388, 0.1832413673400879, 0.525383472442627, -0.7484750151634216, 1.4371662139892578, 0.5490743517875671, 0.1391821652650833, 1.1694576740264893, 1.0210789442062378, 0.49706026911735535, 0.65...
func AlgorithmFromThrift(enc *format.EncryptionAlgorithm) (ret Algorithm) { if enc.IsSetAES_GCM_V1() { ret.Algo = AesGcm ret.Aad.AadFileUnique = enc.AES_GCM_V1.AadFileUnique ret.Aad.AadPrefix = enc.AES_GCM_V1.AadPrefix ret.Aad.SupplyAadPrefix = *enc.AES_GCM_V1.SupplyAadPrefix return } ret.Algo = AesCtr re...
[ 0.7125663161277771, -0.9694442749023438, 0.34462273120880127, -0.9611840844154358, 0.025319751352071762, 0.4048081338405609, 0.4787658452987671, -0.25979289412498474, 1.2110118865966797, 0.9909030199050903, 0.05817556753754616, 0.6639729142189026, 1.1270115375518799, 0.7699495553970337, ...
func (fe *FileEncryptionProperties) EncryptedFooter() bool { return fe.encryptedFooter }
[ -0.76002436876297, 0.2829321324825287, 0.3398810923099518, 0.30459076166152954, 0.3626706898212433, 0.6042168736457825, 0.19512219727039337, -0.9167191982269287, -0.8274213671684265, 0.13720111548900604, -0.9568861722946167, -0.490263432264328, -0.8213356137275696, 1.0526280403137207, -0...
func (fe *FileEncryptionProperties) Algorithm() Algorithm { return fe.alg }
[ -0.12617750465869904, -0.5898625254631042, 0.13574205338954926, 0.16762763261795044, -0.055198781192302704, 0.6516320705413818, 0.6943731307983398, 0.628121554851532, -0.22085677087306976, 0.61777663230896, 0.7812902927398682, 0.6051275730133057, 0.5255541205406189, 0.6958478093147278, 0...
func (fe *FileEncryptionProperties) FooterKey() string { return fe.footerKey }
[ -0.08292315155267715, 0.1680125594139099, 0.1290062516927719, 0.09655966609716415, 0.5478978157043457, 0.258203387260437, 0.7642301321029663, -0.3961542844772339, -0.9813536405563354, 0.4493449032306671, 0.19087010622024536, -0.14788655936717987, -0.6918509006500244, 1.0428781509399414, ...
func (fe *FileEncryptionProperties) FooterKeyMetadata() string { return fe.footerKeyMetadata }
[ -0.531194806098938, -0.14258064329624176, 0.22694644331932068, -0.024974104017019272, 0.343559592962265, 0.11239106208086014, 0.13150011003017426, -0.9107264280319214, -1.2952014207839966, 0.8921844363212585, -0.26112207770347595, 0.07335329800844193, -0.504848062992096, 0.2931959629058838...
func (fe *FileEncryptionProperties) FileAad() string { return fe.fileAad }
[ 0.12574172019958496, -1.6346641778945923, 0.2850356698036194, -0.5973234176635742, -0.07727697491645813, 0.6653270125389099, 0.17192910611629486, 0.18631261587142944, 0.12761788070201874, 0.2798880338668823, 1.4357339143753052, 0.4113204777240753, 0.29511040449142456, 0.6032084226608276, ...
func (fe *FileEncryptionProperties) IsUtilized() bool { return fe.utilized }
[ -0.42991071939468384, 0.6653298139572144, 0.32895633578300476, -0.47791391611099243, 0.8315806984901428, -1.1724826097488403, -0.18518713116645813, 0.20619364082813263, -0.43190327286720276, 0.3512045443058014, -0.7429132461547852, -0.14789338409900665, -0.17895051836967468, -0.10808178037...
func (fe *FileEncryptionProperties) SetUtilized() { fe.utilized = true }
[ -0.047850046306848526, 0.7225944995880127, 0.17308558523654938, -0.6167276501655579, 0.9729211330413818, -0.7651557922363281, -0.005334563087671995, 0.08343300968408585, -0.7638890743255615, -0.13254232704639435, -0.94767165184021, 0.4042169153690338, 0.1791442483663559, 0.140074223279953,...
func (fe *FileEncryptionProperties) EncryptedColumns() ColumnPathToEncryptionPropsMap { return fe.encryptedCols }
[ -0.7872046828269958, -0.61618971824646, 0.25641027092933655, 0.4671584367752075, 0.799072265625, 0.005694566760212183, 1.033816933631897, -0.556495726108551, -0.9421578645706177, 0.09484992921352386, -0.9397861361503601, 0.5089780688285828, 0.23719650506973267, -1.3664096593856812, -0.86...
func (fe *FileEncryptionProperties) ColumnEncryptionProperties(path string) *ColumnEncryptionProperties { if len(fe.encryptedCols) == 0 { return NewColumnEncryptionProperties(path) } if c, ok := fe.encryptedCols[path]; ok { return c } return nil }
[ -0.6377217769622803, -0.09193439036607742, 0.2674669921398163, 0.7355226874351501, 0.3075481057167053, -0.5263134241104126, 0.7622457146644592, -0.38566359877586365, -0.7438888549804688, 0.28792843222618103, -0.4476770758628845, -0.03723421320319176, -0.11564463376998901, -0.61516356468200...
func (fe *FileEncryptionProperties) Clone(newAadPrefix string) *FileEncryptionProperties { footerKeyCopy := fe.footerKey encryptedColsCopy := make(ColumnPathToEncryptionPropsMap) for k, v := range fe.encryptedCols { encryptedColsCopy[k] = v.Clone() } if newAadPrefix == "" { newAadPrefix = fe.aadPrefix } opt...
[ -0.40388762950897217, -0.15997162461280823, 0.5761122703552246, 0.29673683643341064, -0.6715949773788452, -0.01722748577594757, 0.07168679684400558, -0.34539198875427246, 0.3592052459716797, 1.1276097297668457, 0.6022264957427979, 0.10669222474098206, 0.3200497031211853, -0.116401277482509...
func (fe *FileEncryptionProperties) WipeOutEncryptionKeys() { fe.footerKey = "" for _, elem := range fe.encryptedCols { elem.WipeOutEncryptionKey() } }
[ -1.3054734468460083, 0.6837078332901001, 0.13180117309093475, 0.06405577063560486, 0.21939125657081604, 0.40266335010528564, 0.28155338764190674, 0.22729478776454926, -1.294875144958496, 1.376132845878601, 0.07095534354448318, -0.041699666529893875, -0.19235269725322723, 0.3583600521087646...
func WithPlaintextFooter() EncryptOption { return func(cfg *configEncrypt) { cfg.encryptFooter = false } }
[ 0.35260361433029175, 0.19143930077552795, 0.48826202750205994, 0.6043453216552734, -0.30135756731033325, -0.48832643032073975, 0.40944206714630127, 0.07407818734645844, -0.15547405183315277, 0.3748003840446472, -0.6652393341064453, -0.9684839844703674, -0.6898826360702515, 0.96431481838226...
func WithAlg(cipher Cipher) EncryptOption { return func(cfg *configEncrypt) { cfg.cipher = cipher } }
[ -0.05464762821793556, 0.17113687098026276, 0.47579771280288696, -0.4608341157436371, -0.8034868836402893, 0.4369191527366638, 0.4356534481048584, 0.10040515661239624, 0.6496591567993164, 1.241583228111267, -0.5436015129089355, -0.03382737562060356, 0.883573055267334, 0.573079526424408, 0...
func WithFooterKeyID(key string) EncryptOption { if !utf8.ValidString(key) { panic("parquet: footer key id should be UTF8 encoded") } return WithFooterKeyMetadata(key) }
[ 0.04656621813774109, -0.23009276390075684, 0.16124330461025238, 0.18233485519886017, -0.3957473039627075, 0.3225540518760681, -0.7143357992172241, -0.9046929478645325, 0.1709364801645279, 1.1654294729232788, -0.08486756682395935, -0.37197867035865784, -0.3917604386806488, 1.041178703308105...
func WithFooterKeyMetadata(keyMeta string) EncryptOption { return func(cfg *configEncrypt) { if keyMeta != "" { cfg.keyMetadata = keyMeta } } }
[ -0.4924491047859192, 0.3245304524898529, 0.48691946268081665, 0.11925958842039108, 0.13120752573013306, 0.6015621423721313, 0.1552387773990631, -0.6889475584030151, -0.7556078433990479, 1.042421817779541, -0.3679580092430115, -0.05789106711745262, -0.2779632806777954, 0.9696000814437866, ...
func WithAadPrefix(aadPrefix string) EncryptOption { return func(cfg *configEncrypt) { if aadPrefix != "" { cfg.aadprefix = aadPrefix cfg.storeAadPrefixInFile = true } } }
[ -0.03319264203310013, -0.2660023272037506, 0.4573361277580261, -1.114323377609253, -0.19951239228248596, -0.12206003069877625, -0.07491308450698853, 0.13222497701644897, 1.1725966930389404, 1.4525275230407715, -0.03672473132610321, 0.14017590880393982, 1.0963488817214966, 0.122772634029388...
func DisableAadPrefixStorage() EncryptOption { return func(cfg *configEncrypt) { cfg.storeAadPrefixInFile = false } }
[ 0.047210030257701874, -0.12868565320968628, 0.11461783200502396, -0.04594995081424713, -0.526884913444519, 0.374963641166687, 0.7595474123954773, 0.7515761256217957, 0.7864083647727966, 0.9464126825332642, -0.09150782972574234, -0.5207557678222656, -0.06784622371196747, 0.08648545295000076...
func WithEncryptedColumns(encrypted ColumnPathToEncryptionPropsMap) EncryptOption { none := func(*configEncrypt) {} if len(encrypted) == 0 { return none } return func(cfg *configEncrypt) { if len(cfg.encryptedCols) != 0 { panic("column properties already set") } for _, v := range encrypted { if v.IsUt...
[ -0.5022008419036865, -0.17903627455234528, 0.38627946376800537, -0.03749178349971771, 0.8449154496192932, -0.2988092005252838, 0.5624186992645264, -0.5124466419219971, -0.4695303440093994, 0.34580060839653015, -0.6857241988182068, -0.4321170449256897, 0.28717222809791565, -0.30735465884208...
func NewFileEncryptionProperties(footerKey string, opts ...EncryptOption) *FileEncryptionProperties { var cfg configEncrypt cfg.cipher = DefaultEncryptionAlgorithm cfg.encryptFooter = DefaultEncryptedFooter for _, o := range opts { o(&cfg) } props := &FileEncryptionProperties{ footerKey: footerKey...
[ -0.5458723306655884, -0.4017271101474762, 0.4436728060245514, -0.3936234414577484, -0.18993152678012848, -0.2030971348285675, 0.39520442485809326, 0.24774989485740662, 0.18187327682971954, 0.7767862677574158, 0.3126656711101532, -0.3158908784389496, 0.2334846407175064, 0.3789612650871277, ...
func (t *UAdminTests) TestLanguage() { lang := Language{ Code: "ts", } if lang.String() != "ts" { t.Errorf("Language.String didn't return a valid value. Expected (%s) got (%s).", "ts", lang.String()) } }
[ 0.25469663739204407, 0.4301847815513611, 0.009913003072142601, -0.5732338428497314, 0.4030565619468689, 0.2434304803609848, -0.06410122662782669, 0.4333260953426361, 0.5566355586051941, -0.4265305697917938, 0.04850861802697182, 0.019361477345228195, -0.09454414248466492, 0.4220130741596222...
func (suite *FileSourceInternalTestSuite) TestUniqueForNil() { var input []int resut := unique(input) assert.Len(suite.T(), resut, 0) }
[ -0.13712863624095917, 0.6560931205749512, 0.3767269253730774, -0.576106071472168, 0.7406056523323059, 0.0494874082505703, 0.7247642874717712, 0.5823123455047607, 0.6526186466217041, -0.723828911781311, -1.2171173095703125, 0.0002998091222252697, -0.21339888870716095, 0.37606358528137207, ...