public static byte[] initConstantByteArray(DictionaryFactory dcr) { if (null!=dcr) { LocalHeap byteHeap = dcr.byteDictionary(); if (null!=byteHeap) { return LocalHeap.rawInitAccess(byteHeap); } else { return null; } } else { return null; } }
public long[] longDictionary() { int i; int max = longCount; i = integerInitCount; while (--i >= 0) { max = Math.max(max, integerInitIndex[i]); } long[] array = new long[nextPowerOfTwo(max+1)]; i = longInitCount; while (--i >= 0) { array[longInitIndex[i]] = longInitValue[i]; } return array; }
public static void postProcessDictionary(TemplateHandler handler, int byteGap, int maxByteLength) { handler.buildDictionaryMemberLists(); // the catalog file need not be "Small" but it probably will be. // the catalog file must be "Fast" to load without any "Processing" // needed by the consumer. // this enables fast startup/recovery times that do not produce garbage. handler.defaultConstValues.setTypeCounts( handler.tokenBuilderIntCount.intValue(), handler.tokenBuilderLongCount.intValue(), handler.tokenBuilderByteCount.intValue(), byteGap, maxByteLength); }
defaultConstValues.addInitInteger(token & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp : optionalOffset defaultConstValues.addInitLong(token & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp : optionalOffset + tmp);// +1 defaultConstValues.addInit(idx, fieldOperatorValue.getBytes()); } else { defaultConstValues.addInit(idx, null); defaultConstValues.addInitInteger(tokenExponent & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp defaultConstValues.addInitLong(tokenMantisssa & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp
public static FieldReferenceOffsetManager from(TemplateHandler handler, short preambleBytes, String name) { return new FieldReferenceOffsetManager( Arrays.copyOfRange(handler.catalogScriptTokens,0,handler.catalogTemplateScriptIdx), preambleBytes, Arrays.copyOfRange(handler.catalogScriptFieldNames,0,handler.catalogTemplateScriptIdx), Arrays.copyOfRange(handler.catalogScriptFieldIds,0,handler.catalogTemplateScriptIdx), Arrays.copyOfRange(handler.catalogScriptDictionaryNames,0,handler.catalogTemplateScriptIdx), name, RLESparseArray.rlEncodeSparseArray(handler.defaultConstValues.longDictionary()), RLESparseArray.rlEncodeSparseArray(handler.defaultConstValues.integerDictionary())); }
defaultConstValues.addInitInteger(token & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp : optionalOffset defaultConstValues.addInitLong(token & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp : optionalOffset + tmp);// +1 defaultConstValues.addInit(idx, fieldOperatorValue.getBytes()); } else { defaultConstValues.addInit(idx, null); defaultConstValues.addInitInteger(tokenExponent & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp defaultConstValues.addInitLong(tokenMantisssa & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp
public static FieldReferenceOffsetManager from(TemplateHandler handler, short preambleBytes, String name) { return new FieldReferenceOffsetManager( Arrays.copyOfRange(handler.catalogScriptTokens,0,handler.catalogTemplateScriptIdx), preambleBytes, Arrays.copyOfRange(handler.catalogScriptFieldNames,0,handler.catalogTemplateScriptIdx), Arrays.copyOfRange(handler.catalogScriptFieldIds,0,handler.catalogTemplateScriptIdx), Arrays.copyOfRange(handler.catalogScriptDictionaryNames,0,handler.catalogTemplateScriptIdx), name, RLESparseArray.rlEncodeSparseArray(handler.defaultConstValues.longDictionary()), RLESparseArray.rlEncodeSparseArray(handler.defaultConstValues.integerDictionary())); }
defaultConstValues.addInitInteger(token & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp : optionalOffset defaultConstValues.addInitLong(token & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp : optionalOffset + tmp);// +1 defaultConstValues.addInit(idx, fieldOperatorValue.getBytes()); } else { defaultConstValues.addInit(idx, null); defaultConstValues.addInitInteger(tokenExponent & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp defaultConstValues.addInitLong(tokenMantisssa & TokenBuilder.MAX_INSTANCE, tmp < 0 ? tmp
public static FieldReferenceOffsetManager from(TemplateHandler handler, short preambleBytes, String name) { return new FieldReferenceOffsetManager( Arrays.copyOfRange(handler.catalogScriptTokens,0,handler.catalogTemplateScriptIdx), preambleBytes, Arrays.copyOfRange(handler.catalogScriptFieldNames,0,handler.catalogTemplateScriptIdx), Arrays.copyOfRange(handler.catalogScriptFieldIds,0,handler.catalogTemplateScriptIdx), Arrays.copyOfRange(handler.catalogScriptDictionaryNames,0,handler.catalogTemplateScriptIdx), name, RLESparseArray.rlEncodeSparseArray(handler.defaultConstValues.longDictionary()), RLESparseArray.rlEncodeSparseArray(handler.defaultConstValues.integerDictionary())); }
public int[] integerDictionary() { int i; int max = integerCount; i = integerInitCount; while (--i >= 0) { max = Math.max(max, integerInitIndex[i]); } int[] array = new int[nextPowerOfTwo(max+1)]; i = integerInitCount; while (--i >= 0) { array[integerInitIndex[i]] = integerInitValue[i]; } return array; }
public static void postProcessDictionary(TemplateHandler handler, int byteGap, int maxByteLength) { handler.buildDictionaryMemberLists(); // the catalog file need not be "Small" but it probably will be. // the catalog file must be "Fast" to load without any "Processing" // needed by the consumer. // this enables fast startup/recovery times that do not produce garbage. handler.defaultConstValues.setTypeCounts( handler.tokenBuilderIntCount.intValue(), handler.tokenBuilderLongCount.intValue(), handler.tokenBuilderByteCount.intValue(), byteGap, maxByteLength); }
public static byte[] initConstantByteArray(DictionaryFactory dcr) { if (null!=dcr) { LocalHeap byteHeap = dcr.byteDictionary(); if (null!=byteHeap) { return LocalHeap.rawInitAccess(byteHeap); } else { return null; } } else { return null; } }
public int[] integerDictionary() { int i; int max = integerCount; i = integerInitCount; while (--i >= 0) { max = Math.max(max, integerInitIndex[i]); } int[] array = new int[nextPowerOfTwo(max+1)]; i = integerInitCount; while (--i >= 0) { array[integerInitIndex[i]] = integerInitValue[i]; } return array; }
public static void postProcessDictionary(TemplateHandler handler, int byteGap, int maxByteLength) { handler.buildDictionaryMemberLists(); // the catalog file need not be "Small" but it probably will be. // the catalog file must be "Fast" to load without any "Processing" // needed by the consumer. // this enables fast startup/recovery times that do not produce garbage. handler.defaultConstValues.setTypeCounts( handler.tokenBuilderIntCount.intValue(), handler.tokenBuilderLongCount.intValue(), handler.tokenBuilderByteCount.intValue(), byteGap, maxByteLength); }
public static byte[] initConstantByteArray(DictionaryFactory dcr) { if (null!=dcr) { LocalHeap byteHeap = dcr.byteDictionary(); if (null!=byteHeap) { return LocalHeap.rawInitAccess(byteHeap); } else { return null; } } else { return null; } }
public long[] longDictionary() { int i; int max = longCount; i = integerInitCount; while (--i >= 0) { max = Math.max(max, integerInitIndex[i]); } long[] array = new long[nextPowerOfTwo(max+1)]; i = longInitCount; while (--i >= 0) { array[longInitIndex[i]] = longInitValue[i]; } return array; }
public int[] integerDictionary() { int i; int max = integerCount; i = integerInitCount; while (--i >= 0) { max = Math.max(max, integerInitIndex[i]); } int[] array = new int[nextPowerOfTwo(max+1)]; i = integerInitCount; while (--i >= 0) { array[integerInitIndex[i]] = integerInitValue[i]; } return array; }
public long[] longDictionary() { int i; int max = longCount; i = integerInitCount; while (--i >= 0) { max = Math.max(max, integerInitIndex[i]); } long[] array = new long[nextPowerOfTwo(max+1)]; i = longInitCount; while (--i >= 0) { array[longInitIndex[i]] = longInitValue[i]; } return array; }
public LocalHeap byteDictionary() { if (bytesCount == 0) { return null; } if (null==byteHeap) { byteHeap = new LocalHeap(singleBytesSize, gapBytesSize, nextPowerOfTwo(bytesCount), byteInitTotalLength, byteInitIndex, byteInitValue); LocalHeap.reset(byteHeap); } return byteHeap; }
public LocalHeap byteDictionary() { if (bytesCount == 0) { return null; } if (null==byteHeap) { byteHeap = new LocalHeap(singleBytesSize, gapBytesSize, nextPowerOfTwo(bytesCount), byteInitTotalLength, byteInitIndex, byteInitValue); LocalHeap.reset(byteHeap); } return byteHeap; }