private void init(PDataType baseType, boolean rowKeyOrderOptimizable) { this.baseType = baseType; this.rowKeyOrderOptimizable = rowKeyOrderOptimizable; elements = new Object[getChildren().size()]; valuePtr.set(ByteUtil.EMPTY_BYTE_ARRAY); estimatedSize = PArrayDataType.estimateSize(this.children.size(), this.baseType); }
@Override public ColumnValueEncoder getEncoder(int numElements) { PDataType type = PVarbinary.INSTANCE; int estimatedSize = PArrayDataType.estimateSize(numElements, type); TrustedByteArrayOutputStream byteStream = new TrustedByteArrayOutputStream(estimatedSize); DataOutputStream oStream = new DataOutputStream(byteStream); return new PArrayDataTypeEncoder(byteStream, oStream, numElements, type, SortOrder.ASC, false, getSerializationVersion()); }
private void init(PDataType baseType, boolean rowKeyOrderOptimizable) { this.baseType = baseType; this.rowKeyOrderOptimizable = rowKeyOrderOptimizable; elements = new Object[getChildren().size()]; valuePtr.set(ByteUtil.EMPTY_BYTE_ARRAY); estimatedSize = PArrayDataType.estimateSize(this.children.size(), this.baseType); }
private void init(PDataType baseType, boolean rowKeyOrderOptimizable) { this.baseType = baseType; this.rowKeyOrderOptimizable = rowKeyOrderOptimizable; elements = new Object[getChildren().size()]; valuePtr.set(ByteUtil.EMPTY_BYTE_ARRAY); estimatedSize = PArrayDataType.estimateSize(this.children.size(), this.baseType); }
@Override public ColumnValueEncoder getEncoder(int numElements) { PDataType type = PVarbinary.INSTANCE; int estimatedSize = PArrayDataType.estimateSize(numElements, type); TrustedByteArrayOutputStream byteStream = new TrustedByteArrayOutputStream(estimatedSize); DataOutputStream oStream = new DataOutputStream(byteStream); return new PArrayDataTypeEncoder(byteStream, oStream, numElements, type, SortOrder.ASC, false, getSerializationVersion()); }
@Override public ColumnValueEncoder getEncoder(int numElements) { PDataType type = PVarbinary.INSTANCE; int estimatedSize = PArrayDataType.estimateSize(numElements, type); TrustedByteArrayOutputStream byteStream = new TrustedByteArrayOutputStream(estimatedSize); DataOutputStream oStream = new DataOutputStream(byteStream); return new PArrayDataTypeEncoder(byteStream, oStream, numElements, type, SortOrder.ASC, false, getSerializationVersion()); }