當前位置: 首頁>>代碼示例>>Java>>正文


Java BytesUtil.readUTFString方法代碼示例

本文整理匯總了Java中org.apache.kylin.common.util.BytesUtil.readUTFString方法的典型用法代碼示例。如果您正苦於以下問題:Java BytesUtil.readUTFString方法的具體用法?Java BytesUtil.readUTFString怎麽用?Java BytesUtil.readUTFString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.kylin.common.util.BytesUtil的用法示例。


在下文中一共展示了BytesUtil.readUTFString方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public DataType deserialize(ByteBuffer in) {
    String name = BytesUtil.readUTFString(in);
    int precision = BytesUtil.readVInt(in);
    int scale = BytesUtil.readVInt(in);

    return new DataType(name, precision, scale);
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:9,代碼來源:DataType.java

示例2: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public void deserialize(IFilterCodeSystem<?> cs, ByteBuffer buffer) {
    filterTableName = BytesUtil.readUTFString(buffer);
    filterTableResourceIdentifier = BytesUtil.readUTFString(buffer);
    filterTableType = Functions.FilterTableType.valueOf(BytesUtil.readUTFString(buffer));
    reverse = Boolean.valueOf(BytesUtil.readUTFString(buffer));
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:8,代碼來源:MassInTupleFilter.java

示例3: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public void deserialize(IFilterCodeSystem<?> cs, ByteBuffer buffer) {

    this.dynamicVariables.clear();
    int size = BytesUtil.readVInt(buffer);
    for (int i = 0; i < size; i++) {
        String name = BytesUtil.readUTFString(buffer);
        Object value = cs.deserialize(buffer);
        bindVariable(name, value);
    }
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:12,代碼來源:CompareTupleFilter.java

示例4: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public String deserialize(ByteBuffer in) {
    return BytesUtil.readUTFString(in);
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:5,代碼來源:StringSerializer.java

示例5: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public String deserialize(ByteBuffer buffer) {
    return BytesUtil.readUTFString(buffer);
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:5,代碼來源:StringCodeSystem.java

示例6: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public void deserialize(IFilterCodeSystem<?> cs, ByteBuffer buffer) {
    this.variableName = BytesUtil.readUTFString(buffer);
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:5,代碼來源:DynamicTupleFilter.java

示例7: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public void deserialize(IFilterCodeSystem<?> cs, ByteBuffer buffer) {
    this.name = BytesUtil.readUTFString(buffer);
    this.isReversed = buffer.get() != 0;
    this.initMethod();
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:7,代碼來源:BuiltInFunctionTupleFilter.java

示例8: deserialize

import org.apache.kylin.common.util.BytesUtil; //導入方法依賴的package包/類
@Override
public GTScanRequest deserialize(ByteBuffer in) {
    final int serialLevel = KylinConfig.getInstanceFromEnv().getGTScanRequestSerializationLevel();

    GTInfo sInfo = GTInfo.serializer.deserialize(in);

    List<GTScanRange> sRanges = Lists.newArrayList();
    int sRangesCount = BytesUtil.readVInt(in);
    for (int rangeIdx = 0; rangeIdx < sRangesCount; rangeIdx++) {
        GTRecord sPkStart = deserializeGTRecord(in, sInfo);
        GTRecord sPkEnd = deserializeGTRecord(in, sInfo);
        List<GTRecord> sFuzzyKeys = Lists.newArrayList();
        int sFuzzyKeySize = BytesUtil.readVInt(in);
        for (int i = 0; i < sFuzzyKeySize; i++) {
            sFuzzyKeys.add(deserializeGTRecord(in, sInfo));
        }
        GTScanRange sRange = new GTScanRange(sPkStart, sPkEnd, sFuzzyKeys);
        sRanges.add(sRange);
    }

    ImmutableBitSet sColumns = ImmutableBitSet.serializer.deserialize(in);
    TupleFilter sGTFilter = GTUtil.deserializeGTFilter(BytesUtil.readByteArray(in), sInfo);

    TupleFilter sGTHavingFilter = null;
    if (serialLevel >= SERIAL_1_HAVING_FILTER) {
        sGTHavingFilter = TupleFilterSerializer.deserialize(BytesUtil.readByteArray(in),
                StringCodeSystem.INSTANCE);
    }

    ImmutableBitSet sAggGroupBy = ImmutableBitSet.serializer.deserialize(in);
    ImmutableBitSet sAggrMetrics = ImmutableBitSet.serializer.deserialize(in);
    String[] sAggrMetricFuncs = BytesUtil.readAsciiStringArray(in);
    boolean sAllowPreAggr = (BytesUtil.readVInt(in) == 1);
    double sAggrCacheGB = in.getDouble();
    StorageLimitLevel storageLimitLevel = StorageLimitLevel.valueOf(BytesUtil.readUTFString(in));
    int storageScanRowNumThreshold = BytesUtil.readVInt(in);
    int storagePushDownLimit = BytesUtil.readVInt(in);
    long startTime = BytesUtil.readVLong(in);
    long timeout = BytesUtil.readVLong(in);
    String storageBehavior = BytesUtil.readUTFString(in);

    return new GTScanRequestBuilder().setInfo(sInfo).setRanges(sRanges).setDimensions(sColumns)
            .setAggrGroupBy(sAggGroupBy).setAggrMetrics(sAggrMetrics).setAggrMetricsFuncs(sAggrMetricFuncs)
            .setFilterPushDown(sGTFilter).setHavingFilterPushDown(sGTHavingFilter)
            .setAllowStorageAggregation(sAllowPreAggr).setAggCacheMemThreshold(sAggrCacheGB)
            .setStorageScanRowNumThreshold(storageScanRowNumThreshold)
            .setStoragePushDownLimit(storagePushDownLimit).setStorageLimitLevel(storageLimitLevel)
            .setStartTime(startTime).setTimeout(timeout).setStorageBehavior(storageBehavior)
            .createGTScanRequest();
}
 
開發者ID:apache,項目名稱:kylin,代碼行數:51,代碼來源:GTScanRequest.java


注:本文中的org.apache.kylin.common.util.BytesUtil.readUTFString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。