Home
last modified time | relevance | path

Searched refs:RangeKey (Results 1 – 25 of 58) sorted by relevance

123

/dports/devel/libphonenumber/libphonenumber-8.12.39/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/
H A DRangeKeyTest.java35 ImmutableList<RangeKey> keys = RangeKey.decompose(RangeTree.empty()); in testEmpty()
41 ImmutableList<RangeKey> keys = RangeKey.decompose(RangeTree.from(RangeSpecification.empty())); in testZeroLengthMatch()
47 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("xxx", "xxxx", "xxxxx")); in testOnlyAnyPath()
53 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("123xxx", "123xxxx", "123xxxxx")); in testSimple()
59 ImmutableList<RangeKey> keys = in testEmbeddedRanges()
66 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("123xxxx", "1234x", "1234xx")); in testSplitFactors()
74 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("12[0-4]xxx", "12xxx", "12xx")); in testMergeStrategy()
98 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges); in testSimpleRealWorldData()
109 RangeKey key = key("1[23]", 7, 8, 9); in testContains()
115 private static RangeKey key(String spec, Integer... lengths) { in key()
[all …]
H A DCsvTableTest.java80 CsvTable<RangeKey> csv = toCsv(table); in testRangeTableExport()
172 CsvTable<RangeKey> csv = toCsv(table); in testOrdering()
254 private static Change row(ImmutableList<Column<?>> columns, RangeKey key, Object... values) { in row()
272 private static RangeKey key(String spec, Integer... lengths) { in key()
275 return RangeKey.create(prefix, ImmutableSet.copyOf(lengths)); in key()
/dports/devel/libphonenumber/libphonenumber-8.12.39/migrator/src/main/java/com/google/phonenumbers/migrator/
H A DRecipesTableSchema.java27 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
80 private static final CsvKeyMarshaller<RangeKey> MARSHALLER = new CsvKeyMarshaller<>(
84 Optional.of(RangeKey.ORDERING),
94 public static RangeKey read(List<String> parts) { in read()
102 return RangeKey.create(RangeSpecification.parse(parts.get(0)), rangeKeyLength); in read()
116 public static final CsvSchema<RangeKey> SCHEMA = CsvSchema.of(MARSHALLER, CSV_COLUMNS);
133 public static RangeTable toRangeTable(CsvTable<RangeKey> csv) { in toRangeTable()
135 for (RangeKey k : csv.getKeys()) { in toRangeTable()
149 public static CsvTable<RangeKey> toCsv(RangeTable table) { in toCsv()
150 CsvTable.Builder<RangeKey> csv = CsvTable.builder(SCHEMA); in toCsv()
[all …]
H A DMigrationFactory.java22 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
50 CsvTable<RangeKey> recipes = importRecipes(MigrationFactory.class in createMigration()
55 CsvTable<RangeKey> ranges = metadata.importCsvTable(countryCode) in createMigration()
69 CsvTable<RangeKey> recipes) { in createCustomRecipeMigration()
91 CsvTable<RangeKey> recipes = importRecipes(MigrationFactory.class in createMigration()
96 CsvTable<RangeKey> ranges = metadata.importCsvTable(countryCode) in createMigration()
109 CsvTable<RangeKey> recipes) in createCustomRecipeMigration()
127 CsvTable<RangeKey> recipes) throws IOException { in createCustomRecipeMigration()
146 CsvTable<RangeKey> recipes = importRecipes(MigrationFactory.class in createMigration()
151 CsvTable<RangeKey> ranges = metadata.importCsvTable(countryCode) in createMigration()
[all …]
H A DMigrationUtils.java23 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
40 public static Stream<MigrationEntry> getMigratableRangeByRecipe(CsvTable<RangeKey> recipesTable, in getMigratableRangeByRecipe()
41 RangeKey recipeKey, in getMigratableRangeByRecipe()
76 CsvTable<RangeKey> recipesTable, in findMatchingRecipe()
80 for (RangeKey recipeKey : recipesTable.getKeys()) { in findMatchingRecipe()
H A DMigrationJob.java25 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
43 private final CsvTable<RangeKey> rangesTable;
44 private final CsvTable<RangeKey> recipesTable;
57 CsvTable<RangeKey> recipesTable, in MigrationJob()
58 CsvTable<RangeKey> rangesTable, in MigrationJob()
71 public CsvTable<RangeKey> getRecipesCsvTable() { in getRecipesCsvTable()
117 public Optional<MigrationReport> getMigrationReportForRecipe(RangeKey recipeKey) { in getMigrationReportForRecipe()
H A DMetadataZipFileReader.java23 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
59 public Optional<CsvTable<RangeKey>> importCsvTable(DigitSequence countryCode) throws IOException { in importCsvTable()
99 Optional<CsvTable<RangeKey>> ranges = Optional.ofNullable( in main()
/dports/devel/libphonenumber/libphonenumber-8.12.39/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/table/
H A DRangeKey.java49 public abstract class RangeKey { class
55 public static final Comparator<RangeKey> ORDERING =
56 comparing(RangeKey::getPrefix, comparing(s -> s.min().toString()))
57 .thenComparing(RangeKey::getLengths, comparing(NavigableSet::first));
63 public static RangeKey create(RangeSpecification prefix, Set<Integer> lengths) { in create()
78 public static ImmutableList<RangeKey> decompose(RangeTree tree) { in decompose()
79 List<RangeKey> keys = new ArrayList<>(); in decompose()
102 private static void visit(RangeTree tree, List<RangeKey> keys) { in visit()
119 private final List<RangeKey> keys;
126 private KeyVisitor(List<RangeKey> keys) { in KeyVisitor()
/dports/devel/libphonenumber/libphonenumber-8.12.39/migrator/src/test/java/com/google/phonenumbers/migrator/
H A DMigrationJobTest.java24 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
82RangeKey invalidKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipes_singleMigration_unsupportedRecipeKey_expectException()
102 RangeKey validKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipes_singleMigration_validKey_expectMigration()
116 RangeKey recipeKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipes_invalidOldFormatValue_expectException()
136 RangeKey recipeKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipe_multipleMigration_nextRecipeNotFound_expectException()
158 RangeKey recipeKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipe_multipleMigration_expectMigration()
279 CsvTable<RangeKey> recipes = MigrationFactory in createMockJobFromTestRecipes()
284 CsvTable<RangeKey> ranges = metadata.importCsvTable(DigitSequence.of(COUNTRY_CODE)) in createMockJobFromTestRecipes()
297 CsvTable<RangeKey> recipes = MigrationFactory.importRecipes(MigrationFactory.class in getSampleNumberListsForAllMigratableCountries()
H A DMigrationUtilsTest.java26 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
78 RangeKey invalidKey = RangeKey.create(testRangeSpec, Collections.singleton(3)); in getMigratableNumbers_invalidKey_expectException()
95 RangeKey validKey = RangeKey.create(testRangeSpec, Collections.singleton(5)); in getMigratableNumbers_validKey_expectNoExceptionAndNoMatches()
H A DMetadataZipFileReaderTest.java23 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
55 Optional<CsvTable<RangeKey>> regionTable = validZip.importCsvTable(DigitSequence.of("1")); in importTable_countryCodeInZip_expectCsvTable()
63 Optional<CsvTable<RangeKey>> regionTable = validZip.importCsvTable(DigitSequence.of("2")); in importTable_countryCodeNotInZip_expectEmptyCsvTable()
/dports/devel/libphonenumber/libphonenumber-8.12.39/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
H A DRangesTableSchema.java46 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
229 private static final CsvKeyMarshaller<RangeKey> MARSHALLER = new CsvKeyMarshaller<>(
232 Optional.of(RangeKey.ORDERING),
276 public static final CsvSchema<RangeKey> SCHEMA = CsvSchema.of(MARSHALLER, CSV_COLUMNS);
284 public static CsvTable<RangeKey> toCsv(RangeTable table) { in toCsv()
285 CsvTable.Builder<RangeKey> csv = CsvTable.builder(SCHEMA); in toCsv()
290 for (RangeKey k : RangeKey.decompose(c.getRanges())) { in toCsv()
317 public static RangeTable toRangeTable(CsvTable<RangeKey> csv) { in toRangeTable()
319 for (RangeKey k : csv.getKeys()) { in toRangeTable()
336 public static Stream<String> write(RangeKey key) { in write()
[all …]
H A DCsvData.java40 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
71 CsvTable<RangeKey> ranges, in create()
89 private static void checkNoOverlappingRows(CsvTable<RangeKey> csv) { in checkNoOverlappingRows()
91 for (RangeKey key : csv.getKeys()) { in checkNoOverlappingRows()
110 CsvTable<RangeKey> ranges, in checkRegions()
155 public abstract Optional<CsvTable<DiffKey<RangeKey>>> rangesDiff(); in rangesDiff()
188 public abstract CsvTable<RangeKey> getRanges(); in getRanges()
222 CsvTable<RangeKey> ranges = RangesTableSchema.toCsv(getRangesAsTable()); in canonicalizeRangeTables()
H A DShortcodesTableSchema.java37 import com.google.i18n.phonenumbers.metadata.table.RangeKey;
82 .thenComparing(ShortcodeKey::getRangeKey, RangeKey.ORDERING);
104 public static ShortcodeKey create(PhoneRegion region, RangeKey rangeKey) { in create()
110 public abstract RangeKey getRangeKey(); in getRangeKey()
194 for (RangeKey k : RangeKey.decompose(c.getRanges())) { in toCsv()
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/tests/unit/dynamodb2/
H A Dtest_table.py37 range_key = RangeKey('hello')
71 RangeKey('date_joined')
104 RangeKey('date_joined')
137 RangeKey('date_joined')
177 RangeKey('date_joined')
218 RangeKey('date_joined')
260 RangeKey('date_joined')
304 RangeKey('date_joined')
482 RangeKey('date_joined'),
493 RangeKey('date_joined'),
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/gsutil/gslib/vendored/boto/tests/unit/dynamodb2/
H A Dtest_table.py37 range_key = RangeKey('hello')
71 RangeKey('date_joined')
104 RangeKey('date_joined')
137 RangeKey('date_joined')
177 RangeKey('date_joined')
218 RangeKey('date_joined')
260 RangeKey('date_joined')
304 RangeKey('date_joined')
482 RangeKey('date_joined'),
493 RangeKey('date_joined'),
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/boto/tests/unit/dynamodb2/
H A Dtest_table.py37 range_key = RangeKey('hello')
71 RangeKey('date_joined')
104 RangeKey('date_joined')
137 RangeKey('date_joined')
177 RangeKey('date_joined')
218 RangeKey('date_joined')
260 RangeKey('date_joined')
304 RangeKey('date_joined')
482 RangeKey('date_joined'),
493 RangeKey('date_joined'),
[all …]
/dports/devel/py-boto/boto-2.49.0/tests/unit/dynamodb2/
H A Dtest_table.py37 range_key = RangeKey('hello')
71 RangeKey('date_joined')
104 RangeKey('date_joined')
137 RangeKey('date_joined')
177 RangeKey('date_joined')
218 RangeKey('date_joined')
260 RangeKey('date_joined')
304 RangeKey('date_joined')
482 RangeKey('date_joined'),
493 RangeKey('date_joined'),
[all …]
/dports/devel/py-moto/moto-2.2.16/tests/test_dynamodb2/
H A Dtest_dynamodb_table_with_range_key.py18 from boto.dynamodb2.fields import GlobalAllIndex, HashKey, RangeKey, AllIndex
30 schema=[HashKey("forum_name"), RangeKey("subject")],
39 schema=[HashKey("forum_name"), RangeKey("subject")],
46 RangeKey("threads", data_type=NUMBER),
399 schema=[HashKey("test_hash"), RangeKey("test_range")],
713 schema=[HashKey("subject"), RangeKey("version")],
717 parts=[HashKey("topic"), RangeKey("created_at", data_type="N")],
748 schema=[HashKey("subject"), RangeKey("version")],
1082 RangeKey("test_range", data_type=NUMBER),
1101 schema=[HashKey("id"), RangeKey("range")],
[all …]
/dports/sysutils/py-salt/salt-3004.1/salt/modules/
H A Dboto_dynamodb.py58 from boto.dynamodb2.fields import HashKey, RangeKey
127 range_key_obj = RangeKey(range_key, data_type=range_key_data_type)
330 RangeKey(
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/grafana/loki/pkg/storage/stores/shipper/compactor/retention/
H A Dindex.go30 RangeKey string member
36 RangeKey: string(r),
41 return fmt.Sprintf("%s: hash_key:%s range_key:%s", ErrInvalidIndexKey, e.HashKey, e.RangeKey)
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/gsutil/gslib/vendored/boto/tests/integration/dynamodb2/
H A Dtest_highlevel.py31 from boto.dynamodb2.fields import (HashKey, RangeKey, KeysOnlyIndex,
51 RangeKey('friend_count', data_type=NUMBER)
58 RangeKey('last_name')
499 RangeKey('posted_on')
540 RangeKey('posted_on')
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/boto/tests/integration/dynamodb2/
H A Dtest_highlevel.py31 from boto.dynamodb2.fields import (HashKey, RangeKey, KeysOnlyIndex,
51 RangeKey('friend_count', data_type=NUMBER)
58 RangeKey('last_name')
499 RangeKey('posted_on')
540 RangeKey('posted_on')
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/tests/integration/dynamodb2/
H A Dtest_highlevel.py31 from boto.dynamodb2.fields import (HashKey, RangeKey, KeysOnlyIndex,
51 RangeKey('friend_count', data_type=NUMBER)
58 RangeKey('last_name')
499 RangeKey('posted_on')
540 RangeKey('posted_on')
/dports/devel/py-boto/boto-2.49.0/tests/integration/dynamodb2/
H A Dtest_highlevel.py31 from boto.dynamodb2.fields import (HashKey, RangeKey, KeysOnlyIndex,
51 RangeKey('friend_count', data_type=NUMBER)
58 RangeKey('last_name')
499 RangeKey('posted_on')
540 RangeKey('posted_on')

123