@Test public void testParseCommaDelimitedInt() throws Exception { assertTrue(Arrays.equals(new int[0], ArrayUtils.parseCommaDelimitedInts(""))); assertTrue(Arrays.equals(new int[0], ArrayUtils.parseCommaDelimitedInts(" "))); assertTrue(Arrays.equals(new int[]{1}, ArrayUtils.parseCommaDelimitedInts("1"))); assertTrue(Arrays.equals(new int[]{1}, ArrayUtils.parseCommaDelimitedInts(" 1"))); assertTrue(Arrays.equals(new int[]{1}, ArrayUtils.parseCommaDelimitedInts("1 "))); assertTrue(Arrays.equals(new int[]{1}, ArrayUtils.parseCommaDelimitedInts(" 1 "))); assertTrue(Arrays.equals(new int[]{1,2}, ArrayUtils.parseCommaDelimitedInts("1,2"))); assertTrue(Arrays.equals(new int[]{1,2}, ArrayUtils.parseCommaDelimitedInts("1 ,2"))); assertTrue(Arrays.equals(new int[]{1,2}, ArrayUtils.parseCommaDelimitedInts("1, 2"))); assertTrue(Arrays.equals(new int[]{1,2}, ArrayUtils.parseCommaDelimitedInts("1 , 2"))); assertTrue(Arrays.equals(new int[]{12,256}, ArrayUtils.parseCommaDelimitedInts("12,256"))); }
public MemoryMetaIndex() { this( ArrayUtils.parseCommaDelimitedString(ApplicationSetup.getProperty("indexer.meta.forward.keys", "")), ArrayUtils.parseCommaDelimitedInts(ApplicationSetup.getProperty("indexer.meta.forward.keylens", "")), ArrayUtils.parseCommaDelimitedString(ApplicationSetup.getProperty("indexer.meta.reverse.keys", "")) ); }
final int[] metaTagLengths = ArrayUtils.parseCommaDelimitedInts(srcIndex1.getIndexProperty("index.meta.value-lengths", "20")); final String[] metaReverseTags = MetaReverse ? ArrayUtils.parseCommaDelimitedString(srcIndex1.getIndexProperty("index.meta.reverse-key-names", ""))
ArrayUtils.parseCommaDelimitedInts(ApplicationSetup .getProperty("indexer.meta.forward.keylens", "")), ArrayUtils.parseCommaDelimitedString(ApplicationSetup
ArrayUtils.parseCommaDelimitedInts(ApplicationSetup .getProperty("indexer.meta.forward.keylens", "")), ArrayUtils.parseCommaDelimitedString(ApplicationSetup
final int[] metaTagLengths = ArrayUtils.parseCommaDelimitedInts(srcIndex1.getIndexProperty("index.meta.value-lengths", "20")); final String[] metaReverseTags = MetaReverse ? ArrayUtils.parseCommaDelimitedString(srcIndex1.getIndexProperty("index.meta.reverse-key-names", ""))