public LocalToken(ByteBuffer token) { super(HeapAllocator.instance.clone(token)); }
public LocalToken(ByteBuffer token) { super(HeapAllocator.instance.clone(token)); }
public LocalToken(ByteBuffer token) { super(HeapAllocator.instance.clone(token)); }
public LocalToken(ByteBuffer token) { super(HeapAllocator.instance.clone(token)); }
/** * If the given @param key occupies only part of a larger buffer, allocate a new buffer that is only * as large as necessary. */ public static DecoratedKey getMinimalKey(DecoratedKey key) { return key.getKey().position() > 0 || key.getKey().hasRemaining() || !key.getKey().hasArray() ? new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())) : key; }
public DecoratedKey applyToPartitionKey(DecoratedKey key) { return new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())); }
/** * If the given @param key occupies only part of a larger buffer, allocate a new buffer that is only * as large as necessary. */ public static DecoratedKey getMinimalKey(DecoratedKey key) { return key.getKey().position() > 0 || key.getKey().hasRemaining() || !key.getKey().hasArray() ? new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())) : key; }
/** * If the given @param key occupies only part of a larger buffer, allocate a new buffer that is only * as large as necessary. */ public static DecoratedKey getMinimalKey(DecoratedKey key) { return key.getKey().position() > 0 || key.getKey().hasRemaining() || !key.getKey().hasArray() ? new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())) : key; }
public DecoratedKey applyToPartitionKey(DecoratedKey key) { return new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())); }
/** * If the given @param key occupies only part of a larger buffer, allocate a new buffer that is only * as large as necessary. */ public static DecoratedKey getMinimalKey(DecoratedKey key) { return key.getKey().position() > 0 || key.getKey().hasRemaining() || !key.getKey().hasArray() ? new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())) : key; }
/** * If the given @param key occupies only part of a larger buffer, allocate a new buffer that is only * as large as necessary. */ public static DecoratedKey getMinimalKey(DecoratedKey key) { return key.getKey().position() > 0 || key.getKey().hasRemaining() || !key.getKey().hasArray() ? new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())) : key; }
public DecoratedKey applyToPartitionKey(DecoratedKey key) { return new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())); }
public DecoratedKey applyToPartitionKey(DecoratedKey key) { return new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())); }
private static ColumnIdentifier getIdentifier(CFMetaData cfMetaData, ByteBuffer name) { ColumnDefinition def = cfMetaData.getColumnDefinition(name); if (def != null) { return def.name; } else { // it's safe to simply grab based on clusteringPrefixSize() as we are only called if not a dense type AbstractType<?> type = cfMetaData.comparator.subtype(cfMetaData.comparator.clusteringPrefixSize()); return new ColumnIdentifier(HeapAllocator.instance.clone(name), type); } }